aboutsummaryrefslogtreecommitdiffstats
path: root/.be/bugs/f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a/comments/15602c0c-25e4-4c2c-9e24-79bdb90721b1
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 /.be/bugs/f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a/comments/15602c0c-25e4-4c2c-9e24-79bdb90721b1
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 '.be/bugs/f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a/comments/15602c0c-25e4-4c2c-9e24-79bdb90721b1')
-rw-r--r--.be/bugs/f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a/comments/15602c0c-25e4-4c2c-9e24-79bdb90721b1/body14
-rw-r--r--.be/bugs/f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a/comments/15602c0c-25e4-4c2c-9e24-79bdb90721b1/values21
2 files changed, 35 insertions, 0 deletions
diff --git a/.be/bugs/f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a/comments/15602c0c-25e4-4c2c-9e24-79bdb90721b1/body b/.be/bugs/f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a/comments/15602c0c-25e4-4c2c-9e24-79bdb90721b1/body
new file mode 100644
index 0000000..d97791d
--- /dev/null
+++ b/.be/bugs/f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a/comments/15602c0c-25e4-4c2c-9e24-79bdb90721b1/body
@@ -0,0 +1,14 @@
+$ be show 31cd490d-a1c2-4ab3-8284-d80395e34dd2
+
+works as expected, but
+
+$ be show 31cd490d-a1c2-4ab3-8284-d80395e34dd2 | grep something
+Traceback (most recent call last):
+ File "/home/wking/bin/be", line 30, in <module>
+ sys.exit(cmdutil.execute(sys.argv[1], sys.argv[2:]))
+ File "/home/wking/src/fun/be-bugfix/libbe/cmdutil.py", line 57, in execute
+ File "/home/wking/src/fun/be/be.wtk/becommands/show.py", line 44, in execute
+ print bug.string(show_comments=True)
+UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 2100: ordinal not in range(128)
+
+By the way, u2019 is a fancy apostrophe.
diff --git a/.be/bugs/f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a/comments/15602c0c-25e4-4c2c-9e24-79bdb90721b1/values b/.be/bugs/f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a/comments/15602c0c-25e4-4c2c-9e24-79bdb90721b1/values
new file mode 100644
index 0000000..f976972
--- /dev/null
+++ b/.be/bugs/f7ccd916-b5c7-4890-a2e3-8c8ace17ae3a/comments/15602c0c-25e4-4c2c-9e24-79bdb90721b1/values
@@ -0,0 +1,21 @@
+
+
+
+Content-type=text/plain
+
+
+
+
+
+
+Date=Tue, 25 Nov 2008 02:36:16 +0000
+
+
+
+
+
+
+From=W. Trevor King <wking@drexel.edu>
+
+
+