aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/run.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-09-15 14:41:34 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-09-15 14:41:34 -0400
commit9ccea9e562699b45ba830b8b1355571061580386 (patch)
tree0d908fa3c956254a2e3629a7398fa1c54c7863b3 /modules/textadept/run.lua
parentc683ff20ef76c60cdf79df3c61f267dc3b7073ed (diff)
downloadtextadept-9ccea9e562699b45ba830b8b1355571061580386.tar.gz
textadept-9ccea9e562699b45ba830b8b1355571061580386.zip
Do not convert filenames to UTF-8; keep them in `_CHARSET`.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r--modules/textadept/run.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua
index 67850924..87e292c4 100644
--- a/modules/textadept/run.lua
+++ b/modules/textadept/run.lua
@@ -56,8 +56,7 @@ local function command(cmd_table, compiling)
if type(command) == 'function' then command = command() end
preferred_view = view
- local filepath = buffer.filename:iconv(_CHARSET, 'UTF-8')
- local filedir, filename = '', filepath
+ local filepath, filedir, filename = buffer.filename, '', buffer.filename
if filepath:find('[/\\]') then
filedir, filename = filepath:match('^(.+[/\\])([^/\\]+)$')
end
@@ -92,6 +91,7 @@ local function get_error_details(message)
if #captures > 0 then
local details = {}
for detail, i in pairs(error_detail) do details[detail] = captures[i] end
+ details.filename = details.filename:iconv(_CHARSET, 'UTF-8')
return details
end
end