Install menu removes foreign characters from user name
Bug #388028 reported by
Asbjorno
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyICU |
Fix Released
|
Medium
|
|||
ubiquity (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
When installing ubuntu you are asked to enter your full name ("what is your name"). The installer then automatically fills out the field "what name do you want to log in?" But if My name contains a foreign character, the character is removed from the user name.
For instance when i enter:
"Bjørn Lastname"
the user name shows as "bjrn" and the name of the computer as "bjrn-desktop"
Here I think the installer should either
-suggest "asbjørn" if it's technically possible to have foreign character in a username
-or translate the "ø" to an "o". Similar rules should apply to other foreign characters
affects: | ubuntu → ubiquity (Ubuntu) |
Changed in ubiquity (Ubuntu): | |
status: | New → Confirmed |
Changed in pyicu: | |
status: | Unknown → Fix Released |
Changed in pyicu: | |
importance: | Unknown → Medium |
To post a comment you must log in.
I think the best way to do this is to have PyICU include the Transform classes in their bindings, use those with the following transform: "lower; latin; nfkd" and hand remove anything that isn't a legal username character ([^-_a-zA-Z]). This will remove accents and such composing characters.
This will still need special handling for some characters, including the example given of ø. My testing and a IBM FAQ entry [1] indicate that there are several special cases that normal Unicode transform doesn't do right. So we'll have to hand-transform some things, like ß and æ. Basically anything listed in the IBM article.
BTW, you can play around with Unicode transforms online [2]. It's pretty interesting. For our purposes, using the 'Names' data is particularly relevant.
Unfortunately, the PyICU bindings do *not* have the Transform bits of ICU wrapped yet.
[1] http:// ibm.com/ support/ docview. wss?uid= swg21247569 demo.icu- project. org/icu- bin/translit
[2] http://