From 90e81471181e4afa841505b6fe81b379b64001de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Wed, 7 Jun 2000 09:13:21 +0000 Subject: [PATCH] Marc-Andre Lemburg : 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. --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.40.0