Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--lib/sugar/profile.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 3555421..a1e802e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+* #4518: Encode nickname in UTF-8 when writing it out to .sugar/*/config (smcv)
* #4503: Do some standard Tubes boilerplate in sugar.presence, so activities
don't have to (smcv)
* #4428 Revert to the trial-3 frame behavior (marco)
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: