diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-10-30 16:10:02 (GMT) |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2007-10-30 16:10:02 (GMT) |
commit | 5abcb4e8dd58b28c2b973c3eff4e125abe2d63f5 (patch) | |
tree | b45ddbd0666c67d714378a630419035c306ec1ce /lib | |
parent | 4391d4777ad9d42d0cd6c193699ab7a1ec585a37 (diff) |
Encode nickname in UTF-8 when writing it out to .sugar/*/config (#4518)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sugar/profile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sugar/profile.py b/lib/sugar/profile.py index 10a2b6c..c150fb1 100644 --- a/lib/sugar/profile.py +++ b/lib/sugar/profile.py @@ -87,7 +87,7 @@ class Profile(object): parsed = cp.read([self._config_path]) if self.nick_name: - _set_key(cp, 'Buddy', 'NickName', self.nick_name) + _set_key(cp, 'Buddy', 'NickName', self.nick_name.encode('utf8')) if self.color: _set_key(cp, 'Buddy', 'Color', self.color.to_string()) if self.backup1: |