CP65001 fails (was re: ...)
wxjmfauth at gmail.com
wxjmfauth at gmail.com
Sat Dec 14 15:48:05 EST 2013
Le samedi 14 décembre 2013 19:43:41 UTC+1, Terry Reedy a écrit :
> 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.
>
>
>
----
>>> print((os.linesep).join([unicodedata.name(c) for c in u]))
ETHIOPIC SYLLABLE SEE
LATIN SMALL LETTER E WITH ACUTE
EURO SIGN
CJK UNIFIED IDEOGRAPH-3456
CYRILLIC CAPITAL LETTER GJE
COUNTERBORE
ASTERISK
-----
cp65001, font: Consolas
D:\jm\jmgo>echo "ሴé€㑖Ѓ⌴*"
"ሴé€㑖Ѓ⌴*"
As I explained some chars are rendered with the .notdef glyph:
the chars 1, 4 and 7.
I build an exe with the golang. Same result.
Just for curiosity:
XeTeX -> pdf: same result.
LucidaConsole CID TrueType,
Consolas CID TrueType
understand: "OpenType"
jmf
More information about the Python-list
mailing list