On 04/05/2025 at 10:58, Marc Haber wrote:
On Sun, May 04, 2025 at 10:31:46AM +0200, Pascal Hambourg wrote:
My initial tests indicate that for this regex to work as expected,
- libperl5.40 must be installed in the target system but is not part
of the base system so may not be installed depending on task selection.
- LANG must be set to an installed UTF-8 locale but user-setup-apply
overrides the default LANG=C.UTF8 with "export LANG=C # avoid locale
errors from perl".
Additional information:
- I did not see "locale errors from perl" after commenting out this line
to make adduser accept non-ASCII full name. Maybe this issue does not
exist any more.
- libperl5.40 is installed with perl if "Standard system utilities" is
selected.
- If one chooses "Language: C", then the default locale in the installed
system will be plain "C", not "C.UTF-8", so when booting the installed
system, adduser will reject non-ASCII in the full name. Shouldn't the
installer set "C.UTF-8" instead ? I observe that "dpkg-reconfigure
locales" does not offer plain "C", only UTF-8 locales.
Okay, so that is not an acceptable fix that can go quickly into trixie.
I'd need a suggestion for a simpler regexp that will work without
libperl, that would be a short-term solution for trixie to fix the
immediate pain.
Any perl/regex/locale expert around ?
Post-trixie, I'd like to have adduser use two regexps conditionally
depending on whether libperl is installed.
PS: During my tests I found out that deluser fails with an error about
File:Find if perl-modules is not installed (not part of the base
system either).
That should not happen. Can you give a reproducer?
During installation of a new system, de-select "Standard system
utilities" and any other tasks which might pull perl.
Or remove perl-modules from an installed system.
Run deluser <dummy_user>.