diff options
author | Jakub KulĂk <Kulikjak@gmail.com> | 2021-04-30 13:21:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 13:21:42 (GMT) |
commit | 9032cf5cb1e33c0349089cfb0f6bf11ed3c30e86 (patch) | |
tree | 86ccc15aac78e1225299e09c12215d942b147d6f /Include | |
parent | 4908fae3d57f68694cf006e89fd7761f45003447 (diff) | |
download | cpython-9032cf5cb1e33c0349089cfb0f6bf11ed3c30e86.zip cpython-9032cf5cb1e33c0349089cfb0f6bf11ed3c30e86.tar.gz cpython-9032cf5cb1e33c0349089cfb0f6bf11ed3c30e86.tar.bz2 |
bpo-43667: Fix broken Unicode encoding in non-UTF locales on Solaris (GH-25096)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_fileutils.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h index 9281f4e..c1c9244 100644 --- a/Include/internal/pycore_fileutils.h +++ b/Include/internal/pycore_fileutils.h @@ -53,6 +53,18 @@ PyAPI_FUNC(void) _Py_closerange(int first, int last); PyAPI_FUNC(wchar_t*) _Py_GetLocaleEncoding(void); PyAPI_FUNC(PyObject*) _Py_GetLocaleEncodingObject(void); +#ifdef HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION +extern int _Py_LocaleUsesNonUnicodeWchar(void); + +extern wchar_t* _Py_DecodeNonUnicodeWchar( + const wchar_t* native, + Py_ssize_t size); + +extern int _Py_EncodeNonUnicodeWchar_InPlace( + wchar_t* unicode, + Py_ssize_t size); +#endif + #ifdef __cplusplus } #endif |