Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Windows] New REPL doesn't allow to input non-ASCII Unicode characters #130804

Closed
Labels
3.13bugs and security fixes3.14bugs and security fixesOS-windowsstdlibStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error
@sergey-miryanov

Description

@sergey-miryanov

Bug report

Bug description:

I got following error when I tried to type Cyrillic characters (tried ч in this example) in the new repl:

.\python.batRunning Release|x64 interpreter...Python 3.14.0a5+ (heads/main-dirty:d0eb01c9de9, Mar  3 2025, 23:39:38) [MSC v.1942 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> xTraceback (most recent call last):  File"<python-input-0>", line1, in<module>    xNameError:name 'x' is not defined>>> Traceback (most recent call last):  File"<frozen runpy>", line198, in_run_module_as_main  File"<frozen runpy>", line88, in_run_code  File"D:\Sources\_pythonish\cpython\Lib\_pyrepl\__main__.py", line6, in<module>    __pyrepl_interactive_console()~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^  File"D:\Sources\_pythonish\cpython\Lib\_pyrepl\main.py", line59, ininteractive_console    run_multiline_interactive_console(console)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^  File"D:\Sources\_pythonish\cpython\Lib\_pyrepl\simple_interact.py", line143, inrun_multiline_interactive_console    statement= multiline_input(more_lines, ps1, ps2)  File"D:\Sources\_pythonish\cpython\Lib\_pyrepl\readline.py", line389, inmultiline_inputreturn reader.readline()~~~~~~~~~~~~~~~^^  File"D:\Sources\_pythonish\cpython\Lib\_pyrepl\reader.py", line802, inreadlineself.handle1()~~~~~~~~~~~~^^  File"D:\Sources\_pythonish\cpython\Lib\_pyrepl\reader.py", line758, inhandle1    event=self.console.get_event(block=False)  File"D:\Sources\_pythonish\cpython\Lib\_pyrepl\windows_console.py", line472, inget_eventself.event_queue.push(rec.Event.KeyEvent.uChar.UnicodeChar)~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"D:\Sources\_pythonish\cpython\Lib\_pyrepl\base_eventqueue.py", line77, inpush    char=bytes(bytearray((ord_char,)))~~~~~~~~~^^^^^^^^^^^^^ValueError:byte must be in range(0, 256)

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixesOS-windowsstdlibStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp