[issue33692] Chinese characters issue with input() function under Mac OSX

2018-05-30 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +6871 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue33692] Chinese characters issue with input() function under Mac OSX

2018-05-30 Thread Xiang Zhang
Xiang Zhang added the comment: Yes, it's on MacOS. libedit and GNU deadline both have the behavior. I can see the same behavior on Ubuntu, LANG=en_US.UTF-8. -- ___ Python tracker __

[issue33692] Chinese characters issue with input() function under Mac OSX

2018-05-30 Thread Ned Deily
Ned Deily added the comment: Xiang Zhang, was that on macOS? If so, can someone try on one or more Linux systems with a Chinese locale? I see the same behavior on Linux but I'm not sure that I'm testing it properly. -- ___ Python tracker

[issue33692] Chinese characters issue with input() function under Mac OSX

2018-05-30 Thread Ned Deily
Ned Deily added the comment: FTR: > On macOS, readline is provided by libedit. It *may* be provided by libedit. GNU readline is also commonly used on macOS, although it is not provided by Apple. The easiest way to tell which is in use is to examine the __doc__ attribute of the readline modu

[issue33692] Chinese characters issue with input() function under Mac OSX

2018-05-30 Thread Xiang Zhang
Xiang Zhang added the comment: I could reproduce the behavior that console output doesn't match what Python gets. I agree with Victor this may not be a Python problem. I could also reproduce the behavior with Ruby reading Chinese characters from console. -- nosy: +xiang.zhang __

[issue33692] Chinese characters issue with input() function under Mac OSX

2018-05-30 Thread STINNER Victor
STINNER Victor added the comment: input() uses readline. On macOS, readline is provided by libedit. It may be a bug in libedit which is an external dependency, and so not maintained by Python. -- components: +macOS -2to3 (2.x to 3.x conversion tool) nosy: +ned.deily, ronaldoussoren, v

[issue33692] Chinese characters issue with input() function under Mac OSX

2018-05-30 Thread Valentin Zhao
Change by Valentin Zhao : -- title: Chinese characters issue with input() function -> Chinese characters issue with input() function under Mac OSX ___ Python tracker ___ _