Skip to content

Commit 1c5b738

Browse files
authored
progress: change ascii decoding to utf-8 for localized languages in dulwich backend (#17)
* change ascii decoding to utf-8 for localized languages fixes #16
1 parent 61c2970 commit 1c5b738

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scmrepo/progress.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ def __init__(self, fn) -> None:
5050

5151
def __call__(self, msg: Union[str, bytes]) -> None:
5252
self._reporter._parse_progress_line(
53-
msg.decode("ascii").strip() if isinstance(msg, bytes) else msg
53+
msg.decode("utf-8", errors="replace").strip()
54+
if isinstance(msg, bytes)
55+
else msg
5456
)
5557

5658
@staticmethod

0 commit comments

Comments
 (0)