Escape ISO8859-1 characters. msgmerge still hates these strings, but at
authoracli <acli>
Fri, 20 Feb 2004 00:39:26 +0000 (00:39 +0000)
committeracli <acli>
Fri, 20 Feb 2004 00:39:26 +0000 (00:39 +0000)
least the po file merges.

misc/translator/TmplTokenizer.pm

index f3ff5b6..104515f 100644 (file)
@@ -526,6 +526,7 @@ sub quote_po ($) {
     # Locale::PO->quote is buggy, it doesn't quote newlines :-/
     $s =~ s/([\\"])/\\\1/gs;
     $s =~ s/\n/\\n/g;
+    $s =~ s/[\177-\377]/ sprintf("\\%03o", ord($&)) /egs;
     return "\"$s\"";
 }