From c2e9e198fbfa1553411f79ff35b8d972dd417658 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 5 Apr 2016 20:44:01 -0400 Subject: File dialogs only return UTF-8-encoded filenames on Win32 GTK; core/ui.lua --- core/ui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ui.lua') 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 -- cgit v1.2.3