[MERGE][#151844] Unicode-safe output from ``bzr info``

Lukáš Lalinský lalinsky at gmail.com
Fri Oct 12 12:09:53 BST 2007


On 10/12/07, Alexander Belchenko <bialix at ukr.net> wrote:
> Lukáš Lalinský пишет:
> > This is a bug-fix for https://bugs.launchpad.net/bzr/+bug/151844
>
> bb:tweak
>
> The changes mostly mechanical, but it lacks test for the bug itself.
> IMO, blackbox test is enough here.
> May be add test to test_non_ascii?

Hm? What do you mean? The patch actually contains a test *only* for
the mentioned bug:

+    def test_info(self):
+        bzr = self.run_bzr_decode
+        bzr(['branch', u'.', self.info['directory']])
+        bzr(['info', self.info['directory']])
+        bzr(['info', self.info['directory']], encoding='ascii')

I can't use simply "bzr info", because that prints the root location
as ".", while this way it prints the Unicode directory name.

Lukas


More information about the bazaar mailing list