[Chandler-dev] Re: error in i18nmanager.py ?
Ken Krugler
kkrugler_lists at transpac.com
Thu Aug 17 14:29:22 PDT 2006
Hi Brian,
>>I'm still missing what wx has to do with these things. Yes, you
>>said that wx does a better job than ICU at determining the OS
>>locale. If that is the case, I'd like to improve ICU instead.
>>Could you please educate me on what the difference is ? what should
>>ICU do that wx does already ?
>>
>Again, from informal testing I found the wx.Locale did a much better
>in picking up the correct Operating
>System locale. I would need to take a few minutes to review the c /
>C++ code for the two modules before I could comment on what
>wx.Locale is doing different from PyICU.Locale.
>
>Improving PyICU Locale is certainly a worth while task.
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.
-- Ken
--
Ken Krugler
Krugle, Inc.
+1 530-210-6378
"Find Code, Find Answers"
More information about the chandler-dev
mailing list