Make sure to change codec for stderror too

git-svn-id: http://comictagger.googlecode.com/svn/trunk@428 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2013-02-05 22:47:45 +00:00
parent 4f3e63db07
commit 5bdc40b9f5

View File

@ -495,6 +495,7 @@ def main():
else:
preferred_encoding = locale.getpreferredencoding()
sys.stdout = codecs.getwriter(preferred_encoding)(sys.stdout)
sys.stderr = codecs.getwriter(preferred_encoding)(sys.stderr)
opts = Options()
opts.parseCmdLineArgs()