Skip to content

Commit 7c0cf8f

Browse files
committed
File.contents is UTF-8
1 parent 84e834e commit 7c0cf8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/command_line_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def collect_output(self,
689689
if binding.get("loadContents") or compute_checksum:
690690
contents = f.read(CONTENT_LIMIT)
691691
if binding.get("loadContents"):
692-
files["contents"] = contents
692+
files["contents"] = contents.decode('unicode_escape')
693693
if compute_checksum:
694694
checksum = hashlib.sha1()
695695
while contents != b"":

0 commit comments

Comments
 (0)