[Python-checkins] python/dist/src/Doc/lib liblocale.tex, 1.33.10.1, 1.33.10.2

loewis at users.sourceforge.net loewis at users.sourceforge.net
Tue Sep 2 22:53:19 EDT 2003


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv24806/Doc/lib

Modified Files:
      Tag: release23-maint
	liblocale.tex 
Log Message:
Use de_DE in example, change message for unknown locale. Fixes #797447.


Index: liblocale.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liblocale.tex,v
retrieving revision 1.33.10.1
retrieving revision 1.33.10.2
diff -C2 -d -r1.33.10.1 -r1.33.10.2
*** liblocale.tex	25 Aug 2003 04:34:46 -0000	1.33.10.1
--- liblocale.tex	3 Sep 2003 04:53:17 -0000	1.33.10.2
***************
*** 399,403 ****
  >>> import locale
  >>> loc = locale.setlocale(locale.LC_ALL) # get current locale
! >>> locale.setlocale(locale.LC_ALL, 'de') # use German locale
  >>> locale.strcoll('f\xe4n', 'foo') # compare a string containing an umlaut 
  >>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale
--- 399,403 ----
  >>> import locale
  >>> loc = locale.setlocale(locale.LC_ALL) # get current locale
! >>> locale.setlocale(locale.LC_ALL, 'de_DE') # use German locale; name might vary with platform
  >>> locale.strcoll('f\xe4n', 'foo') # compare a string containing an umlaut 
  >>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale





More information about the Python-checkins mailing list