[issue14227] console w/ cp65001 displays extra characters for non-ascii strings.

2012-04-05 Thread STINNER Victor

STINNER Victor  added the comment:

I'm quite sure that this issue is a duplicate of #1602.

--
resolution:  -> duplicate
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14227] console w/ cp65001 displays extra characters for non-ascii strings.

2012-03-08 Thread STINNER Victor

STINNER Victor  added the comment:

See the issue #1602.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14227] console w/ cp65001 displays extra characters for non-ascii strings.

2012-03-08 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +haypo, loewis

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14227] console w/ cp65001 displays extra characters for non-ascii strings.

2012-03-07 Thread Mark Tolonen

New submission from Mark Tolonen :

This is on Windows 7 SP1.  Run 'chcp 65001' then Python from a console.  Note 
the extra characters when non-ASCII characters are in the string.  At a guess 
it appears to be using the UTF-8 byte length of the internal representation 
instead of the character count.

Python 3.3.0a1 (default, Mar  4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print('hello')
hello
>>> print('p\u012bny\u012bn')
pīnyīn
n
>>> print('\u012b'*10)
īī
�
�ī

--
components: IO, Unicode, Windows
messages: 155149
nosy: ezio.melotti, metolone
priority: normal
severity: normal
status: open
title: console w/ cp65001 displays extra characters for non-ascii strings.
type: behavior
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com