From e70bb04f8257d9b18a7a399cdd5f9ba12fe2fc78 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 1 Mar 2015 14:53:14 -0800 Subject: [PATCH] add missing import --- gramps/grampsapp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gramps/grampsapp.py b/gramps/grampsapp.py index ba20c7a56..e7b6c4482 100644 --- a/gramps/grampsapp.py +++ b/gramps/grampsapp.py @@ -424,6 +424,7 @@ def run(): _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(),