From d69400b513d33e824409687fccf214e041236e6f Mon Sep 17 00:00:00 2001 From: Josip Date: Sun, 6 Apr 2014 20:44:51 +0200 Subject: [PATCH] AboutDialog crashes with Python3 --- gramps/gui/aboutdialog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps/gui/aboutdialog.py b/gramps/gui/aboutdialog.py index 3e42d7cb7..35282797a 100644 --- a/gramps/gui/aboutdialog.py +++ b/gramps/gui/aboutdialog.py @@ -32,6 +32,7 @@ from __future__ import unicode_literals import os import sys +import io ##import logging ##_LOG = logging.getLogger(".GrampsAboutDialog") @@ -229,7 +230,7 @@ def _get_authors(): parser = make_parser() parser.setContentHandler(AuthorParser(authors, contributors)) - authors_file = open(AUTHORS_FILE) + authors_file = io.open(AUTHORS_FILE, encoding='utf-8') parser.parse(authors_file) authors_file.close()