[Pkg-bazaar-commits] ./bzr/unstable r562: - bug fix for printing logs containing unicode
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:19:24 UTC 2009
------------------------------------------------------------
revno: 562
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Fri 2005-05-27 01:13:20 +1000
message:
- bug fix for printing logs containing unicode
modified:
bzrlib/commands.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py 2005-05-26 02:13:57 +0000
+++ b/bzrlib/commands.py 2005-05-26 15:13:20 +0000
@@ -605,6 +605,7 @@
show_ids=False,
forward=False):
from bzrlib import show_log, find_branch
+ import codecs
direction = (forward and 'forward') or 'reverse'
@@ -619,11 +620,14 @@
b = find_branch('.', lock_mode='r')
file_id = None
+ mutter('encoding log as %r' % bzrlib.user_encoding)
+ outf = codecs.getwriter(bzrlib.user_encoding)(sys.stdout)
+
show_log(b, file_id,
show_timezone=timezone,
verbose=verbose,
show_ids=show_ids,
- to_file=sys.stdout,
+ to_file=outf,
direction=direction)
More information about the Pkg-bazaar-commits
mailing list