From f7b41a11f6eea4ac29a7568dd7149c98779ab92a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 28 Jul 2012 11:13:34 +0900 Subject: [PATCH] make sure we write profile README in utf8 --- aqt/profiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/profiles.py b/aqt/profiles.py index eca1ba89f..2e3659b8b 100644 --- a/aqt/profiles.py +++ b/aqt/profiles.py @@ -227,13 +227,13 @@ create table if not exists profiles if self.firstRun: self.create(_("User 1")) p = os.path.join(self.base, "README.txt") - open(p, "w").write(_("""\ + open(p, "w").write((_("""\ This folder stores all of your Anki data in a single location, to make backups easy. To tell Anki to use a different location, please see: %s -""") % (appHelpSite + "#startupopts")) +""") % (appHelpSite + "#startupopts")).encode("utf8")) def _pwhash(self, passwd): return checksum(unicode(self.meta['id'])+unicode(passwd))