diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-01-26 10:18:42 -0500 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2006-01-26 10:18:42 -0500 |
commit | 4574cd676a02fccf64fd98c0b8e089a7f23de98f (patch) | |
tree | 2158be6ee9590ae8efa04d7189fc8c0730d97383 /libbe/bugdir.py | |
parent | c54498e1b59b2e4371fb76e07a5e81365a940f88 (diff) | |
download | bugseverywhere-4574cd676a02fccf64fd98c0b8e089a7f23de98f.tar.gz |
More unicode stuff
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r-- | libbe/bugdir.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py index d30bc75..766ccd9 100644 --- a/libbe/bugdir.py +++ b/libbe/bugdir.py @@ -345,7 +345,7 @@ class Comment(object): self.date = utility.str_to_time(mapfile["Date"]) self.From = mapfile["From"] self.in_reply_to = mapfile.get("In-reply-to") - self.body = file(self.get_path("body")).read() + self.body = file(self.get_path("body")).read().decode("utf-8") else: self.date = None self.From = None @@ -358,7 +358,8 @@ class Comment(object): if not os.path.exists(self.get_path(None)): self.bug.rcs.mkdir(self.get_path(None)) map_save(self.bug.rcs, self.get_path("values"), map_file) - self.bug.rcs.set_file_contents(self.get_path("body"), self.body) + self.bug.rcs.set_file_contents(self.get_path("body"), + self.body.encode('utf-8')) def get_path(self, name): |