Let's fix our NEWS file!
- From: Michael Catanzaro <mcatanzaro gnome org>
- To: release-team gnome org
- Cc: Olav Vitters <olav vitters nl>
- Subject: Let's fix our NEWS file!
- Date: Sat, 17 Dec 2016 11:40:07 -0600
Hi,
The NEWS files we release [1] obviously use UTF-8 encoding, but when
it's displayed from a web browser the browser has no way to know that.
I think Firefox has some heuristic to guess the encoding, but we should
make it work in other browsers too. WebKit correctly treats our NEWS
files as ISO 8859-1 (Latin-1) text for compatibility with old websites,
which results in people's names being messed up in our NEWS. It's been
broken forever, nothing new.
To fix it, we can either:
* Specify the encoding in our HTTP headers. That would have to be done
on each mirror that hosts the NEWS, so can't really do that.
* Specify the encoding in the document. We have to insert a zero-width
non-breaking space (U+FEFF) as the first character in the document. I
tested this just now and it works fine in WebKit.
So the later option seems good.
I found the code to handle this in /usr/local/bin/ftpadmin on master
(search for "moduleprint") but I'm afraid to touch that file. Actually,
I hope I don't have permission to touch it anyway. :) Is it maintained
in git anywhere?
Michael
[1] http://ftp-chi.osuosl.org/pub/gnome/core/3.23/3.23.3/NEWS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]