summaryrefslogtreecommitdiff
path: root/src/roster.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-09-13 09:48:35 +0200
committermathieui <mathieui@mathieui.net>2012-09-13 09:50:48 +0200
commit0bd55a27f2f14dd434c828f4a061f366b39dda92 (patch)
tree3fc157c7ae71c0c100fa201ab2ef96bdf7411097 /src/roster.py
parentc2828cdd29749609b4e16d2d461ac6b39c822573 (diff)
downloadpoezio-0bd55a27f2f14dd434c828f4a061f366b39dda92.tar.gz
poezio-0bd55a27f2f14dd434c828f4a061f366b39dda92.tar.bz2
poezio-0bd55a27f2f14dd434c828f4a061f366b39dda92.tar.xz
poezio-0bd55a27f2f14dd434c828f4a061f366b39dda92.zip
Fix TBs when the system is not in utf-8 by default
(force every file opening to be with the utf-8 encoding)
Diffstat (limited to 'src/roster.py')
-rw-r--r--src/roster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roster.py b/src/roster.py
index 12c529ba..ac25d525 100644
--- a/src/roster.py
+++ b/src/roster.py
@@ -207,7 +207,7 @@ class Roster(object):
if p.isfile(path):
return
try:
- f = open(path, 'w+')
+ f = open(path, 'w+', encoding='utf-8')
f.writelines([i + "\n" for i in self.contacts])
f.close()
return True