aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-24 22:03:20 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-24 22:03:20 -0500
commit0f3f492bd1c9db89b98f719f7371b183c9c8d838 (patch)
treea868c6b75c252afc935a18fd42983897e9ef7ccf /becommands
parente6d48051cbce1f74ec3c50fc0ccb72003258889e (diff)
downloadbugseverywhere-0f3f492bd1c9db89b98f719f7371b183c9c8d838.tar.gz
Hack to fixe encoding bug in becommands/show
The situation really calls for a global encoding setting rather than lots of hardcoded "utf-8"s. See bug f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a
Diffstat (limited to 'becommands')
-rw-r--r--becommands/diff.py1
-rw-r--r--becommands/show.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/becommands/diff.py b/becommands/diff.py
index 77194ff..862afc5 100644
--- a/becommands/diff.py
+++ b/becommands/diff.py
@@ -54,6 +54,7 @@ def execute(args):
old_bd = bd.duplicate_bugdir(revision)
r,m,a = diff.diff(old_bd, bd)
diff.diff_report((r,m,a), bd)
+ # TODO, string return from diff report
bd.remove_duplicate_bugdir()
def get_parser():
diff --git a/becommands/show.py b/becommands/show.py
index abec813..45cd6ad 100644
--- a/becommands/show.py
+++ b/becommands/show.py
@@ -41,7 +41,7 @@ def execute(args):
bd = bugdir.BugDir(from_disk=True)
for bugid in args:
bug = bd.bug_from_shortname(bugid)
- print bug.string(show_comments=True)
+ print bug.string(show_comments=True).encode('utf-8')
def get_parser():
parser = cmdutil.CmdOptionParser("be show BUG-ID [BUG-ID ...]")