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

templates.pot files mangled if downloaded via chromium

[debian-www list added in CC, as I'm not sure if it's a problem of the
i18n server, of the website or of the browser involved]

Hi all!

Downloading a template file from this page [1] with chromium, results in
a somehow mangled file. The same thing happens using firefox, while the
file can be correctly downloaded using wget.

How to reproduce:

1. with chromium (Version 32.0.1700.123 Debian jessie/sid(248368)) 
open https://www.debian.org/international/l10n/po-debconf/pot

2. click on one of the "template.pot" link (for instance, the first one:

3. extract the downloaded file ('gunzip -d bind9_1-9.9.3.dfsg.P2-4_templates.pot.gz')

The resultant file will be a binary file:

madamezou@malatesta:~/Downloads$ file -i bind9_1-9.9.3.dfsg.P2-4_templates.pot 
bind9_1-9.9.3.dfsg.P2-4_templates.pot: application/gzip; charset=binary
madamezou@malatesta:~/Downloads$ file -n bind9_1-9.9.3.dfsg.P2-4_templates.pot 
bind9_1-9.9.3.dfsg.P2-4_templates.pot: gzip compressed data, was "templates.pot", last modified: Tue Oct 22 21:50:47 2013, max compression, from Unix

If you try the same procedure with wget, instead:

1. wget wget http://i18n.debian.org/material/po/unstable/main/b/bind9/debian/po/bind9_1%3a9.9.3.dfsg.P2-4_templates.pot.gz

2. madamezou@malatesta:~/Downloads$ gunzip 'bind9_1:9.9.3.dfsg.P2-4_templates.pot.gz' 

3. madamezou@malatesta:~/Downloads$ file -i 'bind9_1:9.9.3.dfsg.P2-4_templates.pot' 
bind9_1:9.9.3.dfsg.P2-4_templates.pot: text/x-po; charset=us-ascii
madamezou@malatesta:~/Downloads$ file -n 'bind9_1:9.9.3.dfsg.P2-4_templates.pot' 
bind9_1:9.9.3.dfsg.P2-4_templates.pot: GNU gettext message catalogue,
ASCII text

As you can notice, the filename resulting from the download is slightly
different - there's a ":" in the wget'd version that substitute a "-" in
the chromium'd one).

And the md5sum confirms it:

madamezou@malatesta:~/Downloads$ md5sum bind9_1*
042a5a827ac27caa9b844e6a06940aec bind9_1-9.9.3.dfsg.P2-4_templates.pot.gz
ea556135b7c7f432fda6f249932828bc bind9_1:9.9.3.dfsg.P2-4_templates.pot.gz

This *don't* happens with the po.gz files in [2].
So, not sure who to report it, as I don't know if it's a browser
problem, a server problem or a website problem. Any idea?


[1] https://www.debian.org/international/l10n/po-debconf/pot
[2] https://www.debian.org/international/l10n/po-debconf/it
"Llevamos un mundo nuevo en nuestros corazones;
y ese mundo está creciendo en este instante."
Buenaventura Durruti

Attachment: signature.asc
Description: Digital signature

Reply to: