[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1101196: installation-reports: Trixie Installer fails to create first user when full name contains non-ASCII characters and spaces



On 05/05/2025 at 14:00, Marc Haber wrote:
On Sun, May 04, 2025 at 09:15:54PM +0200, Pascal Hambourg wrote:

My test results with àœæßéÀÔùñ:

* with libperl5.40 and perl & perl-modules-5.40
* with LANG=fr_FR.UTF-8 or C.UTF-8
 \p{L}\p{Nd}\p{Zs}: OK
 \x{a1}-\x{ac}\x{ae}-\x{ff}: OK except œŒ
>
I will have to take alook at the œŒ issue.

No need to, because \p{L}\p{Nd}\p{Zs} matches them.

Want me to test with more strange characters?

These are the ones I could type with the french keyboard layout. I do not have any others in mind, but feel free to if you have.

* without libperl5.40 and perl, with or without perl-modules-5.40
* LANG=fr_FR.UTF-8 or C.UTF-8 or C
 \p{L}\p{Nd}\p{Zs}: non-ASCII KO except à
 \x{a1}-\x{ac}\x{ae}-\x{ff}: àœæÆß and uppercase accented letters KO

I don't understand that.

Me neither.

d-i always installs C.UTF-8, so there is at least one UTF-8 locale.

Does it also USE C.UTF-8?

Yes. However,

And which locale is set when the Installer calls adduser?

"export LANG=C # avoid locale errors from perl"

This line was added in 2008 with the following comment:

    As it makes no difference to the commands being executed and the
    messages in the syslog are not really essential, just run the whole
    script with LANG=C.

Any idea about the mentioned locale errors ?
I think it should be removed so that C.UTF-8 is used when running adduser and other commands.

Would this help the installer?

It looks like a step forward, but the new regex still does not match some letters nor uppercase accented letters when libperl is not installed.

I'll get that one uploaded later today so that at least Tom O'Malley could get his real name set. This should be right in time for the hard freeze. The real fix will come after the freeze, so I'd need to have that approved by the release team.

So for the time being, adduser will still fail if the full name contains some UTF-8 letters and d-i should handle it. Either identify and reject these letters, or set the full name with chfn or useradd as a workaround.

d-i people, opinions ?


Reply to: