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

Hugo Beauzée-Luyssen git at videolan.org
Tue Apr 17 14:02:17 CEST 2018


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

VLSub: Use the os specific path separator

(cherry picked from commit 660e46b16241519322389a37ca94c8d31185071c)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=503a6289644b0c207ec29f322b24d0f727fd3ee9
---

 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