Skip to content

Commit 8810043

Browse files
committed
Fix UTF-8 issues on windows.
1 parent 5910ea6 commit 8810043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/selfie-lib/selfie_lib/CommentTracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def commentString(typedPath: TypedPath) -> Tuple[str, int]:
5454

5555
@staticmethod
5656
def __commentAndLine(typedPath: TypedPath) -> Tuple[WritableComment, int]:
57-
with open(typedPath.absolute_path) as file:
57+
with open(typedPath.absolute_path, encoding="utf-8") as file:
5858
content = Slice(file.read())
5959
for comment_str in [
6060
"# selfieonce",

0 commit comments

Comments
 (0)