[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 03/05/2025 at 11:46, Marc Haber wrote:
On Sat, May 03, 2025 at 10:46:19AM +0200, Marc Haber wrote:

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?

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".

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).


Reply to: