From: Marc-André Lemburg <mal@egenix.com>
Date: Wed, 7 Jun 2000 09:13:21 +0000 (+0000)
Subject: Marc-Andre Lemburg <mal@lemburg.com>:
X-Git-Tag: v2.0b1~1555
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90e81471181e4afa841505b6fe81b379b64001de;p=python

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.
---

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 */