mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Marc-Andre Lemburg <mal@lemburg.com>:
Change the default encoding to 'ascii' (it was previously defined as UTF-8). Note: The implementation still uses UTF-8 to implement the buffer protocol, so C APIs will still see UTF-8. This is on purpose: rather than fixing the Unicode implementation, the C APIs should be made Unicode aware.
This commit is contained in:
parent
753131c90a
commit
90e8147118
1 changed files with 1 additions and 1 deletions
|
@ -4710,7 +4710,7 @@ void _PyUnicode_Init()
|
|||
|
||||
/* Init the implementation */
|
||||
unicode_empty = _PyUnicode_New(0);
|
||||
strcpy(unicode_default_encoding, "utf-8");
|
||||
strcpy(unicode_default_encoding, "ascii");
|
||||
}
|
||||
|
||||
/* Finalize the Unicode implementation */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue