Merge pull request #126 from fecet/fix/sshfs-locales

fix: oil-ssh assume target machine's locales
This commit is contained in:
Steven Arcangeli 2023-06-14 09:20:58 -07:00 committed by GitHub
commit 59dc12a978
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ function SSHFS:list_dir(url, path, callback)
if path ~= "" then
path_postfix = string.format(" '%s'", path)
end
self.conn:run("ls -fl" .. path_postfix, function(err, lines)
self.conn:run("LANG=C ls -fl" .. path_postfix, function(err, lines)
if err then
if err:match("No such file or directory%s*$") then
-- If the directory doesn't exist, treat the list as a success. We will be able to traverse