--- /dev/null
+Merged from bug c894f10f-197d-4b22-9c5b-19f394df40d4
\ No newline at end of file
--- /dev/null
+
+
+
+Content-type=text/plain
+
+
+
+
+
+
+Date=Tue, 25 Nov 2008 02:24:04 +0000
+
+
+
+
+
+
+From=W. Trevor King <wking@drexel.edu>
+
+
+
--- /dev/null
+Example:
+
+We're working happily in a versioned bugdir, and our RCS knows who we
+are. We create a temporary repository copy from a previous revision
+for diff generation. We set the RCS for the copy to "None", since we
+didn't bother initializing our normal RCS in the snapshot copy. But
+now the BugDir instantized on the copy doesn't know who we are!
+
+Solution:
+
+Track user id in the bugdir settings file. If you
+bugdir.settings["user_id"], it will be saved and loaded. When loaded,
+it will also set bugdir.user_id. If you set rcs.user_id, it will be
+returned by rcs.get_user_id(), instead of returing the output of
+rcs._rcs_get_user_id(). We should be caching the output of
+_rcs_get_user_id() anyway.
+
--- /dev/null
+
+
+
+Content-type=text/plain
+
+
+
+
+
+
+Date=Sat, 22 Nov 2008 21:43:29 +0000
+
+
+
+
+
+
+From=W. Trevor King <wking@drexel.edu>
+
+
+
+
+
+
+In-reply-to=0fd8ba95-d9ea-49b3-9f5a-b0eb723cdbe1
+
+
+
--- /dev/null
+This bug duplicates a403de79-8f39-41f2-b9ec-15053b175ee2
--- /dev/null
+
+
+
+Content-type=text/plain
+
+
+
+
+
+
+Date=Sun, 23 Nov 2008 12:37:57 +0000
+
+
+
+
+
+
+From=W. Trevor King <wking@drexel.edu>
+
+
+
+
+
+
+In-reply-to=0fd8ba95-d9ea-49b3-9f5a-b0eb723cdbe1
+
+
+
--- /dev/null
+Merged into bug a403de79-8f39-41f2-b9ec-15053b175ee2
\ No newline at end of file
--- /dev/null
+
+
+
+Content-type=text/plain
+
+
+
+
+
+
+Date=Tue, 25 Nov 2008 02:24:05 +0000
+
+
+
+
+
+
+From=W. Trevor King <wking@drexel.edu>
+
+
+
-status=fixed
+status=closed
--- /dev/null
+$ 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.
--- /dev/null
+
+
+
+Content-type=text/plain
+
+
+
+
+
+
+Date=Tue, 25 Nov 2008 02:36:16 +0000
+
+
+
+
+
+
+From=W. Trevor King <wking@drexel.edu>
+
+
+
--- /dev/null
+Solution here
+http://www.amk.ca/python/howto/unicode
+
+You need to encode before printing.
+
+This is unfortunate, because we're currently very glib about just
+printing info to the terminal. This makes it much more important to
+have a single bugdir-wide encoding specification...
+
--- /dev/null
+
+
+
+Content-type=text/plain
+
+
+
+
+
+
+Date=Tue, 25 Nov 2008 03:02:59 +0000
+
+
+
+
+
+
+From=W. Trevor King <wking@drexel.edu>
+
+
+
--- /dev/null
+
+
+
+creator=W. Trevor King <wking@drexel.edu>
+
+
+
+
+
+
+severity=minor
+
+
+
+
+
+
+status=open
+
+
+
+
+
+
+summary=UTF-8 encoding trouble with pipes in becommands/show
+
+
+
+
+
+
+time=Tue, 25 Nov 2008 02:30:35 +0000
+
+
+
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():
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 ...]")