]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bug #1465600: note encoding issue in ZipFile.write().
authorGeorg Brandl <georg@python.org>
Thu, 6 Apr 2006 10:03:36 +0000 (10:03 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 6 Apr 2006 10:03:36 +0000 (10:03 +0000)
 (backport from rev. 43699)

Doc/lib/libzipfile.tex

index a0b5e63be20b81f0bec5ae72af9929b48f468d81..4ba62fe52818744f7268df4523a762ad05ae4e9f 100644 (file)
@@ -144,6 +144,15 @@ cat myzip.zip >> python.exe
   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}