mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)
This commit is contained in:
parent
cfbd48bc56
commit
cc16be85c0
18 changed files with 618 additions and 836 deletions
|
@ -604,7 +604,7 @@ _codecs_charmap_decode_impl(PyObject *module, Py_buffer *data,
|
|||
return codec_tuple(decoded, data->len);
|
||||
}
|
||||
|
||||
#ifdef HAVE_MBCS
|
||||
#ifdef MS_WINDOWS
|
||||
|
||||
/*[clinic input]
|
||||
_codecs.mbcs_decode
|
||||
|
@ -666,7 +666,7 @@ _codecs_code_page_decode_impl(PyObject *module, int codepage,
|
|||
return codec_tuple(decoded, consumed);
|
||||
}
|
||||
|
||||
#endif /* HAVE_MBCS */
|
||||
#endif /* MS_WINDOWS */
|
||||
|
||||
/* --- Encoder ------------------------------------------------------------ */
|
||||
|
||||
|
@ -972,7 +972,7 @@ _codecs_charmap_build_impl(PyObject *module, PyObject *map)
|
|||
return PyUnicode_BuildEncodingMap(map);
|
||||
}
|
||||
|
||||
#ifdef HAVE_MBCS
|
||||
#ifdef MS_WINDOWS
|
||||
|
||||
/*[clinic input]
|
||||
_codecs.mbcs_encode
|
||||
|
@ -1021,7 +1021,7 @@ _codecs_code_page_encode_impl(PyObject *module, int code_page, PyObject *str,
|
|||
PyUnicode_GET_LENGTH(str));
|
||||
}
|
||||
|
||||
#endif /* HAVE_MBCS */
|
||||
#endif /* MS_WINDOWS */
|
||||
|
||||
/* --- Error handler registry --------------------------------------------- */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue