[Python-checkins] CVS: python/dist/src/Objects unicodeobject.c,2.21,2.22

Marc-Andre Lemburg python-dev@python.org
Wed, 7 Jun 2000 02:13:24 -0700


Update of /cvsroot/python/python/dist/src/Objects
In directory slayer.i.sourceforge.net:/tmp/cvs-serv17917/Objects

Modified Files:
	unicodeobject.c 
Log Message:
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.

Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.21
retrieving revision 2.22
diff -C2 -r2.21 -r2.22
*** unicodeobject.c	2000/05/09 19:54:43	2.21
--- unicodeobject.c	2000/06/07 09:13:21	2.22
***************
*** 4711,4715 ****
      /* Init the implementation */
      unicode_empty = _PyUnicode_New(0);
!     strcpy(unicode_default_encoding, "utf-8");
  }
  
--- 4711,4715 ----
      /* Init the implementation */
      unicode_empty = _PyUnicode_New(0);
!     strcpy(unicode_default_encoding, "ascii");
  }