Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - duplicate
stage: test needed - committed/rejected
status: open - closed
superseder: - calendar throws UnicodeEncodeError when locale is specified
___
Python tracker
Serhiy Storchaka added the comment:
See also issue17049. This is not a theoretical bug.
--
nosy: +serhiy.storchaka
versions: -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13539
Éric Araujo added the comment:
Then you can close one bug as duplicate and commit a fix for the other :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13539
___
psam pk.sam...@gmail.com added the comment:
The problem was detected in a Django project, as the template engine was not
able to support the original encoding.
I don't have a real test code snippet, but you may try something like:
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13539
___
___
Éric Araujo mer...@netwok.org added the comment:
I don’t know this module well, so I’m adding Georg, who last changed that
method, and other people from #10092 to the nosy list.
--
nosy: +JJeffries, Retro, christian.heimes, georg.brandl, ixokai,
r.david.murray, tim.golden, twouters
Éric Araujo mer...@netwok.org added the comment:
Good catch. The code doesn’t break because there is a check for None later on
(certainly because getlocale may return None, but here __enter__ always returns
None). How did you find this? If you have a code snippet that reproduces the
bug