CP65001 fails (was re: ...)

Terry Reedy tjreedy at udel.edu
Sat Dec 14 19:43:41 CET 2013


On 12/14/2013 9:03 AM, wxjmfauth at gmail.com wrote:

> D:\>chcp 65001
> Page de codes active : 65001
> D:\>echo "*"
> "*"

Try pasting *your* original echo command: echo "ሴé€㑖Ѓ⌴*"

To repeat, here is what I see:
'''
C:\Users\Terry>echo "?‚????*"
"?‚????*"

C:\Users\Terry>chcp 65001
Active code page: 65001

C:\Users\Terry>echo "*"
The system cannot write to the specified device.
'''
To repeat, the second time I paste: echo "ሴé€㑖Ѓ⌴*"
but Command Prompt only displays: echo "*". Typing in the latter, 
ascii-only, command is meaningless.

A similar test:
'''
C:\Users\Terry>more
^Z

C:\Users\Terry>chcp 65001
Active code page: 65001

C:\Users\Terry>more
Not enough memory.
'''
This was reported by Victor Stinner as part of
http://bugs.python.org/issue19914
to explain how cp65001 causes behavior like this with Python's 
interactive help() function (which more for paging on Windows).

 >>> help(str)
Not enough memory.

See
http://stackoverflow.com/questions/3401802/codepage-850-works-65001-fails-there-is-no-response-to-call-foo-cmd-interna
for other reports that cp65001 fails. It is not just me.

-- 
Terry Jan Reedy





More information about the Python-list mailing list