Message48150
| Author |
hyeshik.chang |
| Recipients |
| Date |
2005年04月04日.17:29:30 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Due to encoding name normalization of locale module,
UTF-8 locales are normalized to xx_XX.UTF8. But most
of BSD systems and some other *nixes doesn't allow
normalized forms of locale names such as xx_XX.UTF8.
So we need to restore the name on _build_localename to
'UTF-8' to make it work on such systems.
>>> import os; os.environ['LC_ALL']='ko_KR.UTF-8'
[25369 refs]
>>> import locale; locale.resetlocale()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/perky/cvs/python/Lib/locale.py", line
402, in resetlocale
_setlocale(category,
_build_localename(getdefaultlocale()))
locale.Error: unsupported locale setting
[28822 refs]
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:42:36 | admin | link | issue1176504 messages |
| 2007年08月23日 15:42:36 | admin | create |
|