From decb51eac7e234d1ddaa84c49ea43dd4fd6d315e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 13 Dec 2015 11:19:32 -0500 Subject: [PATCH] Remove encoding on stdout and stderr --- gramps/grampsapp.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/gramps/grampsapp.py b/gramps/grampsapp.py index 2f1ef20ee..812195bb0 100644 --- a/gramps/grampsapp.py +++ b/gramps/grampsapp.py @@ -409,18 +409,6 @@ def run(): else: # CLI use of Gramps - # Ensure that output is encoded correctly to stdout and - # stderr. This is much less cumbersome and error-prone than - # encoding individual outputs: - try: - _encoding = sys.stdout.encoding or sys.getdefaultencoding() - except: - _encoding = "UTF-8" - import codecs - sys.stdout = codecs.getwriter(_encoding)(sys.stdout.detach(), - 'backslashreplace') - sys.stderr = codecs.getwriter(_encoding)(sys.stderr.detach(), - 'backslashreplace') argpars.print_help() argpars.print_usage() from .cli.grampscli import startcli