[Python-checkins] r43700 - python/branches/release24-maint/Doc/lib/libzipfile.tex
georg.brandl
python-checkins at python.org
Thu Apr 6 12:03:36 CEST 2006
Author: georg.brandl
Date: Thu Apr 6 12:03:36 2006
New Revision: 43700
Modified:
python/branches/release24-maint/Doc/lib/libzipfile.tex
Log:
Bug #1465600: note encoding issue in ZipFile.write().
(backport from rev. 43699)
Modified: python/branches/release24-maint/Doc/lib/libzipfile.tex
==============================================================================
--- python/branches/release24-maint/Doc/lib/libzipfile.tex (original)
+++ python/branches/release24-maint/Doc/lib/libzipfile.tex Thu Apr 6 12:03:36 2006
@@ -144,6 +144,15 @@
given for the \var{compression} parameter to the constructor for
the new entry. The archive must be open with mode \code{'w'} or
\code{'a'}.
+
+ \note{There is no official file name encoding for ZIP files.
+ If you have unicode file names, please convert them to byte strings
+ in your desired encoding before passing them to \method{write()}.
+ WinZip interprets all file names as encoded in CP437, also known
+ as DOS Latin.}
+
+ \note{Archive names should be relative to the archive root, that is,
+ they should not start with a path separator.}
\end{methoddesc}
\begin{methoddesc}{writestr}{zinfo_or_arcname, bytes}
More information about the Python-checkins
mailing list