Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541620 - dev-python/ptpython-0.5 crashes with a Latin-1 locale
Summary: dev-python/ptpython-0.5 crashes with a Latin-1 locale
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-28 10:48 UTC by Helmut Jarausch
Modified: 2020-03-28 17:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2015-02-28 10:48:52 UTC
Invoking ptpython and entering
print(

crashes ptpython with
In [1]: print(Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/ptpython", line 9, in <module>
    load_entry_point('ptpython==0.5', 'console_scripts', 'ptpython')()
  File "/usr/lib64/python3.4/site-packages/ptpython/entry_points/run_ptpython.py
    no_colors=no_colors, startup_paths=startup_paths)
  File "/usr/lib64/python3.4/site-packages/ptpython/repl.py", line 208, in embed
    repl.start_repl(startup_paths=startup_paths)a+ [F2] Sidebar - CPython 3.4.2 
  File "/usr/lib64/python3.4/site-packages/ptpython/repl.py", line 51, in start_
    on_exit=AbortAction.RAISE_EXCEPTION)
  File "/usr/lib64/python3.4/site-packages/prompt_toolkit/interface.py", line 29
    next(g)
  File "/usr/lib64/python3.4/site-packages/prompt_toolkit/interface.py", line 35
    loop_result = self.eventloop.loop()
  File "/usr/lib64/python3.4/site-packages/prompt_toolkit/eventloop/posix.py", l
    c()
  File "/usr/lib64/python3.4/site-packages/prompt_toolkit/interface.py", line 23
    self.renderer.render(self, self.layout, self.style)
  File "/usr/lib64/python3.4/site-packages/prompt_toolkit/renderer.py", line 329
    output.flush()
  File "/usr/lib64/python3.4/site-packages/prompt_toolkit/terminal/vt100_output.
    self.stdout.write(data)
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 461-539:


locale gives
LANG=en_US.iso88591
LC_CTYPE=en_US.iso88591
LC_NUMERIC="en_US.iso88591"
LC_TIME="en_US.iso88591"
LC_COLLATE="en_US.iso88591"
LC_MONETARY="en_US.iso88591"
LC_MESSAGES="en_US.iso88591"
LC_PAPER="en_US.iso88591"
LC_NAME="en_US.iso88591"
LC_ADDRESS="en_US.iso88591"
LC_TELEPHONE="en_US.iso88591"
LC_MEASUREMENT="en_US.iso88591"
LC_IDENTIFICATION="en_US.iso88591"
LC_ALL=
Comment 1 Mike Gilbert gentoo-dev 2015-03-03 03:32:43 UTC
It looks like your output might have gotten cut off.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2015-03-03 07:38:47 UTC
Could you please report this upstream.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-03-28 17:10:13 UTC
Old version removed.  Please reopen if you can still reproduce it.