Author: rfm
Date: Thu Apr 14 18:10:12 2016
New Revision: 39670
URL: http://svn.gna.org/viewcvs/gnustep?rev=39670&view=rev
Log:
Use posix locale for numeric sort ... we really need a proper fix so that the
system locale works for all collations.
Modified:
libs/base/trunk/Source/NSString.m
Modified: libs/base/trunk/Source/NSString.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSString.m?rev=39670&r1=39669&r2=39670&view=diff
==============================================================================
--- libs/base/trunk/Source/NSString.m (original)
+++ libs/base/trunk/Source/NSString.m Thu Apr 14 18:10:12 2016
@@ -5623,7 +5623,13 @@
{
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
{
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs