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
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(&qu
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: The
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
New submission from Fan Decheng :
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 n
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
New submission from Fan Decheng :
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. In the directory create a python
Changes by Fan Decheng :
--
nosy: +r_mosaic
___
Python tracker
<http://bugs.python.org/issue1633941>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Fan Decheng :
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 ^Z is entere
Fan Decheng added the comment:
Perhaps using just one read() is enough? I mean perhaps no loop is
necessary?
--
___
Python tracker
<http://bugs.python.org/issue5
10 matches
Mail list logo