[New-bugs-announce] [issue44836] shutil _unpack_zipfile filename encoding issue
Yogendra kumar soni
report at bugs.python.org
Thu Aug 5 04:48:32 EDT 2021
New submission from Yogendra kumar soni <soniyk40 at gmail.com>:
shutil _unpack_zipfile uses takes filename using
name = info.filename
if files are created in a machine that uses different encoding say utf-8 containing u'\u201c' in filename and the machine where we are extracting has a different encoding say Latin-1.
creating target path using _ensure_directory(targetpath)
is not able to correctly check target path and creating targetpath also fails.
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u201c'.
----------
components: Library (Lib)
messages: 398975
nosy: yogendraksoni
priority: normal
severity: normal
status: open
title: shutil _unpack_zipfile filename encoding issue
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44836>
_______________________________________
More information about the New-bugs-announce
mailing list