From: Václav Slavík Date: Sun, 30 May 2010 16:53:20 +0000 (+0000) Subject: wxrc -g should output filenames in Unix format. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0d373eac1d4c8fac51c15e9d2338499f7b4c273f wxrc -g should output filenames in Unix format. It is customary in C source code and xgettext has problems with backslahes in #line comments. Fixes #10727. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index 7f9abc5aa7..853359afba 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -844,9 +844,12 @@ void XmlResApp::OutputGettext() for (ExtractedStrings::const_iterator i = str.begin(); i != str.end(); ++i) { + const wxFileName filename(i->filename); + wxString s; + s.Printf("#line %d \"%s\"\n", + i->lineNo, filename.GetFullPath(wxPATH_UNIX)); - s.Printf("#line %d \"%s\"\n", i->lineNo, i->filename); fout.Write(s); fout.Write("_(\"" + i->str + "\");\n"); }