Bug 15878

Summary: setlocale behavior shouldn't depend on the current locale
Product: glibc Reporter: Alexandre Oliva <aoliva>
Component: localeAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: drepper.fsp
Priority: P2 Flags: fweimer: security-
Version: 2.18   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Alexandre Oliva 2013-08-22 10:33:26 UTC
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.
Comment 1 Andreas Schwab 2014-06-05 14:46:23 UTC
The first issue has already been fixed long ago.  The latter isn't a real issue as the locale.alias file isn't supposed to contain non-ASCII whitespace.