From 01cbd921e9618404e1e0560533ebdc89ae48439e Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Fri, 28 Nov 2014 08:13:21 +0000 Subject: [PATCH] Open opensong files in 'rb' mode. Fixes bug 1396958 Fixes: https://launchpad.net/bugs/1396958 --- openlp/plugins/songs/lib/importers/opensong.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/plugins/songs/lib/importers/opensong.py b/openlp/plugins/songs/lib/importers/opensong.py index e1502a903..96e35e4f5 100644 --- a/openlp/plugins/songs/lib/importers/opensong.py +++ b/openlp/plugins/songs/lib/importers/opensong.py @@ -126,7 +126,7 @@ class OpenSongImport(SongImport): for filename in self.import_source: if self.stop_import_flag: return - song_file = open(filename) + song_file = open(filename, 'rb') self.do_import_file(song_file) song_file.close()