summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/any.pm3
-rw-r--r--perl-install/install/NEWS3
2 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 8a547e0d4..edcb64f77 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -816,7 +816,8 @@ sub ask_user_and_root {
alignment => 'right', format => \&translate },
),
{ label => N("Real name"), val => \$u->{realname}, alignment => 'right', focus_out => sub {
- $u->{name} ||= lc first($u->{realname} =~ /([a-zA-Z0-9_-]+)/);
+ $u->{name} ||= Locale::gettext::iconv($u->{realname}, "utf-8", "ascii//TRANSLIT");
+ $u->{name} =~ s/[^a-zA-Z0-9_-]//g; # drop any charcter that would break login program
} },
{ label => N("Login name"), val => \$u->{name}, list => \@suggested_names, alignment => 'right',
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 8e7cd7117..e36571c9c 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,3 +1,6 @@
+- in order to guess the login name, just transliterate the real name into
+ ascii rather than truncate it on first non ascii characte-
+
Version 12.20 - 30 March 2009
- media management: