diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-09-03 04:50:13 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-09-03 04:50:13 (GMT) |
commit | 25f90d5c5dc70931f750258d5e70e6a916cdf23a (patch) | |
tree | 32e59bcafe977b5b4feed876a5f6622a9d4262ba /Doc/lib/liblocale.tex | |
parent | 2e31ce25140e6ad74f670e8c5021e0bc1bc3ac0f (diff) | |
download | cpython-25f90d5c5dc70931f750258d5e70e6a916cdf23a.zip cpython-25f90d5c5dc70931f750258d5e70e6a916cdf23a.tar.gz cpython-25f90d5c5dc70931f750258d5e70e6a916cdf23a.tar.bz2 |
Use de_DE in example, change message for unknown locale. Fixes #797447.
Will backport to 2.3.
Diffstat (limited to 'Doc/lib/liblocale.tex')
-rw-r--r-- | Doc/lib/liblocale.tex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/liblocale.tex b/Doc/lib/liblocale.tex index df1f6fd..967c759 100644 --- a/Doc/lib/liblocale.tex +++ b/Doc/lib/liblocale.tex @@ -398,7 +398,7 @@ Example: \begin{verbatim} >>> import locale >>> loc = locale.setlocale(locale.LC_ALL) # get current locale ->>> locale.setlocale(locale.LC_ALL, 'de') # use German 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 >>> locale.setlocale(locale.LC_ALL, 'C') # use default (C) locale |