Skip to content

Commit

Permalink
add todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Nov 1, 2023
1 parent dbf9576 commit bb51f97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion porcupine/plugins/git_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def _parse_ascii_path_from_git(ascii_str: str) -> Path:
path_bytes = ast.literal_eval("b" + ascii_str)

# Avoid encoding errors, so that a weird file name will not prevent
# other files from working properly
# other files from working properly.
#
# TODO: sys.getfilesystemencoding() seems to always be UTF-8, even
# on Windows, so not sure if this should always use utf-8
return Path(path_bytes.decode(sys.getfilesystemencoding(), errors="replace"))
else:
return Path(ascii_str)
Expand Down

0 comments on commit bb51f97

Please sign in to comment.