From 06f7a36d5fa444d15b3b66799b547cac57d9abc7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 24 May 2020 13:16:05 -0400 Subject: Always use capital drive letters when opening files in Windows. Since Windows filenames are case-insensitive, mismatched drive letter case may cause the same file to be open twice. --- test/test.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'test/test.lua') diff --git a/test/test.lua b/test/test.lua index 7fc53b75..1d920f6e 100644 --- a/test/test.lua +++ b/test/test.lua @@ -729,6 +729,7 @@ function test_lfs_ext_abs_path() assert_equal(lfs.abspath('.\\bar', 'C:\\foo'), 'C:\\foo\\bar') assert_equal(lfs.abspath('..\\bar', 'C:\\foo'), 'C:\\bar') assert_equal(lfs.abspath('C:\\bar', 'C:\\foo'), 'C:\\bar') + assert_equal(lfs.abspath('c:\\bar', 'c:\\foo'), 'C:\\bar') assert_equal(lfs.abspath('..\\../.\\./baz', 'C:\\foo\\bar'), 'C:\\baz') _G.WIN32 = win32 -- reset just in case -- cgit v1.2.3