aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-11-11 18:52:08 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-11-11 18:52:08 -0500
commit1859dff605a32d9e78a36c14239129579d9fc6e4 (patch)
tree853eb23d5eb7cc222345545ccc524ab72941621b /core
parenta19d97e359f75f7cad48c6f135f1ded5b0f0f71c (diff)
downloadtextadept-1859dff605a32d9e78a36c14239129579d9fc6e4.tar.gz
textadept-1859dff605a32d9e78a36c14239129579d9fc6e4.zip
Fixed erroneous charset conversion; core/file_io.lua
Diffstat (limited to 'core')
-rw-r--r--core/file_io.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index 3625e46d..35140c5a 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -162,7 +162,7 @@ function open_file(utf8_filenames)
if file == utf8_filename then table.remove(recent_files, i) break end
end
table.insert(recent_files, 1, utf8_filename)
- lfs.chdir(utf8_filename:iconv('UTF-8', _CHARSET):match('.+[/\\]') or '.')
+ lfs.chdir(utf8_filename:iconv(_CHARSET, 'UTF-8'):match('.+[/\\]') or '.')
end
end
@@ -242,7 +242,7 @@ local function save_as(buffer, utf8_filename)
buffer.filename = utf8_filename
buffer:save()
events.emit(events.FILE_SAVED_AS, utf8_filename)
- lfs.chdir(utf8_filename:iconv('UTF-8', _CHARSET):match('.+[/\\]'))
+ lfs.chdir(utf8_filename:iconv(_CHARSET, 'UTF-8'):match('.+[/\\]'))
end
end