Roundup Tracker - Issues

Issue 1692792

classification
I18n doesn't work as needed in cli (Windows)
Type: Severity: normal
Components: Command-line interface Versions:
process
Status: closed fixed
:
: jpend : jpend
Priority: normal :

Created on 2007-04-02 10:48 by anonymous, last changed 2007-09-26 14:10 by jpend.

Messages
msg2418 Author: [hidden] (anonymous) Date: 2007-04-02 10:48
i'm tring to use roundup on Windows server with sqlite (packaged with python25) as backend. All of texts in issue descriptions are in russian.
when running "roundup-admin -i . list issue" from cmd console on Win2003 i've got totally unreadable text. I've got "dump" of unicode (utf8?) string with two characters (printed in ascii "dos" (with pseudographics) encoding) per real russian character. 
I've tried prepend roundup-admin with "chcp 1251" (ansi or "windows" encoding) with exactly the same result. However, cmd console on nt-systems has some support for unicode printing, and, for example 
print "Русский"
print "Русский".decode('cp866')
print "one %s two" % "Русский".decode('cp866')
works good in interactive python interpreter ("Русский"="Russian")
but
print "Русский %s" % "Русский".decode('cp866')
raises
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'ascii' codec can't decode byte 0xab in position 3: ordinal not in range(128)
msg2419 Author: [hidden] (jpend) Date: 2007-09-26 14:10
Fix committed to CVS.
History
Date User Action Args
2007-04-02 10:48:10anonymouscreate