[Mailman-i18n] German Umlauts in pipermail

Jan-Benedict Glaw jbglaw@lug-owl.de
Mon, 8 Oct 2001 15:01:38 +0200


Hi!

I tried to make pipermail (read: HyperArch.pl) aware of german Umlauts.
They're normally MIME-Encoded, using iso-8859-1. I searched through
the existing code for "<" and ">" substitution as they're correctly
substituted by &lt; and &gt;. Then I worked out the patch below.

Unfortunately, "<" and ">" are working as before, but the other
substitutions are never executed:-( Could anybody please give me
some hints?

MfG, JBG

diff -Nru mailman-2.0.6/Mailman/Archiver/HyperArch.py mailman-2.0.6-jbglaw/=
Mailman/Archiver/HyperArch.py
--- mailman-2.0.6/Mailman/Archiver/HyperArch.py	Mon Nov 13 22:50:05 2000
+++ mailman-2.0.6-jbglaw/Mailman/Archiver/HyperArch.py	Mon Oct  1 16:24:38 =
2001
@@ -57,10 +57,28 @@
=20
 =0C
 def html_quote(s):
-    repls =3D ( ('&', '&amp;'),
-	      ("<", '&lt;'),
-	      (">", '&gt;'),
-	      ('"', '&quot;'))
+    repls =3D ( ( '&',	'&amp;'		),
+	      ( '<',	'&lt;'		),
+	      ( '>',	'&gt;'		),
+	      ( '=3D20',	' '		),
+	      ( '=3D3D',	'=3D'		),
+	      ( '=3DE4',	'&auml;'	),
+	      ( '=3DF6',	'&ouml;'	),
+	      ( '=3DFC',	'&uuml;'	),
+	      ( '=3DDF',	'&szlig;'	),
+	      ( '=3DC4',	'&Auml;'	),
+	      ( '=3DF6',	'&Ouml;'	),
+	      ( '=3DDC',	'&Uuml;'	),
+	      ( '=3DE9',	'&eacute;'	),
+	      ( '=E4',	'&auml;'	),
+	      ( '=F6',	'&ouml;'	),
+	      ( '=FC',	'&uuml;'	),
+	      ( '=DF',	'&szlig;'	),
+	      ( '=C4',	'&Auml;'	),
+	      ( '=D6',	'&Ouml;'	),
+	      ( '=DC',	'&Uuml;'	),
+	      ( '=E9',	'&eacute;'	),
+	      ( '"',	'&quot;'	))
     for thing, repl in repls:
 	s =3D string.replace(s, thing, repl)
     return s
--=20
Jan-Benedict Glaw . jbglaw@lug-owl.de . +49-172-7608481