Bug#1101196: installation-reports: Trixie Installer fails to create first user when full name contains non-ASCII characters and spaces
On Sat, May 03, 2025 at 10:46:19AM +0200, Marc Haber wrote:
The Infrastructure is in place, it's a one-line change (commentre in
AdduserCommon.pm). Sadly, that re cannot be overriden at runtime.
Are you installer people in a situation to apply the following patch:
diff --git a/AdduserCommon.pm b/AdduserCommon.pm
index 52b150f..8fb54bd 100644
--- a/AdduserCommon.pm
+++ b/AdduserCommon.pm
@@ -84,7 +84,7 @@ use constant {
simplefilenamere => qr/[-_\.0-9a-zA-Z]+/,
pathre => qr/[- \p{Graph}_\.+!\$%&()\]\[;0-9a-zA-Z\/{}>*'@]+/,
simplepathre => qr/[-_\$\.0-9a-zA-Z\/]+/,
- commentre => qr/[-"_\.+!\$%&()\]\[;0-9a-zA-Z\/ ]*/,
+ commentre => qr/[-"_\.+!\$%&()\]\[;\/'’\p{L}\p{Nd}\p{Zs}]*/,
numberre => qr/[0-9]+/,
namere => qr/^([^-+~:,\s\/][^:,\s\/]*)$/aa,
anynamere => qr/^([^-+~:,\s\/][^:,\s\/]*)$/aa,
and try whether this is better? Already in bookworm, running adduser
--comment "éä" will get you a warning form chfn, but the change seems to
go through. This has been already the case before, so the Installer
seems to ignore that anyway.
This change uses Unicode character classes and replaces 0-9a-zA-Z with
\p{L}\p{Nd}\p{Zs} which allows Letters, Digits, and the various kind of
horizontal whitespace. In addition, '’ (the typographic single quote and
the apostrophe) are allowed now.
Or do you need an unstable upload to try this change?
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
Reply to: