diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-03-05 21:38:15 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-03-06 15:14:36 +0000 |
commit | f50f9d58ef5fe86363e5223b2b55075f6c4c636c (patch) | |
tree | a5a0905f1907405ea508922f2cf9f17b7276350e /spec/util | |
parent | 8d30fc5bd2b352897b81756400ab50d2be859209 (diff) | |
download | luarocks-f50f9d58ef5fe86363e5223b2b55075f6c4c636c.tar.gz luarocks-f50f9d58ef5fe86363e5223b2b55075f6c4c636c.tar.bz2 luarocks-f50f9d58ef5fe86363e5223b2b55075f6c4c636c.zip |
fix(windows): parse slashes correctly when reading rock_manifest
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 |