On Wed, Mar 14, 2007 at 02:05:36PM +0100, Nicola Pero wrote:
> 
> >> Well, bytes value is "février" (in iso-8859-1 I think) and comes from 
> >> 
> >> [NSString stringWithUTF8String: nl_langinfo (MON_1+1)]
> >>
> 
> Maybe we need to use nl_langinfo(CODESET) instead of UTF-8 to interpret the 
> bytes ?
> (no idea, didn't have time to really look up the doc)

Reading nl_langinfo man page, it seems like a good plan.

> > If I use C (or en) locale), I simply get the warning someone already 
> > reported : 
> >
> > File NSUserDefaults.m: 552. In [NSUserDefaults +standardUserDefaults]
> > Improper installation: No language locale found
> 
> This was a very interesting problem where [NSBundle +initialize] would try to 
> create the
> _gnustep_bundle, which uses the standard [NSBundle -initWithPath:] which then 
> ends up using 
> [NSUserDefaults +sharedDefaults] which would try using the _gnustep_bundle to 
> lookup resources.
> 
> I modified NSUserDefaults to lookup gnustep-base language resource files 
> directly.  That
> broke the dependency loop on my machine, and it works for me now :-)
> 
> Please try again from trunk.

Yep, no more warning with C locale and working fine with fr_FR.

Thanks Nicola,
Philippe
-- 
Un celibataire est un homme qui a rate l'occasion de rendre une femme 
malheureuse. Jasmine Birtles



_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to