[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#865713: Please Start UTF-8 debian-policy Text Files with UTF-8 Signature



On Tue, 2017-06-27 at 19:49 -0700, Paul Hardy wrote:

> 1) Serving debian-policy pages on Debian servers as UTF-8 documents,
> as an interim measure.

I think we would want to do this for all *.txt documents that are UTF-8 
and available on the website. First we need the list of UTF-8 encoded
text files and then we need an appropriate Apache configuration snippet
to be added to the template.

https://anonscm.debian.org/cgit/mirror/dsa-puppet.git/tree/modules/roles/templates/apache-www.debian.org.erb

I've run these commands on one of the static mirrors, results attached.

find . -iname *.txt -print0 | xargs -0 isutf8 --list --invert | sort > ~/isutf8.txt
find . -iname *.txt -print0 | xargs -0 isutf8 --list | sort > ~/isnotutf8.txt
find . -iname *.txt -print0 | xargs -0 file --mime-encoding | sort > ~/mime-encoding.txt

Could someone come up with an appropriate Apache configuration snippet?

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: isnotutf8.txt.gz
Description: application/gzip

Attachment: isutf8.txt.gz
Description: application/gzip

Attachment: mime-encoding.txt.gz
Description: application/gzip

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: