[Po4a-commits] po4a/lib/Locale/Po4a TeX.pm,1.43,1.44
Nicolas FRAN??OIS
po4a-devel@lists.alioth.debian.org
Sat, 26 Feb 2005 17:50:21 +0000
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv25363/lib/Locale/Po4a
Modified Files:
TeX.pm
Log Message:
Encode the PO comments to the po_out encoding.
Index: TeX.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/TeX.pm,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- TeX.pm 26 Feb 2005 15:25:32 -0000 1.43
+++ TeX.pm 26 Feb 2005 17:50:18 -0000 1.44
@@ -317,6 +317,9 @@
# add comments (if any and not already added to the PO)
if (@comments) {
$options{'comment'} .= join('\n', @comments);
+
+ # encode the comments to the po charset.
+ Encode::from_to($options{'comment'},$self->{TT}{'file_in_charset'},$self->{TT}{po_out}->get_charset);
@comments = ();
}