Summary: | assumed locale/encoding | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | kirill <kirill> |
Component: | python | Assignee: | Vladimir D. Seleznev <vseleznv> |
Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
Severity: | normal | ||
Priority: | P2 | CC: | cow, george, glebfm, imz, vseleznv, vyt |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
kirill
2007-04-13 17:29:39 MSD
ALDConvert -h |& grep -i locale (In reply to comment #1) > ALDConvert -h |& grep -i locale $ file index.m-k index.m-k: UTF-8 Unicode text $ LC_ALL=ru_RU.KOI8-R ALDConvert -t index.m-k $ LC_ALL=ru_RU.KOI8-R ALDConvert -t index.m-k -L ru_RU.UTF-8 $ LC_ALL=POSIX ALDConvert -t index.m-k $ LC_ALL=POSIX ALDConvert -t index.m-k -L ru_RU.UTF-8 $ LC_ALL=ru_RU.UTF-8 ALDConvert -t index.m-k Traceback (most recent call last): File "/usr/libexec/ALDConvert/ALDConvert.py", line 86, in ? locale.setlocale(locale.LC_ALL,'.'.join(curlocale)) File "/usr/lib64/python2.4/locale.py", line 381, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting $ LC_ALL=ru_RU.UTF-8 ALDConvert -t index.m-k -L ru_RU.UTF-8 Traceback (most recent call last): File "/usr/libexec/ALDConvert/ALDConvert.py", line 86, in ? locale.setlocale(locale.LC_ALL,'.'.join(curlocale)) File "/usr/lib64/python2.4/locale.py", line 381, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting $ Галлюциноген Питона! >>> import locale >>> locale.setlocale(locale.LC_ALL,"ru_RU.UTF-8") 'ru_RU.UTF-8' >>> locale.getlocale() ('ru_RU', 'utf') >>> locale.setlocale(locale.LC_ALL,"ru_RU.UTF") Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/locale.py", line 381, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting I'll take care. Fixed in 2.4.4-alt12. |