Message175441
macosx-2.patch patches _Py_wchar2char() and _Py_char2wchar() functions to
use UTF-8/surrogateescape for any function using the locale encoding, not
only file related functions of fileutils.h. The patch does also simplify
the code, no more specific #ifdef __APPLE__ in python.c:
-#ifdef __APPLE__
- argv_copy[i] = _Py_DecodeUTF8_surrogateescape(argv[i],
strlen(argv[i]));
-#else
argv_copy[i] = _Py_char2wchar(argv[i], NULL);
-#endif
2012/11/7 Andrew Svetlov <report@bugs.python.org>
>
> Changes by Andrew Svetlov <andrew.svetlov@gmail.com>:
>
>
> ----------
> nosy: +asvetlov
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue16416>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2012-11-12 13:32:54 | vstinner | set | recipients:
+ vstinner, ronaldoussoren, asvetlov, serhiy.storchaka |
2012-11-12 13:32:54 | vstinner | link | issue16416 messages |
2012-11-12 13:32:54 | vstinner | create | |
|