diff options
author | Marc-André Lemburg <mal@egenix.com> | 2000-06-07 09:13:21 +0000 |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2000-06-07 09:13:21 +0000 |
commit | ea6aeda0f88792942f6244802a419f1af21e9443 (patch) | |
tree | 2b3162de920d95b7d494253c01cc151c020ccb55 | |
parent | d148191734d90a9a8fbb6f7448141fa98c8708dc (diff) | |
download | cpython-ea6aeda0f88792942f6244802a419f1af21e9443.tar.gz |
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.
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index fa7c5ea2e6..c7f9803b16 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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 */ |