8937: Unable to produce graph reports [in Greek locale]

This commit is contained in:
Josip 2015-09-21 18:58:53 -07:00 committed by Paul Franklin
parent ee58b80110
commit a73c2e4738

View File

@ -1969,7 +1969,7 @@ class DbBsddbRead(DbReadBase, Callback):
""" """
filepath = os.path.join(self.path, "name.txt") filepath = os.path.join(self.path, "name.txt")
try: try:
name_file = open(filepath, "r") name_file = open(filepath, "r", encoding='utf-8')
name = name_file.readline().strip() name = name_file.readline().strip()
name_file.close() name_file.close()
except (OSError, IOError) as msg: except (OSError, IOError) as msg: