[MacPorts] #47827: python34 @3.4.3_2 ANSI escape code are disabled on input() with readline module
#47827: python34 @3.4.3_2 ANSI escape code are disabled on input() with readline module -----------------------+-------------------------------- Reporter: maoutwo@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: python34 -----------------------+-------------------------------- On OS X 10.9.5 with XCode 6.2, python34 @3.4.3_2 disables ANSI escape code on input() with readline module. For example, the following command is executed by python34 @3.4.3_2 and Python 3.4.3 from python.org. {{{ python -c 'import readline; input("\x1b[31;1mthis is a bold red prompt> \x1b[m");' }}} python34 @3.4.3_2 displays the following. ANSI escape code are displayed. {{{ [31;1mthis is a bold red prompt> [m }}} Python 3.4.3 from python.org displayes the following. And the output is red and bold. {{{ this is a bold red prompt> }}} -- Ticket URL: <https://trac.macports.org/ticket/47827> MacPorts <https://www.macports.org/> Ports system for OS X
#47827: python34 @3.4.3_2 ANSI escape code are disabled on input() with readline module ------------------------+------------------- Reporter: maoutwo@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: python34 | ------------------------+------------------- Changes (by larryv@…): * owner: macports-tickets@… => jwa@… * cc: jwa@…, openmaintainer@… (removed) * cc: nad@… (added) -- Ticket URL: <https://trac.macports.org/ticket/47827#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47827: python34 @3.4.3_2 ANSI escape code are disabled on input() with readline module ------------------------+------------------- Reporter: maoutwo@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: python34 | ------------------------+------------------- Comment (by nad@…): I can reproduce the problem (on 10.10) as long as port `py34-readline` is not also installed. By default, MacPorts Pythons are linked with the MacPorts-provided BSD `libedit` library. The `py*-readline` ports replace the corresponding Python readline modules with ones linked with the (MacPorts-provided) GNU `readline` instead of `libedit`. The Pythons from python.org installers currently link with the Apple-supplied `libedit` in OS X; those versions of `libedit` are older than the current MacPorts one. So, one workaround is to just install `py34-readline`. That is currently required for some other ports, like `py34-ipython`, anyway. There has been at least one other issue reported previously on the Python bug tracker that seemed to implicate the newer version of libedit provided in MacPorts (http://bugs.python.org/issue23599). I meant to investigate it further before taking action, like reporting upstream, but I haven't gotten to it yet. Feel free to jump in. -- Ticket URL: <https://trac.macports.org/ticket/47827#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47827: python34 @3.4.3_2 ANSI escape code are disabled on input() with readline module ------------------------+------------------- Reporter: maoutwo@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: python34 | ------------------------+------------------- Comment (by maoutwo@…): Thank you for response. Installing of py34-readline resolves this problem on OS X 10.9.5. -- Ticket URL: <https://trac.macports.org/ticket/47827#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts