mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +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
7ecccf47e9
commit
506824d1fd
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue