1939
1939
self.build_tree(contents)
1941
1941
tree.commit("Initial commit")
1944
1944
# GZ 2010-06-07: Note we can't actually grep for \u1234 as the pattern
1945
1945
# is mangled according to the user encoding.
1946
1946
streams = self.run_bzr(["grep", "--files-with-matches",
1947
1947
u"contents"], encoding="UTF-8")
1948
1950
self.assertEqual(streams, (as_utf8 + "\n", ""))
1950
1952
streams = self.run_bzr(["grep", "-r", "1", "--files-with-matches",