Escape ISO8859-1 characters. msgmerge still hates these strings, but at

least the po file merges.
This commit is contained in:
acli 2004-02-20 00:39:26 +00:00
parent 14a62cc0c4
commit 793f49ec7f
1 changed files with 1 additions and 0 deletions

View 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\"";
}