Commit ea6aeda0 authored by Marc-André Lemburg's avatar Marc-André Lemburg

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.
parent d1481917
...@@ -4710,7 +4710,7 @@ void _PyUnicode_Init() ...@@ -4710,7 +4710,7 @@ void _PyUnicode_Init()
/* Init the implementation */ /* Init the implementation */
unicode_empty = _PyUnicode_New(0); unicode_empty = _PyUnicode_New(0);
strcpy(unicode_default_encoding, "utf-8"); strcpy(unicode_default_encoding, "ascii");
} }
/* Finalize the Unicode implementation */ /* Finalize the Unicode implementation */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment