[Python-checkins] python/dist/src/Misc NEWS,1.495,1.496
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Wed, 09 Oct 2002 14:40:50 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv16944
Modified Files:
NEWS
Log Message:
News about repr() and 8-bit characters, and setlocale() in the
readline module.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.495
retrieving revision 1.496
diff -C2 -d -r1.495 -r1.496
*** NEWS 8 Oct 2002 02:44:31 -0000 1.495
--- NEWS 9 Oct 2002 21:40:48 -0000 1.496
***************
*** 67,70 ****
--- 67,76 ----
-----------------
+ - The repr() function for 8-bit strings now preserves all characters
+ that are considered printable in the current locale. (Previously,
+ all bytes that are not printable ASCII would be encoded in hex.)
+ This requires the user to set the current locale; in the initial "C"
+ locale the old behavior is maintained. [SF patch 479898]
+
- Unicode file name processing for Windows (PEP 277) is implemented.
All platforms now have an os.path.supports_unicode_filenames attribute,
***************
*** 348,351 ****
--- 354,368 ----
Library
-------
+
+ - Importing the readline module now no longer has the side effect of
+ calling setlocale(LC_CTYPE, ""). The initial "C" locale, or
+ whatever locale is explicitly set by the user, is preserved. If you
+ want repr() of 8-bit strings in your preferred encoding to preserve
+ all printable characters of that encoding, you have to add the
+ following code to your $PYTHONSTARTUP file or to your application's
+ main():
+
+ import locale
+ locale.setlocale(locale.LC_CTYPE, "")
- shutil.move was added. shutil.copytree now reports errors as an