[issue13560] Add PyUnicode_DecodeLocale and PyUnicode_DecodeLocaleAndSize
STINNER Victor
report at bugs.python.org
Sat Dec 17 03:55:56 CET 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
changeset: 74002:279b0aee0cfb
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Fri Dec 16 23:56:01 2011 +0100
files: Doc/c-api/unicode.rst Include/unicodeobject.h Modules/_localemodule.c Modules/main.c Modules/timemodule.c
description:
Add PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale()
* PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale() decode a string
from the current locale encoding
* _Py_char2wchar() writes an "error code" in the size argument to indicate
if the function failed because of memory allocation failure or because of a
decoding error. The function doesn't write the error message directly to
stderr.
* Fix time.strftime() (if wcsftime() is missing): decode strftime() result
from the current locale encoding, not from the filesystem encoding.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13560>
_______________________________________
More information about the Python-bugs-list
mailing list