aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2016-04-05 20:44:01 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2016-04-05 20:44:01 -0400
commitc2e9e198fbfa1553411f79ff35b8d972dd417658 (patch)
tree6f31dc875f3fdc60dcd896fa5632b590669b2534
parent91d12dbb8c7ba0a155241bd056b1702b8e6fee72 (diff)
downloadtextadept-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.lua2
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