summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2000-06-07 09:13:21 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2000-06-07 09:13:21 (GMT)
commit90e81471181e4afa841505b6fe81b379b64001de (patch)
tree814ead2fb2bb59cd171e10aa6b961e1536994f8c /Objects/unicodeobject.c
parent753131c90a375adc605f93343c897026d199577c (diff)
downloadcpython-90e81471181e4afa841505b6fe81b379b64001de.zip
cpython-90e81471181e4afa841505b6fe81b379b64001de.tar.gz
cpython-90e81471181e4afa841505b6fe81b379b64001de.tar.bz2
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.
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index fa7c5ea2..c7f9803 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 */