[Fedora-i18n-bugs] [Bug 479974] useradd not accepting UTF8 string (unable to create username in local language/script)
bugzilla at redhat.com
bugzilla at redhat.com
Fri Jan 23 09:12:24 UTC 2009
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=479974
--- Comment #1 from Pravin Satpute <psatpute at redhat.com> 2009-01-23 04:12:24 EDT ---
the problem in present in good_name function its check for ascii characters
if (!*name || !((*name >= 'a' && *name <= 'z')
|| (*name >= 'A' && *name <= 'Z')
|| (*name >= '0' && *name <= '9')
|| *name == '_' || *name == '.'))
return 0;
while (*++name) {
if (!( (*name >= 'a' && *name <= 'z')
|| (*name >= 'A' && *name <= 'Z')
|| (*name >= '0' && *name <= '9')
|| *name == '_' || *name == '.' || *name == '-'
|| (*name == '$' && *(name + 1) == '\0')))
return 0;
but if we input U+0915, it UTF-8 = E0 A4 95
since E0 it is not valid,
useradd not adding username saying its invalid username
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Fedora-i18n-bugs
mailing list