[issue9335] LC_CTYPE system setting not respected by setlocale()
Anthony Long
report at bugs.python.org
Fri Jul 23 04:38:31 CEST 2010
New submission from Anthony Long <antlong at gmail.com>:
On mac 10.5, python 2.6.4 (via mac ports) performing
len(string.letters) will produce 117 instead of 52.
from terminal:
along-mb:~ along$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
This appears to be related to:
locale.setlocale(locale.LC_CTYPE) not being respected.
len(string.letters) should produce 52.
----------
assignee: ronaldoussoren
components: Macintosh
messages: 111233
nosy: antlong, ronaldoussoren
priority: normal
severity: normal
status: open
title: LC_CTYPE system setting not respected by setlocale()
versions: Python 2.5, Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9335>
_______________________________________
More information about the Python-bugs-list
mailing list