diff options
author | Jakub Kulík <Kulikjak@gmail.com> | 2021-05-21 14:59:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-21 14:59:39 (GMT) |
commit | d3cc68900dc99966007112f884779895daefc7db (patch) | |
tree | 52dc54deeb60f5cc538d05c75dd153c4ff524392 /Include/internal/pycore_fileutils.h | |
parent | 0593ae84af9e0e8332644e7ed13d7fd8306c4e1a (diff) | |
download | cpython-d3cc68900dc99966007112f884779895daefc7db.zip cpython-d3cc68900dc99966007112f884779895daefc7db.tar.gz cpython-d3cc68900dc99966007112f884779895daefc7db.tar.bz2 |
[3.9] bpo-43667: Fix broken Unicode encoding in non-UTF locales on Solaris (GH-25096) (GH-25847)
(cherry picked from commit 9032cf5cb1e33c0349089cfb0f6bf11ed3c30e86)
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
Diffstat (limited to 'Include/internal/pycore_fileutils.h')
-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 bbee586..8cf137b 100644 --- a/Include/internal/pycore_fileutils.h +++ b/Include/internal/pycore_fileutils.h @@ -48,6 +48,18 @@ PyAPI_FUNC(int) _Py_GetLocaleconvNumeric( PyObject **decimal_point, PyObject **thousands_sep); +#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 |