diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/fileutils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h index d75189a95c..419d49ab75 100644 --- a/Include/fileutils.h +++ b/Include/fileutils.h @@ -185,6 +185,13 @@ PyAPI_FUNC(int) _Py_GetLocaleconvNumeric( #ifdef Py_BUILD_CORE PyAPI_FUNC(int) _Py_GetForceASCII(void); + +/* Reset "force ASCII" mode (if it was initialized). + + This function should be called when Python changes the LC_CTYPE locale, + so the "force ASCII" mode can be detected again on the new locale + encoding. */ +PyAPI_FUNC(void) _Py_ResetForceASCII(void); #endif #ifdef __cplusplus |