aboutsummaryrefslogtreecommitdiff
path: root/core/ui.lua
diff options
context:
space:
mode:
Diffstat (limited to '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