New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode #57968
Comments
I installed Python 3.2.2 on Macintosh(Snow Leopard), by using installer on python.org. Thanks in advance. |
Can you give the exact steps of what you did to demonstrate the problem? Also, there are two OS X installers for Python 3.2.2. Which one did you install? (The two lines of version information when starting Python is enough to identify which one it is.) |
The procedure is following.
And I use Mac OS X 64-bit/32-bit Installer (3.2.2) for Mac OS X 10.6 and 10.7. Python 3.2.2 (v3.2.2:137e45f15c0b, Sep 3 2011, 17:28:59) thanks :-) |
I am not familiar with the Japanese input methods available in OS X. But using copy and paste with an US UTF-8 locale, it seems to work. Perhaps there is a different locale in effect? Python 3.2.2 (v3.2.2:137e45f15c0b, Sep 3 2011, 17:28:59)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> x = 'あ'
>>> print(x)
あ
>>> print(ord(x))
12354
>>> import unicodedata
>>> unicodedata.name(x)
'HIRAGANA LETTER A'
>>> print('%x' % ord(x))
3042
>>> import locale
>>> locale.getlocale()
('en_US', 'UTF-8') |
Thank you for testing on your environment :-). I changed the status to pending. I'll come back to this issue when I find the crue. Thanks anyway ! |
To reproduce this issue you could use the "Unicode Hex Input" input source (enable this in the Language & Text prefpane, switch between sources either using CMD-space or the menu bar icon). I can "あ" by keeping ALT pressed and typing 3042. This works fine with a self-built version of 3.2 (tip of tree), I haven't tested the 3.2 binary installer (yet). |
Ned, Closing as an out of date issue. |
This isn't out of date, it appears that it was not a bug in the first place, but the OP never got back to us with confirmation one way or the other. |
R. David, Fair enough. Thanks for pointing out the difference between 'out of date' and 'works for me'. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: