Last modified: 2014-01-03 16:12:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42971, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40971 - mailman's public list index (listinfo) has the wrong encoding in its Content-Type header
mailman's public list index (listinfo) has the wrong encoding in its Content-...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Mailing lists (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: ops
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-12 03:30 UTC by MZMcBride
Modified: 2014-01-03 16:12 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2012-10-12 03:30:59 UTC
$ curl -Is "https://lists.wikimedia.org/mailman/listinfo/wikiuk-l" | grep Content-Type
Content-Type: text/html; charset=utf-8

$ curl -Is "https://lists.wikimedia.org/mailman/listinfo" | grep Content-Type
Content-Type: text/html; charset=us-ascii

---

As you can see, the index at <https://lists.wikimedia.org/mailman/listinfo> specifies a charset of us-ascii. This is wrong. It should be specifying utf-8.

This bug is related to bug 37817 ("lists.wikimedia.org encoding issues in description").
Comment 1 Daniel Zahn 2013-01-03 22:02:13 UTC
per suggestion of thehelpfulone:

in /var/lib/mailman/Mailman/htmlformat.py line 300  there is "charset =".

we changed that from us-ascii to utf-8 and deleted the matching .pyc bytecode file too.. but this does not appear to fix it.
Comment 2 Daniel Zahn 2013-01-03 22:02:48 UTC
so..i would say "upstream bug"... #mailman channel agrees:

 kjetilho> yeah, UTF-8 would be the sensible default in just about any distro
Comment 3 Daniel Zahn 2013-01-03 22:27:11 UTC
ok, so i found Defaults.py which sets a charset per language, like:

add_language('en',    _('English (USA)'),       'us-ascii',       'ltr')

changing that to 

add_language('en',    _('English (USA)'),       'utf-8',       'ltr')

actually makes the listinfo overview page utf-8.

..but..the list descriptions of non-English lists will still appear broken, because they are not utf-8.. it depends on the language..

and languages and descriptions can bet set by list admins...
Comment 4 Andre Klapper 2013-02-28 23:00:33 UTC
No plans to investigate further on the WM site, candidate for upstreaming.
Comment 5 Nemo 2013-10-31 09:00:55 UTC
Looks good now?
$ curl -Is "https://lists.wikimedia.org/mailman/listinfo" | grep Content-Type
Content-Type: text/html; charset=utf-8
Comment 6 MZMcBride 2013-10-31 14:17:54 UTC
Yep, this seems to be fixed. Thanks for marking this as such, Nemo. Bug 37817 remains unresolved, I believe.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links