[New-bugs-announce] [issue46855] printing a string with strange characters loops forever
svilen dobrev
report at bugs.python.org
Fri Feb 25 10:49:37 EST 2022
New submission from svilen dobrev <az at svilendobrev.com>:
$ python
Python 3.10.2 (main, Jan 15 2022, 19:56:27) [GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> a= "Betrag gr\xc3\xb6\xc3\x9fer als Betrag der Original-Transaktion"
>>> a
'Betrag gröÃ\x9fer als Betrag der Original-Transaktion'
>>> print(a)
Betrag gröÃ~
---------------
And above waits forever. Does not consume resources, but does not hear Ctrl-C. Ctrl-\ kills it.
The string above is just a byte string of the utf-8 representation, with forgotten "b" infront of it.
----------
components: Interpreter Core
messages: 414010
nosy: svild
priority: normal
severity: normal
status: open
title: printing a string with strange characters loops forever
type: behavior
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46855>
_______________________________________
More information about the New-bugs-announce
mailing list