|
From: <bc...@wo...> - 2001-07-19 21:42:25
|
I have added a patch which attempt to fix bug [ #439688 ] Syntax error for non-ascii characters. >http://sourceforge.net/tracker/index.php?func=detail&aid=439688&group_id=12867&atid=112867 The patch also attempt to define a different codec for the console and it is this part of the patch that I seek some feedback for. >http://sourceforge.net/tracker/index.php?func=detail&aid=442906&group_id=12867&atid=312867 Note: The wish for a different encoding for the console is a Windows only issue. Changing the console encoding does not change the way all other python sources is read. 1) The encoding for the console is stored in the CompilerFlags and passed into the parser. Samuele, how do you feel about reusing CompilerFlags for this purpose? 2) I can't find any way of detecting the encoding used for the console so I have added two way the user can specify the encoding. An registry options "python.console.encoding" and a command line options "-E codec". By default the console will still use the file.encoding it does today. Depending on what CPython comes up with regarding file encoding we may also be able to change the encoding from within the console session. The patch works on my danish windows when I specify the console encoding as "cp850" using jdk. regards, finn |