From 6e086c1310caa4182e919a9ba6fe35f6c3bf3725 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 5 Apr 2016 20:45:51 -0400 Subject: Only convert filenames from `_CHARSET` to UTF-8, not UTF-8-encoded buffer names. --- core/file_io.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/file_io.lua') diff --git a/core/file_io.lua b/core/file_io.lua index 709bf1c8..9884cdf5 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -266,10 +266,10 @@ end -- @name close_buffer function io.close_buffer() local filename = buffer.filename or buffer._type or _L['Untitled'] + if buffer.filename then filename = filename:iconv('UTF-8', _CHARSET) end local confirm = not buffer.modify or ui.dialogs.msgbox{ title = _L['Close without saving?'], - text = _L['There are unsaved changes in'], - informative_text = filename:iconv('UTF-8', _CHARSET), + text = _L['There are unsaved changes in'], informative_text = filename, icon = 'gtk-dialog-question', button1 = _L['_Cancel'], button2 = _L['Close _without saving'] } == 2 -- cgit v1.2.3