mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
37564e8948
commit
6e3c2d0851
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue