A few locale issues I've run across:

Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import locale
 >>> locale.getpreferredencoding()
'cp1252'
 >>> locale.getlocale()
(None, None)
 >>> import _locale
 >>> _locale._getdefaultlocale()
('en_ZA', 'cp1252')

IronPython 1.0.2408 on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
 >>> import locale
 >>> locale.getpreferredencoding()
''
 >>> locale.getlocale()
Traceback (most recent call last):
   File , line 0, in <stdin>##19
   File c:\program files\python24\lib\locale.py, line 365, in getlocale
   File c:\program files\python24\lib\locale.py, line 278, in _parse_localename
ValueError: unknown locale: en_ZA
 >>> import _locale
 >>> _locale._getdefaultlocale()
('en-ZA', '')

Looks like ipy and cpython are not on the same wavelength.
-- 
Jonathan

When you meet a master swordsman,
show him your sword.
When you meet a man who is not a poet,
do not show him your poem.
                 -- Rinzai, ninth century Zen master
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to