summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-12-16 23:56:01 +0100
committerVictor Stinner <victor.stinner@haypocalc.com>2011-12-16 23:56:01 +0100
commitab895ebc75ae51642db6392c58a0f7addb2c96cf (patch)
treececeffafdf69201ea36c4c2efb131af65e42e0ab /Python/errors.c
parent4cf45f5657675dff1ee19b2e9835407b4ad0baca (diff)
downloadcpython-ab895ebc75ae51642db6392c58a0f7addb2c96cf.tar.gz
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.
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions