[issue12337] Need real TextIOWrapper for stdin/stdout

2011-06-14 Thread Fan Decheng
New submission from Fan Decheng fandech...@gmail.com: Since -u is made default and binary stdio implemented in 3.2, many of my scripts cannot run directly in Python 3.2, because they expect \n from stdin, but on Windows \r\n is got. Since that binary stdio being default is necessary

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2009-08-04 Thread Fan Decheng
Changes by Fan Decheng fandech...@gmail.com: -- nosy: +r_mosaic ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1633941 ___ ___ Python-bugs-list

[issue6543] traceback presented in wrong encoding

2009-07-22 Thread Fan Decheng
New submission from Fan Decheng fandech...@gmail.com: traceback information is wrongly encoded. Steps to reproduce: 1. Use a version of Windows that supports CP936 (Simplified Chinese) as the default encoding. 2. Create a directory containing Chinese characters. Such as C:\测试 3

[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2009-03-25 Thread Fan Decheng
Fan Decheng fandech...@gmail.com added the comment: Perhaps using just one read() is enough? I mean perhaps no loop is necessary? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5505

[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2009-03-18 Thread Fan Decheng
New submission from Fan Decheng fandech...@gmail.com: Platform: Windows Vista x64 Python version: 3.0.1 x64 When I use sys.stdin.readlines(), it correctly ends when I enter ^Z (ctrl-Z) on the console (this is the EOF on the console). However when I call sys.stdin.read(), it doesn't end when

[issue2938] Interactive help writes to the python install destination directory

2008-05-21 Thread Fan Decheng
New submission from Fan Decheng [EMAIL PROTECTED]: Python 3.0a5 on Windows Vista SP1 I installed it to C:\Python30, and used NTFS permissions to protect the files in the directory from being changed, also making the whole directory read-only. Thus, new files can't be created inside

[issue1193] os.system() encoding bug on Windows

2007-09-24 Thread Fan Decheng
Fan Decheng added the comment: Steps to reproduce: 1. Use a Windows, with system default encoding to cp936 (Chinese PRC, or Simplified Chinese) in Regional Options. 2. Open Python 3.0 (command line). 3. Type: import os import sys os.system((echo + sys.stdin.readline().rstrip(\n)).encode(cp936

[issue1194] The reduce() documentation is lost in Python 3.0a1

2007-09-24 Thread Fan Decheng
New submission from Fan Decheng: The reduce() documentation is lost in Python 3.0a1. In the documentation, functools.reduce() points onto itself, so no further explanation can be found. -- components: Documentation messages: 56103 nosy: r_mosaic severity: minor status: open title

[issue1193] os.system() encoding bug on Windows

2007-09-24 Thread Fan Decheng
Fan Decheng added the comment: A note about reproducing: since Windows 2000 all language packs can be installed easily using the Regional Options in the Control Panel. Even on an English version of Windows, character set mappings and fonts of other languages can be installed

[issue1193] os.system() encoding bug on Windows

2007-09-23 Thread Fan Decheng
New submission from Fan Decheng: Python 3.0 uses utf-8 encoding, but os.system() when running on Windows uses the system default encoding, which may be cp936 or mbcs. They are incompatible. -- components: Library (Lib) messages: 56101 nosy: r_mosaic severity: major status: open title