Skip to content
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

Closed
ats mannequin opened this issue Jan 11, 2012 · 9 comments
Closed

Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode #57968

ats mannequin opened this issue Jan 11, 2012 · 9 comments
Assignees
Labels
OS-mac type-bug An unexpected behavior, bug, or error

Comments

@ats
Copy link
Mannequin

ats mannequin commented Jan 11, 2012

BPO 13759
Nosy @ronaldoussoren, @ned-deily, @bitdancer, @willingc

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:

assignee = 'https://github.com/ronaldoussoren'
closed_at = <Date 2016-06-23.05:00:46.069>
created_at = <Date 2012-01-11.07:36:55.593>
labels = ['OS-mac', 'type-bug']
title = "Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode"
updated_at = <Date 2016-06-24.14:18:38.582>
user = 'https://bugs.python.org/ats'

bugs.python.org fields:

activity = <Date 2016-06-24.14:18:38.582>
actor = 'willingc'
assignee = 'ronaldoussoren'
closed = True
closed_date = <Date 2016-06-23.05:00:46.069>
closer = 'willingc'
components = ['macOS']
creation = <Date 2012-01-11.07:36:55.593>
creator = 'ats'
dependencies = []
files = []
hgrepos = []
issue_num = 13759
keywords = []
message_count = 9.0
messages = ['151035', '151040', '151044', '151046', '151053', '166992', '269108', '269172', '269178']
nosy_count = 5.0
nosy_names = ['ronaldoussoren', 'ned.deily', 'r.david.murray', 'ats', 'willingc']
pr_nums = []
priority = 'normal'
resolution = 'works for me'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue13759'
versions = ['Python 3.2']

@ats
Copy link
Mannequin Author

ats mannequin commented Jan 11, 2012

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.

@ats ats mannequin assigned ronaldoussoren Jan 11, 2012
@ats ats mannequin added OS-mac type-bug An unexpected behavior, bug, or error labels Jan 11, 2012
@ned-deily
Copy link
Member

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.)

@ats
Copy link
Mannequin Author

ats mannequin commented Jan 11, 2012

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 :-)

@ned-deily
Copy link
Member

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')

@ats
Copy link
Mannequin Author

ats mannequin commented Jan 11, 2012

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 !

@ronaldoussoren
Copy link
Contributor

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).

@willingc
Copy link
Contributor

Ned, Closing as an out of date issue.

@bitdancer
Copy link
Member

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.

@willingc
Copy link
Contributor

R. David, Fair enough. Thanks for pointing out the difference between 'out of date' and 'works for me'.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-mac type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants