discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localized string compare


From: David Chisnall
Subject: Re: Localized string compare
Date: Thu, 1 Mar 2012 21:50:07 +0000

On OS X and FreeBSD trunk, we have strcoll_l which can do this.  I think it's 
in POSIX2008, so it should appear elsewhere soon.  Otherwise, yes, ICU is the 
way to go.

David

On 1 Mar 2012, at 21:47, Jens Alfke wrote:

> Looks like localized string comparison (-[NSString localizedCompare:], et al) 
> isn’t implemented — NSString.m has various reminder comments like “Should 
> implement full POSIX.2 collate” and "FIXME: This does only a normal compare, 
> ignoring locale”.
> 
> Unfortunately Unicode collation is kind of important for my app, as its data 
> interchange format relies on a single cross-platform sort order for strings.
> 
> How hard would it be to implement this? Does it mean calling into the scary 
> innards of ICU, or is there some higher level collation API available?
> 
> —Jens_______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep


-- Sent from my PDP-11




reply via email to

[Prev in Thread] Current Thread [Next in Thread]