From 0d373eac1d4c8fac51c15e9d2338499f7b4c273f Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 30 May 2010 16:53:20 +0000 Subject: [PATCH] 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 --- utils/wxrc/wxrc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); } -- 2.45.2