Lines Matching defs:encoding
114 -X warn_default_encoding: enable opt-in EncodingWarning for 'encoding=None'\n\
161 "PYTHONWARNDEFAULTENCODING: enable opt-in EncodingWarning for 'encoding=None'.\n"
188 /* UTF-8 mode (PEP 540): if equals to 1, use the UTF-8 encoding, and change
502 * mechanism that attempts to figure out an appropriate IO encoding
509 Py_SetStandardStreamEncoding(const char *encoding, const char *errors)
531 if (encoding) {
533 _Py_StandardStreamEncoding = _PyMem_RawStrdup(encoding);
551 /* Overriding the stream encoding implies legacy streams */
1888 wchar_t *encoding;
1890 encoding = _PyMem_RawWcsdup(L"utf-8");
1893 encoding = _Py_GetLocaleEncoding();
1895 if (encoding == NULL) {
1898 PyStatus status = PyConfig_SetString(config, locale_encoding, encoding);
1899 PyMem_RawFree(encoding);
1930 // Exit if encoding and errors are defined
1952 /* Does PYTHONIOENCODING contain an encoding? */
1964 /* If the encoding is set but not the error handler,
2016 const wchar_t *encoding;
2018 // Legacy Windows filesystem encoding: mbcs/replace
2019 encoding = L"mbcs";
2023 encoding = L"utf-8";
2025 return PyConfig_SetString(config, fs_encoding, encoding);