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

2021-08-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: You're still not giving a reproducible example. The PyPy people will be unable to resolve this unless you give them a reproducable example. 'D:/somepath contains chinese character' is not a path with Chinese characters in it. If you refuse to give enough

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

2021-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: pypy is a separate group of people and tracker. cpython 3.7 only gets security patches. -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker

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

2021-08-14 Thread russiavk
russiavk 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')

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

2021-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: If there is no file or directory by the name you give, then the exception is correct and there is no bug in CPython. A failing example should look like Steven's, with the filename in a string that is use to both create and access the file. --

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

2021-08-12 Thread meowmeowcat
Change by meowmeowcat : -- nosy: +meowmeowmeowcat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-08-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: Also, we need to know the version of Python and your OS. -- ___ Python tracker ___ ___

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

2021-08-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: How did you enter the Chinese characters? It works for me: >>> filename = 'Beijing 北京市' >>> with open(filename, 'w') as f: ... f.write('data') ... 4 >>> from pathlib import Path >>> p = Path(filename) >>> p.read_bytes() b'data' Please provide a

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

2021-08-12 Thread russiavk
russiavk added the comment: It give me error :FileNotFoundError [errno 2] No such file or directory -- ___ Python tracker ___ ___

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

2021-08-12 Thread russiavk
New submission from russiavk : Path.read_bytes() failed when this path contains chinese character -- components: IO messages: 399435 nosy: russiavk priority: normal severity: normal status: open title: Path.read_bytes() failed when path contains chinese character type: behavior