Index: kdesdk/poxml/po2xml.cpp diff -u kdesdk/poxml/po2xml.cpp:1.23 kdesdk/poxml/po2xml.cpp:1.23.2.1 --- kdesdk/poxml/po2xml.cpp:1.23 Thu Jul 26 09:37:13 2001 +++ kdesdk/poxml/po2xml.cpp Fri Dec 6 18:56:13 2002 @@ -27,6 +27,32 @@ return xml; } +static char * shell_quote(const char *s) +{ + char *result; + char *p; + p = result = (char *) malloc(strlen(s)*5+3); + *p++ = '\''; + while(*s) + { + if (*s == '\'') + { + *p++ = '\''; + *p++ = '"'; + *p++ = *s++; + *p++ = '"'; + *p++ = '\''; + } + else + { + *p++ = *s++; + } + } + *p++ = '\''; + *p = '\0'; + return result; +} + QString escapePO(QString msgid) { int index = 0; @@ -109,7 +135,11 @@ QString output; QTextStream ts(&output, IO_WriteOnly); if (xml_text.left(5) != " line_offsets; line_offsets.append(0);