Hello,

>     Problem:        <PRE> tags are printed when decoding ISO-2022-JP
>                     encoded header text.
>     Solution:       Fixed in iso2022jp.pl

I still need <PRE> tags in message bodies written in ISO-2022-JP.

(You won't need this patch unless you handle Japanese messages.)

diff -urN MHonArc2.4.5/lib/mhtxtplain.pl MHonArc2.4.5p1/lib/mhtxtplain.pl
--- MHonArc2.4.5/lib/mhtxtplain.pl      Mon Aug 16 14:20:29 1999
+++ MHonArc2.4.5p1/lib/mhtxtplain.pl    Tue Feb 15 14:48:13 2000
@@ -201,7 +201,9 @@
        # Japanese
        if ($charset =~ /iso-2022-jp/) {
            require "iso2022jp.pl";
-           return (&iso_2022_jp::jp2022_to_html($data, $nourl));
+           return ("<PRE>\n" .
+                   &iso_2022_jp::jp2022_to_html($data, $nourl) .
+                   "</PRE>\n");
 
        # Latin 1-6, Greek, Hebrew, Arabic
        } elsif ($charset =~ /\biso-8859-(10|[1-9])\b/ ||
End of patch.

Reply via email to