Skip to content

Commit c02a791

Browse files
committed
Fixes encoding issue for non-ascii file names.
1 parent 98133f1 commit c02a791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scm/adapters/bzrlib/bzrlib_pipe_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def __init__(self, repository_url):
1212
def get_file_content(self, filename, revision):
1313
rev_spec = RevisionSpec.from_string(revision)
1414
tree = rev_spec.as_tree(self.branch)
15-
file_id = tree.path2id(filename)
15+
file_id = tree.path2id(unicode(filename, 'utf8'))
1616
if file_id == None:
1717
return None
1818
content = tree.get_file_text(file_id)

0 commit comments

Comments
 (0)