From: Fredrik Lundh Date: Sat, 15 Jul 2000 20:50:27 +0000 (+0000) Subject: -- note to self: wait until 'cvs commit' has finished before X-Git-Tag: v2.0b1~818 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efd7b001d62f81d7e4d9d11960948f21b49e7ac0;p=thirdparty%2FPython%2Fcpython.git -- note to self: wait until 'cvs commit' has finished before you edit the file. --- diff --git a/Lib/site.py b/Lib/site.py index 14d9b04cc777..34be9ec6a7cd 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -124,7 +124,7 @@ del exit # encoding used by the default locale of this system. If the default # encoding cannot be determined or is unknown, it defaults to 'ascii'. -encoding = None # default +encoding = "ascii" # default if 0: # Enable to support locale aware default string encodings. @@ -138,8 +138,7 @@ if 0: # Unicode to string conversion. encoding = "undefined" -if not encoding: - encoding = "ascii" +sys.setdefaultencoding(encoding) # # Run custom site specific code, if available.