Am 08.08.20 um 21:44 schrieb Mark Sapiro:
> On 8/8/20 6:47 AM, Johannes Rohr wrote:
>> Dear all,
>>
>> As a quick fix I have now recoded the mailman.po for de to from latin1
>> to utf8 and re-compiled it with msgfmt. This seems to fix things. BTW, I
>> stumbled across a problem with the mo file, that I had to fix first.
> What was the problem with the .mo? Is something wrong in the distribution?

Line 7111, the msgid ends in

"                       "

whereas the msgstr ends in

"</ul>\n"

That is: It misses the last line which only consists of blanks.

>
> Note that Debian's (and Ubuntu's) Mailman 2.1 package at one time[1]
> recoded templates and message catalogs to UTF-8

Right now, some are, some are not.

>  and changed the
> definition of add_language in Defaults.py to hard-code utf-8 as the
> charset for every language.

Again, that is mixed now.

>
> This was OK as far as it went, but they didn't consider the issue of
> strings in list attributes

What's that? Excuse my ignorance.

>  being encoded in the old charset. This caused
> serious issues for some sites. See
> <https://mail.python.org/archives/list/mailman-users@python.org/thread/JDLVQY3EUEN2W4VIC4XVMO2HOT53NMZ5/#NTXJUVDV7SUWSLAPJ7AQTZTXGJGJW6DR>
> for one thread on this.
Thanks for the pointer!
>
> [1] They appear to have removed
> <https://sources.debian.org/patches/mailman/1:2.1.18-2/91_utf8.patch/>
> from the latest packages. It was in their 1:2.1.23-1 package, but is not
> in the 1:2.1.29-1 package.
>
Ah, interesting. However, what is the canonical approach then? Is the
mailman web interface supposed to recode everything to UTF on the fly?
Because, firefox thinks, that the pages are in UTF-8, presumably because
that's what the server says.

Strangely, after I recompiled de in UTF-8, German umlauts would display
correctly, but Russian, which has been in UTF-8 all along is suddenly
messed up. And here, it is not the message strings that are messed up
but it is the contents of listinfo.html that is in some 8 bit Russian
charset. How does that happen? Apparently I can't just delete a
subdirectory in /etc/mailman, because even after running
dpkg-reconfigure mailman and selecting the languages that I want, the
directory is created, but it is empty. How can I manually regenerate the
languages?

Cheers, and thanks for your support!

Johannes

------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
    https://mail.python.org/archives/list/mailman-users@python.org/

Reply via email to