diff options
Diffstat (limited to 'spec/util')
-rw-r--r-- | spec/util/test_env.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index 2255d141..5d385db3 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua | |||
@@ -527,7 +527,7 @@ end | |||
527 | function test_env.write_file(pathname, str, finally) | 527 | function test_env.write_file(pathname, str, finally) |
528 | pathname = V(pathname) | 528 | pathname = V(pathname) |
529 | 529 | ||
530 | local file = assert(io.open(pathname, "w")) | 530 | local file = assert(io.open(pathname, "wb")) |
531 | file:write(str) | 531 | file:write(str) |
532 | file:close() | 532 | file:close() |
533 | if finally then | 533 | if finally then |