[issue14170] print unicode string error in cmd console

nkxyz report at bugs.python.org
Fri Mar 2 04:43:31 CET 2012


New submission from nkxyz <niklenxyz at gmail.com>:

print u'测试中文'

睺raceback (most recent call last):
  File "C:\Users\__test.py", line 96, in <module>
    sys.exit(main())
  File "C:\Users\__test.py", line 84, in main
    print u'娴嬭瘯涓枃'
IOError: [Errno 28] No space left on device

the unicode must start with a ascii char, then print can works
like this: "print u' 测试中文'"

----------
components: IO
messages: 154724
nosy: nkxyz
priority: normal
severity: normal
status: open
title: print unicode string error in cmd console
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14170>
_______________________________________


More information about the Python-bugs-list mailing list