[issue44898] Path.read_bytes() failed when path contains chinese character

russiavk report at bugs.python.org
Sat Aug 14 04:02:09 EDT 2021


russiavk <russiavk at 139.com> added the comment:

Sorry.I found it only happen in pypy3
My os is win10 64,and pypy version is "PyPy 7.3.6-alpha0 with MSC v.1929 64 bit"

  File "C:\Program Files\pypy-c-jit-102746-9515a976b2ea-win64\lib-python\3\pathlib.py", line 1229, in read_bytes
    with self.open(mode='rb') as f:
  File "C:\Program Files\pypy-c-jit-102746-9515a976b2ea-win64\lib-python\3\pathlib.py", line 1223, in open
    opener=self._opener)
  File "C:\Program Files\pypy-c-jit-102746-9515a976b2ea-win64\lib-python\3\pathlib.py", line 1078, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: WindowsPath('D:/somepath contains chinese character')

----------
versions: +Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44898>
_______________________________________


More information about the Python-bugs-list mailing list