Escape ISO8859-1 characters. msgmerge still hates these strings, but at
least the po file merges.
This commit is contained in:
parent
14a62cc0c4
commit
793f49ec7f
|
|
@ -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\"";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue