diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-11-03 17:20:12 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-11-03 17:20:12 (GMT) |
commit | f0a4668e6f23da6e60c58933f31250cabc7213d6 (patch) | |
tree | 9067bb0eccb339e9eb67b74f37c0d5541b1251e3 /Doc/lib/liblocale.tex | |
parent | cf57e50989716143569473d5fd6d5a3a1c8cfea7 (diff) | |
download | cpython-f0a4668e6f23da6e60c58933f31250cabc7213d6.zip cpython-f0a4668e6f23da6e60c58933f31250cabc7213d6.tar.gz cpython-f0a4668e6f23da6e60c58933f31250cabc7213d6.tar.bz2 |
Add getpreferredencoding. Support @euro modifiers. Fixes #554676.
The @euro part is backported to 2.2.3.
Diffstat (limited to 'Doc/lib/liblocale.tex')
-rw-r--r-- | Doc/lib/liblocale.tex | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/lib/liblocale.tex b/Doc/lib/liblocale.tex index 3c4506d..415f0cf 100644 --- a/Doc/lib/liblocale.tex +++ b/Doc/lib/liblocale.tex @@ -155,6 +155,20 @@ for which symbolic constants are available in the locale module. \versionadded{2.0} \end{funcdesc} +\begin{funcdesc}{getpreferredencoding}{\optional{do_setlocale}} + Return the encoding used for text data, according to user + preferences. User preferences are expressed differently on + different systems, and might not be available programmatically on + some systems, so this function only returns a guess. + + On some systems, it is necessary to invoke \function{setlocale} + to obtain the user preferences, so this function is not thread-safe. + If invoking setlocale is not necessary or desired, \var{do_setlocale} + should be set to \code{False}. + + \versionadded{2.3} +\end{funcdesc} + \begin{funcdesc}{normalize}{localename} Returns a normalized locale code for the given locale name. The returned locale code is formatted for use with |