mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: archive extraction fails for target paths with non-ASCII characters on Windows (#3607)
Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
parent
49b8324bbf
commit
afc694c122
3 changed files with 10 additions and 3 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
|
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
|
||||||
"runtime.version": "Lua 5.4",
|
"runtime.version": "Lua 5.4",
|
||||||
|
"runtime.special": {
|
||||||
|
"fail": "error"
|
||||||
|
},
|
||||||
"workspace.library": ["~/.config/yazi/plugins/types.yazi/"],
|
"workspace.library": ["~/.config/yazi/plugins/types.yazi/"],
|
||||||
"diagnostics.disable": ["redefined-local"]
|
"diagnostics.disable": ["redefined-local"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/):
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Archive extraction fails for target paths with non-ASCII characters on Windows ([#3607])
|
||||||
|
|
||||||
## [v26.1.22]
|
## [v26.1.22]
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
@ -1612,3 +1616,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/):
|
||||||
[#3566]: https://github.com/sxyazi/yazi/pull/3566
|
[#3566]: https://github.com/sxyazi/yazi/pull/3566
|
||||||
[#3582]: https://github.com/sxyazi/yazi/pull/3582
|
[#3582]: https://github.com/sxyazi/yazi/pull/3582
|
||||||
[#3594]: https://github.com/sxyazi/yazi/pull/3594
|
[#3594]: https://github.com/sxyazi/yazi/pull/3594
|
||||||
|
[#3607]: https://github.com/sxyazi/yazi/pull/3607
|
||||||
|
|
|
||||||
|
|
@ -99,10 +99,9 @@ function M:tidy(from, to, tmp)
|
||||||
fail("Failed to determine a target for '%s'", from)
|
fail("Failed to determine a target for '%s'", from)
|
||||||
end
|
end
|
||||||
|
|
||||||
target = tostring(target)
|
if only and not fs.rename(outs[1].url, target) then
|
||||||
if only and not os.rename(tostring(outs[1].url), target) then
|
|
||||||
fail('Failed to move "%s" to "%s"', outs[1].url, target)
|
fail('Failed to move "%s" to "%s"', outs[1].url, target)
|
||||||
elseif not only and not os.rename(tostring(tmp), target) then
|
elseif not only and not fs.rename(tmp, target) then
|
||||||
fail('Failed to move "%s" to "%s"', tmp, target)
|
fail('Failed to move "%s" to "%s"', tmp, target)
|
||||||
end
|
end
|
||||||
fs.remove("dir", tmp)
|
fs.remove("dir", tmp)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue