[Python-checkins] python/dist/src/Lib locale.py,1.22,1.23

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Mon, 04 Nov 2002 19:49:11 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv28962/python/Lib

Modified Files:
	locale.py 
Log Message:
This stopped working on Windows, due to a reference to the non-existent
_locale.getdefaultlocale.  Guessing a leading underscore was intended,
but don't really understood this stuff (locale looks like Spanish for
the opposite of global to me <wink>).


Index: locale.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/locale.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** locale.py	3 Nov 2002 17:20:08 -0000	1.22
--- locale.py	5 Nov 2002 03:49:09 -0000	1.23
***************
*** 398,402 ****
          """Return the charset that the user is likely using."""
          import _locale
!         return _locale.getdefaultlocale()[1]
  else:
      # On Unix, if CODESET is available, use that.
--- 398,402 ----
          """Return the charset that the user is likely using."""
          import _locale
!         return _locale._getdefaultlocale()[1]
  else:
      # On Unix, if CODESET is available, use that.