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:
Richard Frith-MacDonald 2016-04-14 16:10:12 +00:00
parent 7ecccf47e9
commit 506824d1fd

View file

@ -5623,7 +5623,13 @@ static NSFileManager *fm = nil;
{ {
if (nil == locale) 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 else
{ {