fix: oil-ssh assume target machine's locales

This commit is contained in:
fecet 2023-06-14 16:26:49 +08:00
parent 64d2f305d3
commit c72bcb45b2

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