summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-03-05 15:13:47 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-03-05 15:13:47 (GMT)
commit73d538b9c6d2f262a7d615248c84e509ebd64731 (patch)
tree777d023ce5bb75fa1831d4815533fd085a62b0b7 /Doc
parent620c0837bd4bcc7253cf402c553a50f64e5b9619 (diff)
downloadcpython-73d538b9c6d2f262a7d615248c84e509ebd64731.zip
cpython-73d538b9c6d2f262a7d615248c84e509ebd64731.tar.gz
cpython-73d538b9c6d2f262a7d615248c84e509ebd64731.tar.bz2
Always initialize Py_FileSystemDefaultEncoding on Unix in Py_Initialize,
and not as a side effect of setlocale. Expose it as sys.getfilesystemencoding. Adjust test case.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libsys.tex16
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/lib/libsys.tex b/Doc/lib/libsys.tex
index d027aa6..b8b781b 100644
--- a/Doc/lib/libsys.tex
+++ b/Doc/lib/libsys.tex
@@ -211,6 +211,22 @@ It is always available.
\versionadded{2.2}
\end{funcdesc}
+\begin{funcdesc}{getfilesystemencoding}{}
+ Return the name of the encoding used to convert Unicode filenames
+ into system file names, or \code{None} if the system default encoding
+ is used. The result value depends on the operating system:
+\begin{itemize}
+\item On Windows 9x, the encoding is ``mbcs''.
+\item On Mac OS X, the encoding is ``utf-8''.
+\item On Unix, the encoding is the user's preference
+ according to the result of nl_langinfo(CODESET), or None if
+ the nl_langinfo(CODESET) failed.
+\item On Windows NT+, file names are Unicode natively, so no conversion
+ is performed.
+\end{itemize}
+ \versionadded{2.3}
+\end{funcdesc}
+
\begin{funcdesc}{getrefcount}{object}
Return the reference count of the \var{object}. The count returned
is generally one higher than you might expect, because it includes