This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jonash
Recipients jonash
Date 2009-07-10.10:27:35
SpamBayes Score 0.0003605402
Marked as misclassified No
Message-id <1247221657.02.0.83286673792.issue6456@psf.upfronthosting.co.za>
In-reply-to
Content
The locale.D_* and locale.T_* attributes are ints with weird values
instead of strings (see documentation[1]).

Example:


>>> import locale
>>> locale.setlocale(locale.LC_ALL, 'en_US.utf8')
'en_US.utf8'
>>> locale.D_T_FMT
131112
>>> locale.D_FMT
131113
>>> locale.T_FMT
131114
>>> locale.T_FMT_AMPM
131115

It seems like the .DAY_* stuff is also broken:
>>> locale.DAY_1
131079
>>> locale.DAY_2
131080
>>> locale.DAY_7
131085

And many other variables:
>>> locale.THOUSEP
65537

The documentation says that every of these variables should be strings.

Regards,
db

[1]http://docs.python.org/library/locale.html#locale.D_T_FMT
History
Date User Action Args
2009-07-10 10:27:37jonashsetrecipients: + jonash
2009-07-10 10:27:37jonashsetmessageid: <1247221657.02.0.83286673792.issue6456@psf.upfronthosting.co.za>
2009-07-10 10:27:35jonashlinkissue6456 messages
2009-07-10 10:27:35jonashcreate