Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
caf9539b
Commit
caf9539b
authored
Apr 06, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1465600: note encoding issue in ZipFile.write().
parent
430947ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
Doc/lib/libzipfile.tex
Doc/lib/libzipfile.tex
+11
-4
No files found.
Doc/lib/libzipfile.tex
View file @
caf9539b
...
...
@@ -141,10 +141,17 @@ cat myzip.zip >> python.exe
Write the file named
\var
{
filename
}
to the archive, giving it the
archive name
\var
{
arcname
}
(by default, this will be the same as
\var
{
filename
}
, but without a drive letter and with leading path
separators removed). If given,
\var
{
compress
_
type
}
overrides the value
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'
}
.
separators removed). If given,
\var
{
compress
_
type
}
overrides the
value 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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment