The comparison against 0 should be against LC_ALL. category isn't a
boolean and it is LC_ALL that's special. Someone submitted this to me a long time ago, but I can't find the mail now.
This commit is contained in:
parent
71300cb5db
commit
12b92015dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=65420
@ -173,7 +173,7 @@ setlocale(category, locale)
|
||||
}
|
||||
}
|
||||
|
||||
if (category)
|
||||
if (category != LC_ALL)
|
||||
return (loadlocale(category));
|
||||
|
||||
for (i = 1; i < _LC_LAST; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user