Message175441
| Author |
vstinner |
| Recipients |
asvetlov, ronaldoussoren, serhiy.storchaka, vstinner |
| Date |
2012年11月12日.13:32:54 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAMpsgwaVujRnODh=bhQe_fHu=_FUbkGze37KyZsutREOhwVRCg@mail.gmail.com> |
| In-reply-to |
<1352289523.88.0.908097963069.issue16416@psf.upfronthosting.co.za> |
| Content |
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>
> _______________________________________
> |
| Files |
| File name |
Uploaded |
|
macosx-2.patch
|
vstinner,
2012年11月12日.13:32:53
|
|