[New-bugs-announce] [issue42614] Pathlib does not support a Cyrillic character 'й'
Mihail Kirilov
report at bugs.python.org
Thu Dec 10 06:32:57 EST 2020
New submission from Mihail Kirilov <hidr0.frbg at gmail.com>:
I have a file with a Cirilyc name - "Файл на български", which when I load with path.Path and call name on it behaves differently
```
(Pdb) pathlib.Path("/tmp/pytest-of-root/pytest-15/test_bulgarian_name0/data/encoding/Файл на български.ldr").name
'Файл на български.ldr'
(Pdb) pathlib.Path("/tmp/pytest-of-root/pytest-15/test_bulgarian_name0/data/encoding/Файл на български.ldr").name[2]
'и'
(Pdb) pathlib.Path("/tmp/pytest-of-root/pytest-15/test_bulgarian_name0/data/encoding/Файл на български.ldr").name == "Файл на български"
False
```
----------
components: Unicode
messages: 382823
nosy: ezio.melotti, hidr0.frbg, vstinner
priority: normal
severity: normal
status: open
title: Pathlib does not support a Cyrillic character 'й'
type: crash
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42614>
_______________________________________
More information about the New-bugs-announce
mailing list