[Bug libc/15878] New: setlocale behavior shouldn't depend on the current locale

aoliva at sourceware dot org sourceware-bugzilla@sourceware.org
Thu Aug 22 10:33:00 GMT 2013


http://sourceware.org/bugzilla/show_bug.cgi?id=15878

            Bug ID: 15878
           Summary: setlocale behavior shouldn't depend on the current
                    locale
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: aoliva at sourceware dot org
                CC: drepper.fsp at gmail dot com

alias_compare calls strcasecmp instead of using the C locale, so the behavior
of setlocale WRT alias comparison will depend on what the active locale is. 
read_alias_file, one of the functions that calls the above, also calls isspace
while parsing the alias file, which again brings in locale-dependent behavior
into what locale will become effective.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list