Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-07-23 Thread Aahz
On Thu, Jul 23, 2009, INADA Naoki wrote: > > I found WriteConsoleW() API recently. > This API can write utf16 string to console directly, without change > OutputCodepage. > > example: > http://bitbucket.org/methane/hg-fixutf8-jp/src/tip/win32helper.py#cl-42 > > I think this API is good for py3k.

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-07-22 Thread Martin v. Löwis
> When stdout is console and not redirected to [pipe|file], > sys.stdout.write(u"foo") > can avoid encoding and use WriteConsoleW(L"foo") I think this would be fairly difficult to implement given the way the output libraries work. If you think it can be done, please provide a patch to bugs.python.

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-07-22 Thread INADA Naoki
Hi. >> We have to use "IME" to input non-ascii charactor in Windows. >> When "> chcp 65001" in cmd.exe, we cannot use IME on cmd.exe. >> >> So setting codepage to 65001 make output universal but make input ascii-only. >> Sit!!! > > Is there a code page that still allows IME input, but supports all

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-03-24 Thread Glenn Linderman
On approximately 3/24/2009 10:16 AM, came the following characters from the keyboard of INADA Naoki: Hi. I'm Japanese and non-ascii charactor user. (cp932) We have to use "IME" to input non-ascii charactor in Windows. When "> chcp 65001" in cmd.exe, we cannot use IME on cmd.exe. So setting code

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-03-24 Thread Martin v. Löwis
> Hi. I'm Japanese and non-ascii charactor user. (cp932) > > We have to use "IME" to input non-ascii charactor in Windows. > When "> chcp 65001" in cmd.exe, we cannot use IME on cmd.exe. > > So setting codepage to 65001 make output universal but make input ascii-only. > Sit!!! Is there a code pa

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-03-24 Thread INADA Naoki
Hi. I'm Japanese and non-ascii charactor user. (cp932) We have to use "IME" to input non-ascii charactor in Windows. When "> chcp 65001" in cmd.exe, we cannot use IME on cmd.exe. So setting codepage to 65001 make output universal but make input ascii-only. Sit!!! I hope PyQtShell

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-03-23 Thread Glenn Linderman
On approximately 3/23/2009 12:12 PM, came the following characters from the keyboard of Terry Reedy: Glenn Linderman wrote: One can set CMD into Unicode mode (chcp 65001)... not sure how Python reacts to that either. But even then... I tried that and others have reported doing so on python

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-03-23 Thread Terry Reedy
Glenn Linderman wrote: One can set CMD into Unicode mode (chcp 65001)... not sure how Python reacts to that either. But even then... I tried that and others have reported doing so on python-list but no one has gotten that to work. CMD will only use fixed-width fonts, and none of the stan

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-03-23 Thread Martin v. Löwis
> 2) IDLE does much better but its support seems to still be imcomplete. > Upgrade tk/tkinter/IDLE (wherever the problems lie) and make IDLE's > shell an alternate UI. That is certainly *no* good SoC project. Instead, just report it as a *specific* bug report (rather than saying "it seems incomple

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-03-22 Thread Ben Finney
Terry Reedy writes: > If Windows (or other OSes) (to be investigated) does not reliably > come with a full unicode font (at least current BMP), is there a > public domain or open license font that we can include? The GNU Unifont at Unifoundry http://unifoundry.com/> is designed for this purpose.

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-03-22 Thread Glenn Linderman
On approximately 3/22/2009 8:48 PM, came the following characters from the keyboard of Terry Reedy: One of the disappointments of CPython 3.0 on Windows is that the switch to unicode for text (str), coupled with the continued use of a unicode-oblivious (obtuse) user interface (MS 'Command Prompt

Re: [Python-Dev] GSoC: Replace MS Windows Console with Unicode UI

2009-03-22 Thread Terry Reedy
One of the disappointments of CPython 3.0 on Windows is that the switch to unicode for text (str), coupled with the continued use of a unicode-oblivious (obtuse) user interface (MS 'Command Prompt'), means that print can no longer print all str strings, or all legal Python code (as in a traceba