[vlc-commits] VLSub: Use the os specific path separator

Hugo Beauzée-Luyssen git at videolan.org
Mon Apr 16 18:57:08 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Apr 16 13:36:59 2018 +0200| [660e46b16241519322389a37ca94c8d31185071c] | committer: Hugo Beauzée-Luyssen

VLSub: Use the os specific path separator

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=660e46b16241519322389a37ca94c8d31185071c
---

 share/lua/extensions/VLSub.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/lua/extensions/VLSub.lua b/share/lua/extensions/VLSub.lua
index 02014066f0..69ac3ead49 100644
--- a/share/lua/extensions/VLSub.lua
+++ b/share/lua/extensions/VLSub.lua
@@ -1657,7 +1657,7 @@ function dump_zip(url, dir, subfileName)
     return false
   end
 
-  local tmpFileName = dir.."/"..subfileName..".gz"
+  local tmpFileName = dir..slash..subfileName..".gz"
   local tmpFile = vlc.io.open(tmpFileName, "wb")
   if tmpFile == nil then
     return false
@@ -2047,7 +2047,7 @@ function list_dir(path)
   if dir_list_cmd then
     for _, entry in dir_list_cmd do
       if string.match(entry, "^[^%s]+.+$") then
-        table.insert(list, entry.path .. "/" .. entry.filename)
+        table.insert(list, entry.path .. slash .. entry.filename)
       end
     end
     return list



More information about the vlc-commits mailing list