Use posix locale for numeric sort ... we really need a proper fix so that the

system locale works for all collations.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39670 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2016-04-14 16:10:12 +00:00
parent 37564e8948
commit 6e3c2d0851

View file

@ -5623,7 +5623,13 @@ static NSFileManager *fm = nil;
{
if (nil == locale)
{
locale = [NSLocale systemLocale];
/* See comments in GSICUCollatorOpen about the posix locale.
* It's bad for case insensitive search, but needed for numeric
*/
if (mask & NSNumericSearch)
{
locale = [NSLocale systemLocale];
}
}
else
{