From cc9900e7ce4c9f15e7b449e63f2b195491cbb4a8 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 27 Apr 2015 15:13:45 -0400 Subject: Fixed filename encoding issues on Windows; core/ui.lua --- core/ui.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'core/ui.lua') 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 -- cgit v1.2.3