Install menu removes foreign characters from user name

Bug #388028 reported by Asbjorno on 2009-06-16
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyICU
Fix Released
Medium
ubiquity (Ubuntu)
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

am_public (am-public) on 2009-06-17
affects: ubuntu → ubiquity (Ubuntu)
Michael Terry (mterry) wrote :

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
[2] http://demo.icu-project.org/icu-bin/translit

Michael Terry (mterry) wrote :

The Transliterator class (I misspoke about a Transform class) has been added to PyICU svn. It's after FeatureFreeze, so I suspect patching the feature into PyICU for Karmic is not worth it. Probably wise to wait for an actual PyICU release anyway. Maybe for Karmic+1.

Michael Terry (mterry) on 2009-09-02
Changed in ubiquity (Ubuntu):
status: New → Confirmed
Changed in pyicu:
status: Unknown → Fix Released
Changed in pyicu:
importance: Unknown → Medium
Phillip Susi (psusi) wrote :

Confirmed on 13.10.

Changed in ubiquity (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.