From bb898906b63350f387dec7fa894d9f7216c95e12 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 6 Apr 2006 10:03:36 +0000 Subject: [PATCH] Bug #1465600: note encoding issue in ZipFile.write(). (backport from rev. 43699) --- Doc/lib/libzipfile.tex | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Doc/lib/libzipfile.tex b/Doc/lib/libzipfile.tex index a0b5e63be20b..4ba62fe52818 100644 --- a/Doc/lib/libzipfile.tex +++ b/Doc/lib/libzipfile.tex @@ -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} -- 2.47.3