]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
-- note to self: wait until 'cvs commit' has finished before
authorFredrik Lundh <fredrik@pythonware.com>
Sat, 15 Jul 2000 20:50:27 +0000 (20:50 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Sat, 15 Jul 2000 20:50:27 +0000 (20:50 +0000)
   you edit the file.

Lib/site.py

index 14d9b04cc77757c92da197df27cefa92547ae45b..34be9ec6a7cdafdfc2d82dcf2cd338208e62553d 100644 (file)
@@ -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.