patchThe GNU Bourne-Again SHell - Patches: patch #8049, RFE: support for IDN in command...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

patch #8049: RFE: support for IDN in command prompt

Submitted by:  Miroslav Suchý <msuchy>
Submitted on:  Fri 17 May 2013 07:34:22 AM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Fri 17 May 2013 07:34:22 AM UTC, original submission:

Description of problem:
I have machine which has non latin domain name in hostname and my $PS1 include \h and the hostname is displayed in Pune encoding instead of proper Unicode.

[root@xn--luouk-k-z2a6lsyxjlexh ~]# hostname
xn--luouk-k-z2a6lsyxjlexh.lab.FILTERED
[root@xn--luouk-k-z2a6lsyxjlexh ~]# host xn--luouk-k-z2a6lsyxjlexh.lab.FILTERED
žluťoučký-kůň.lab.XXX has address 10.34.XX.XX
[root@xn--luouk-k-z2a6lsyxjlexh ~]# echo $PS1
[\u@\h \W]\$

Version-Release number of selected component (if applicable):
# rpm -q bash
bash-4.2.45-1.fc18.x86_64

How reproducible:
always

Steps to Reproduce:
1. created DNS record for machine with non latin character
2. set PS1=\h

Actual results:
hostname is in Pune encoding:
xn--luouk-k-z2a6lsyxjlexh

Expected results:
I expect it decoded from Pune to Unicode
žluťoučký-kůň

Miroslav Suchý <msuchy>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by msuchy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup