diff options
author | 2016-04-05 20:44:01 -0400 | |
---|---|---|
committer | 2016-04-05 20:44:01 -0400 | |
commit | c2e9e198fbfa1553411f79ff35b8d972dd417658 (patch) | |
tree | 6f31dc875f3fdc60dcd896fa5632b590669b2534 | |
parent | 91d12dbb8c7ba0a155241bd056b1702b8e6fee72 (diff) | |
download | textadept-c2e9e198fbfa1553411f79ff35b8d972dd417658.tar.gz textadept-c2e9e198fbfa1553411f79ff35b8d972dd417658.zip |
File dialogs only return UTF-8-encoded filenames on Win32 GTK; core/ui.lua
-rw-r--r-- | core/ui.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ui.lua b/core/ui.lua index de1ed2fd..9c13c42a 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -121,7 +121,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 not CURSES and WIN32 then result = result:iconv(_CHARSET, 'UTF-8') end if k == 'filesave' or not options.select_multiple then return result end local filenames = {} for filename in result:gmatch('[^\n]+') do |