i18n: looking for expertise

klappnase klappnase at web.de
Sat Mar 12 23:50:22 CET 2005


"Martin v. Löwis" <martin at v.loewis.de> wrote in message news:<4232E226.5030207 at v.loewis.de>...
> klappnase wrote:
> >     enc = locale.nl_langinfo(locale.CODESET).lower()
> 
> Notice that this may fail on systems which don't provide the
> CODESET information. Recent Linux systems (glibc 6) have it,
> and so do recent Solaris systems, but if you happen to use
> an HPUX9 or some such, you find that locale.CODESET raises
> an AttributeError.
> 
> Regards,
> Martin

Thanks again,

Things are really tricky and my hair begins to turn gray ;-)
So it seems like I'll have to add another try/except condition (and
now it finally looks pretty much like I had directly copied your code
from IDLE).

Best regards

Michael



More information about the Python-list mailing list