aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-04-27 15:13:45 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-04-27 15:13:45 -0400
commitcc9900e7ce4c9f15e7b449e63f2b195491cbb4a8 (patch)
tree65a6cd19c74c1f644f38283d6a1a0a5a44f9c678 /core
parent17ebad90a7877aae5e658769f906d4cf5bc659d3 (diff)
downloadtextadept-cc9900e7ce4c9f15e7b449e63f2b195491cbb4a8.tar.gz
textadept-cc9900e7ce4c9f15e7b449e63f2b195491cbb4a8.zip
Fixed filename encoding issues on Windows; core/ui.lua
Diffstat (limited to 'core')
-rw-r--r--core/ui.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/ui.lua b/core/ui.lua
index 1da1b159..dbcb8f29 100644
--- a/core/ui.lua
+++ b/core/ui.lua
@@ -113,6 +113,7 @@ ui.dialogs = setmetatable({}, {__index = function(_, k)
-- Depending on the dialog type, transform the result into Lua objects.
if k == 'fileselect' or k == 'filesave' then
if result == '' then return nil end
+ if not CURSES then result = result:iconv(_CHARSET, 'UTF-8') end
if k == 'filesave' or not options.select_multiple then return result end
local files = {}
for file in result:gmatch('[^\n]+') do files[#files + 1] = file end