[issue1602] windows console doesn't print utf8 (Py30a2)

2009-05-26 Thread Χρήστος Γεωργίου (Christos g...@psf.upfronthosting.co.za, eorgiou)

Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net added the 
comment:

Just in case it helps, this behaviour is on Win XP Pro, Python 2.5.1:

First, I added an alias for 'cp65001' to 'utf_8' in
Lib/encodings/aliases.py .

Then, I opened a command prompt with a bitmap font.

c:\windows\system32python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on
win32
Type help, copyright, credits or license for more information.
 print u\N{EM DASH}
—

I switched the font to Lucida Console, and retried (without exiting the
python interpreter, although the behaviour is the same when exiting and
entering again: )

 print u\N{EM DASH}
Traceback (most recent call last):
  File stdin, line 1, in module
IOError: [Errno 13] Permission denied

Then I tried (by pressing Alt+0233 for é, which is invalid in my normal
cp1253 codepage):

 print unée

and the interpreter exits without any information. So it does for:

 a=unée

Then I created a UTF-8 text file named 'test65001.py':

# -*- coding: utf_8 -*-
a=unéeα
print a

and tried to run it directly from the command line:

c:\windows\system32python d:\src\PYTHON\test65001.py
néeαTraceback (most recent call last):
  File d:\src\PYTHON\test65001.py, line 4, in module
print a
IOError: [Errno 2] No such file or directory

You see? It printed all the characters before failing.

Also the following works:

c:\windows\system32echo heéε
heéε

and

c:\windows\system32echo heéε D:\src\PYTHON\dummy.txt

creates successfully a UTF-8 file (without any UTF-8 BOM marks at the
beginning).

So it's possible that it is a python bug, or at least something can be
done about it.

--
nosy: +tzot

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



[issue6058] Add cp65001 to encodings/aliases.py

2009-05-26 Thread Χρήστος Γεωργίου (Christos g...@psf.upfronthosting.co.za, eorgiou)

New submission from Χρήστος Γεωργίου (Christos Georgiou) 
t...@users.sourceforge.net:

Add 'cp65001' (Microsoft term for UTF-8) as an alias to 'utf_8'

--
components: Library (Lib), Unicode
files: alias_cp65001.diff
keywords: patch
messages: 88060
nosy: tzot
severity: normal
status: open
title: Add cp65001 to encodings/aliases.py
type: feature request
versions: Python 2.7
Added file: http://bugs.python.org/file14013/alias_cp65001.diff

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



[issue6058] Add cp65001 to encodings/aliases.py

2009-05-26 Thread Χρήστος Γεωργίου (Christos g...@psf.upfronthosting.co.za, eorgiou)

Changes by Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net:


--
components: +Windows

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



[issue6058] Add cp65001 to encodings/aliases.py

2009-05-26 Thread Χρήστος Γεωργίου (Christos g...@psf.upfronthosting.co.za, eorgiou)

Changes by Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net:


Removed file: http://bugs.python.org/file14013/alias_cp65001.diff

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



[issue6058] Add cp65001 to encodings/aliases.py

2009-05-26 Thread Χρήστος Γεωργίου (Christos g...@psf.upfronthosting.co.za, eorgiou)

Changes by Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net:


Added file: http://bugs.python.org/file14014/alias_cp65001.diff

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