[MacPorts] #33720: Cannot use non-ascii in the Python interactive shell
#33720: Cannot use non-ascii in the Python interactive shell -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: python26, python27 -----------------------------------------------+---------------------------- If try and type "Ü" then the terminal just beeps and displays nothing. This affects only MacPorts Python 2.6 & 2.7 but not the system Python. Running on Mac OS 10.7 -- Ticket URL: <https://trac.macports.org/ticket/33720> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33720: Cannot use non-ascii in the Python interactive shell -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: python26, python27 -----------------------------------------------+---------------------------- Changes (by cal@…): * cc: mcalhoun@…, jwa@… (added) Comment: Please remember to Cc the maintainer(s), if any. -- Ticket URL: <https://trac.macports.org/ticket/33720#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33720: Cannot use non-ascii in the Python interactive shell -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: python26, python27 -----------------------------------------------+---------------------------- Comment(by macsforever2000@…): Have you tried the ucs4 variant? -- Ticket URL: <https://trac.macports.org/ticket/33720#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33720: Cannot use non-ascii in the Python interactive shell -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: python26, python27 -----------------------------------------------+---------------------------- Comment(by charlie.clark@…): Just tried ucs4 but no joy. Apple's Python is also only ucs2. -- Ticket URL: <https://trac.macports.org/ticket/33720#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33720: Cannot use non-ascii in the Python interactive shell -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: python26, python27 -----------------------------------------------+---------------------------- Comment(by nad@…): You need to install the corresponding readline ports, i.e. py26-readline and/or py27-readline. (Umlauted characters are in the BMP, so ucs2 is fine.) -- Ticket URL: <https://trac.macports.org/ticket/33720#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33720: Cannot use non-ascii in the Python interactive shell -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: python26, python27 -----------------------------------------------+---------------------------- Comment(by charlie.clark@…): Replying to [comment:4 nad@…]:
You need to install the corresponding readline ports, i.e. py26-readline and/or py27-readline. (Umlauted characters are in the BMP, so ucs2 is fine.)
That does indeed solve the problem though I'm curious as to why the readline has to be installed additionally. Licensing issues? -- Ticket URL: <https://trac.macports.org/ticket/33720#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33720: Cannot use non-ascii in the Python interactive shell -----------------------------------------------+---------------------------- Reporter: charlie.clark@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.4 Keywords: | Port: python26, python27 -----------------------------------------------+---------------------------- Comment(by nad@…): That's a good question. Actually, 2.7 at least should work without installing the readline port as, by default, Python now tries to link with libedit (the BSD version) rather than GNU readline. Building Python from source and using the Apple-supplied libedit (in 10.7 for example), your example works OK, as does the python.org 64-bit/32-bit installer which also uses the system libedit, The MacPort port file has some patches in this area (patch-libedit.diff, patch-readlinefix.diff are the obvious ones) which may be breaking something. Someone should look into them. (I don't have time right now to do it myself.); -- Ticket URL: <https://trac.macports.org/ticket/33720#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts