Mercurial > cpython-lru_cache-weakref
diff Python/pystrcmp.c @ 74002:279b0aee0cfb
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.
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Fri, 16 Dec 2011 23:56:01 +0100 |
| parents | f197407bdba2 |
| children |
