From 7a9be8cb6f96091d0465261afb95f8ea4b6b37f4 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 20 Dec 2010 20:14:23 +0100 Subject: [PATCH] Escape strings when putting them into option files --- src/mmg/tabs/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mmg/tabs/input.cpp b/src/mmg/tabs/input.cpp index 18cd8e313..058ab77b7 100644 --- a/src/mmg/tabs/input.cpp +++ b/src/mmg/tabs/input.cpp @@ -314,7 +314,7 @@ tab_input::add_file(const wxString &file_name, } opt_file->Write(wxT("--output-charset\nUTF-8\n--identify-for-mmg\n")); - arg_utf8 = wxMB(file_name); + arg_utf8 = escape(wxMB(file_name)); opt_file->Write(arg_utf8.c_str(), arg_utf8.length()); opt_file->Write(wxT("\n")); delete opt_file;