Repository navigation
[Windows] New REPL doesn't allow to input non-ASCII Unicode characters #130804
Copy link
Copy link
Closed
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixesOS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Mar 3, 2025 Did it previously worked in 3.12 or with the old repl?
- addedstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shell
on Mar 3, 2025 - changed the title
[-]New REPL doesn't allow unicode to input unicode characters[/-][+]New REPL doesn't allow to input non-ASCII Unicode characters[/+]on Mar 3, 2025 - added3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixes
on Mar 3, 2025 Did it previously worked in 3.12 or with the old repl?
Will check on 3.12, it definitely worked on 3.8 repl.
Python 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> ч Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'ч' is not definedIt works on 3.12 and 3.13
Running Release|x64 interpreter... Python 3.12.9+ (heads/3.12-dirty:3614649714a, Mar 4 2025, 00:02:21) [MSC v.1942 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> x Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'x' is not defined >>> ч Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'ч' is not definedPython 3.13.1 (tags/v3.13.1:0671451, Dec 3 2024, 19:06:28) [MSC v.1942 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> x Traceback (most recent call last): File "<python-input-0>", line 1, in <module> x NameError: name 'x' is not defined >>> ч Traceback (most recent call last): File "<python-input-1>", line 1, in <module> ч NameError: name 'ч' is not definedIt doesn't occur for me?
Python 3.14.0a5+ (heads/add-heapq-max-dirty:ddc27f9c385, Mar 1 2025, 14:42:30) [GCC 14.2.1 20250110 (Red Hat 14.2.1-7)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> ч Traceback (most recent call last): File "<python-input-0>", line 1, in <module> ч NameError: name 'ч' is not defined >>> exit@StanFromIreland it seems a windows related.
Reacted by Stan UlbrychThat means it could also be code-page or locale related.
Reacted by Stan UlbrychWe've bypassed the code page for the default REPL since 3.6, so it's almost certainly due to something in the new REPL. Possibly it's gone back to using codepages instead of Unicode?
I believe it is from @y5c4l3 a65366e#diff-77cdde1442e2d3a5fe5ee852304d1af6d0a2033e718dc588552d61596cb72100R472
Reacted by Łukasz Langa- changed the title
[-]New REPL doesn't allow to input non-ASCII Unicode characters[/-][+][Windows] New REPL doesn't allow to input non-ASCII Unicode characters[/+]on Mar 5, 2025 It seems this was not fully resolved... #131878
Metadata
Metadata
Assignees
Labels
3.13only security fixesonly security fixes3.14bugs and security fixesbugs and security fixesOS-windowsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
I got following error when I tried to type Cyrillic characters (tried ч in this example) in the new repl:
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs