This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <[email protected]>
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 <[email protected]>

>
> Changes by Andrew Svetlov <[email protected]>:
>
>
> ----------
> nosy: +asvetlov
>
> _______________________________________
> Python tracker <[email protected]>
> <http://bugs.python.org/issue16416>
> _______________________________________
>
Files
File name Uploaded
macosx-2.patch vstinner, 2012-11-12.13:32:53
History
Date User Action Args
2012-11-12 13:32:54vstinnersetrecipients: + vstinner, ronaldoussoren, asvetlov, serhiy.storchaka
2012-11-12 13:32:54vstinnerlinkissue16416 messages
2012-11-12 13:32:54vstinnercreate