[Chandler-dev] Re: error in i18nmanager.py ?

Andi Vajda vajda at osafoundation.org
Fri Aug 18 03:33:37 PDT 2006


On Thu, 17 Aug 2006, Ken Krugler wrote:

> For the version of ICU that I've got on my disk (I'm not online right now) 
> the uprv_getDefaultLocaleID() call in putil.c certainly could use some work. 
> The copy I have calls GetIntlResource and then walks it, which (IIRC) is a 
> skanky hack to create something that works on Mac OS 9 & X.
>
> Jeez, GetIntlResource is something I was working on back in 1986, and it was 
> a hack then.
>
> If Chandler is only Mac OS X, then there are much better OS X APIs to use for 
> this information. The Mac port appears to have been done in 1998, so this 
> might just be legacy code in ICU that's never been cleaned up.

>From a Mac perspective, Chandler is only Mac OS X. Mac OS 9 support is 
definitely not in the cards.

I'd be interested in improving ICU with a patch (and therefore PyICU) in that 
area. ICU's OS integration needs to work.

My understanding of the task ahead is that ICU needs to be able to get 
OS-based locale defaults for:

   - locale
   - date and time formats
   - number and currency formats
   - timezone

Am I forgetting something ?

And ICU needs to update its defaults when the OS sees (and notifies about) a 
change in any of these.

Andi..


More information about the chandler-dev mailing list