This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年01月11日 07:36 by ats, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (9) | |||
|---|---|---|---|
| msg151035 - (view) | Author: Atsushi Shibata (ats) | Date: 2012年01月11日 07:36 | |
I installed Python 3.2.2 on Macintosh(Snow Leopard), by using installer on python.org. In interactive mode, it does not accept multibyte character. When I type Japanese character on it, it changes to ?. I tried to make Python 3.2.2 by using tar ball on the same machine. I can type Japanese character in interactive mode. I guess it's because of some minor issue, such as compile option is different etc. Thanks in advance. |
|||
| msg151040 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2012年01月11日 08:11 | |
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.) |
|||
| msg151044 - (view) | Author: Atsushi Shibata (ats) | Date: 2012年01月11日 08:53 | |
The procedure is following. 1. type "python" in the terminal.app to launch interactive mode. 2. type 'あ' in it. And I use Mac OS X 64-bit/32-bit Installer (3.2.2) for Mac OS X 10.6 and 10.7. Here is the first 2 lines of initial message. 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 thanks :-) |
|||
| msg151046 - (view) | Author: Ned Deily (ned.deily) * (Python committer) | Date: 2012年01月11日 09:17 | |
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')
|
|||
| msg151053 - (view) | Author: Atsushi Shibata (ats) | Date: 2012年01月11日 10:50 | |
Thank you for testing on your environment :-). I'll make sure the difference that caused the issue. I changed the status to pending. I'll come back to this issue when I find the crue. Thanks anyway ! |
|||
| msg166992 - (view) | Author: Ronald Oussoren (ronaldoussoren) * (Python committer) | Date: 2012年07月31日 12:15 | |
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). |
|||
| msg269108 - (view) | Author: Carol Willing (willingc) * (Python committer) | Date: 2016年06月23日 05:00 | |
Ned, Closing as an out of date issue. |
|||
| msg269172 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2016年06月24日 14:03 | |
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. |
|||
| msg269178 - (view) | Author: Carol Willing (willingc) * (Python committer) | Date: 2016年06月24日 14:18 | |
R. David, Fair enough. Thanks for pointing out the difference between 'out of date' and 'works for me'. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:25 | admin | set | github: 57968 |
| 2016年06月24日 14:18:38 | willingc | set | messages: + msg269178 |
| 2016年06月24日 14:03:19 | r.david.murray | set | resolution: out of date -> works for me messages: + msg269172 nosy: + r.david.murray |
| 2016年06月23日 05:00:46 | willingc | set | status: open -> closed nosy: + willingc messages: + msg269108 resolution: out of date |
| 2012年07月31日 12:15:27 | ronaldoussoren | set | status: pending -> open messages: + msg166992 |
| 2012年01月11日 10:50:11 | ats | set | status: open -> pending messages: + msg151053 |
| 2012年01月11日 09:17:36 | ned.deily | set | messages: + msg151046 |
| 2012年01月11日 08:53:20 | ats | set | messages: + msg151044 |
| 2012年01月11日 08:11:45 | ned.deily | set | nosy:
+ ned.deily messages: + msg151040 |
| 2012年01月11日 07:36:55 | ats | create | |