gnustep-dev
[Top][All Lists]
Advanced

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

Re: Problem with gnustep trunk


From: Philippe Roussel
Subject: Re: Problem with gnustep trunk
Date: Wed, 14 Mar 2007 14:28:21 +0100
User-agent: Mutt/1.5.11

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





reply via email to

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