New submission from svilen dobrev <a...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue46855>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to