From unknown Sat Aug 09 13:00:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#46807 <46807@debbugs.gnu.org> To: bug#46807 <46807@debbugs.gnu.org> Subject: Status: [website] return 404 with HTTP header 'Accept-Language: zh-CN,zh' Reply-To: bug#46807 <46807@debbugs.gnu.org> Date: Sat, 09 Aug 2025 20:00:19 +0000 retitle 46807 [website] return 404 with HTTP header 'Accept-Language: zh-CN= ,zh' reassign 46807 guix submitter 46807 ylc991 severity 46807 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 26 21:44:36 2021 Received: (at submit) by debbugs.gnu.org; 27 Feb 2021 02:44:36 +0000 Received: from localhost ([127.0.0.1]:42912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFpau-0005a2-2Q for submit@debbugs.gnu.org; Fri, 26 Feb 2021 21:44:36 -0500 Received: from lists.gnu.org ([209.51.188.17]:46916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFpQe-0005Kw-Ie for submit@debbugs.gnu.org; Fri, 26 Feb 2021 21:34:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFpQe-0007fx-A4 for bug-guix@gnu.org; Fri, 26 Feb 2021 21:34:00 -0500 Received: from m12-17.163.com ([220.181.12.17]:33759) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lFpQY-0006Qt-Me for bug-guix@gnu.org; Fri, 26 Feb 2021 21:33:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:Subject:Message-ID:From:MIME-Version; bh=ezh10 LHwRrIZJkSJD82pGpugQGUWFNrVVkYHpU0kwIo=; b=F+XiMl+Jt+ujMHnsV2pBO NlaDMWZzg5kYUVnQ1Y/POt60LLQ32jHxMcoLmQuNZdNZIEL+xEMQvtG+GKwzJWO9 UsYhQtk5dcCLf5CEXUiUdsEM6heyXpMKh6SrkFEeM09Kz+mimN941Cy+n2CcdaRg U/NNK6njIM5q1DaOvNfGDQ= Received: from [192.168.0.14] (unknown [1.81.214.229]) by smtp13 (Coremail) with SMTP id EcCowAAnKZHnqzlg79NdnA--.31605S2; Sat, 27 Feb 2021 10:18:17 +0800 (CST) Date: Sat, 27 Feb 2021 10:18:12 +0800 Subject: [website] return 404 with HTTP header 'Accept-Language: zh-CN,zh' Message-ID: From: ylc991 To: bug-guix@gnu.org MIME-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 X-CM-TRANSID: EcCowAAnKZHnqzlg79NdnA--.31605S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU7LZ2DUUUU X-Originating-IP: [1.81.214.229] X-CM-SenderInfo: 51ofmmqr6rljoofrz/1tbitApGhlSIkhZ8vQAAsn Received-SPF: pass client-ip=220.181.12.17; envelope-from=ylc991@163.com; helo=m12-17.163.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.6 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello! My webbrowser has set ‘Accept-Language’ to 'zh-CN,zh' by default, and https://guix.gnu.org returns 404. I have tested with curl, 'zh-CN,zh', 'zh-CN', 'zh-cn' is 404 while 'zh', 'zh_CN' is 2 [...] Content analysis details: (1.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.51.188.17 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ylc991[at]163.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (ylc991[at]163.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=ylc991%40163.com;ip=209.51.188.17;r=debbugs.gnu.org] 0.1 MIME_HTML_ONLY BODY: Message only has text/html MIME parts 0.0 HTML_MESSAGE BODY: HTML included in message 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.6 HTML_MIME_NO_HTML_TAG HTML-only message, but there is no HTML tag 2.0 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 26 Feb 2021 21:44:35 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) PGRpdiBkaXI9Imx0ciI+SGVsbG8hIE15IHdlYmJyb3dzZXIgaGFzIHNldCDigJhBY2NlcHQtTGFu Z3VhZ2XigJkgdG8gJiMzOTt6aC1DTix6aCYjMzk7IGJ5IGRlZmF1bHQsIGFuZCA8YSBocmVmPSJo dHRwczovL2d1aXguZ251Lm9yZyI+aHR0cHM6Ly9ndWl4LmdudS5vcmc8L2E+IHJldHVybnMgNDA0 LiBJIGhhdmUgdGVzdGVkIHdpdGggY3VybCwgJiMzOTt6aC1DTix6aCYjMzk7LCAmIzM5O3poLUNO JiMzOTssICYjMzk7emgtY24mIzM5OyBpcyA0MDQgd2hpbGUgJiMzOTt6aCYjMzk7LCAmIzM5O3po X0NOJiMzOTsgaXMgMjAwLjxicj4KPC9kaXY+PGRpdiBkaXI9Imx0ciI+PGJyPgpUaGUgZmlyc3Qg dGltZSBJIGZvdW5kIGl0IGlzIG9uIDxhIGhyZWY9InRlbDoyMDIxMDIyMyI+MjAyMS0wMi0yMzwv YT4uIEFuZCBpdCBkaWRuJiMzOTt0IGhhcHBlbmVkIGFib3V0IG9uZSBvciB0d28gbW9udGhzIGFn by4gSSB0aGluayB0aGVyZSBtYXkgYmUgc29tZXRoaW5nIHdyb25nIHdpdGggdGhlIHdlYiBzZXJ2 ZXIuPC9kaXY+ From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 27 07:31:56 2021 Received: (at submit) by debbugs.gnu.org; 27 Feb 2021 12:31:56 +0000 Received: from localhost ([127.0.0.1]:43341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFylH-0006qj-Nh for submit@debbugs.gnu.org; Sat, 27 Feb 2021 07:31:56 -0500 Received: from lists.gnu.org ([209.51.188.17]:44718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFylG-0006pU-D9 for submit@debbugs.gnu.org; Sat, 27 Feb 2021 07:31:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36362) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFylG-0002rA-6M for bug-guix@gnu.org; Sat, 27 Feb 2021 07:31:54 -0500 Received: from tobias.gr ([2a02:c205:2020:6054::1]:45408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFyl9-0003zP-UC for bug-guix@gnu.org; Sat, 27 Feb 2021 07:31:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=LhcCRRTr3GC2i9AvSiF5vVEwT20vpRFNK/K+aGOvfCQ=; h=date:in-reply-to: references:subject:cc:to:from; b=QKLbm9ZP5YfSMUAkn2tDy1ZobeTdvbpAdbt7u u4kDeh54AOrbEfJP+zpxDIq2jX6yXrBu1mpeGiN9uuzllQWGJyHuuG+VBnGwa7eZFrQIqF GZhsEcJ1GFs8aGHK5NcrPP8GrSBkzbnFeUdn4dZ6qfe6+ZNcqTaVA7j2vO1wLjQ8HhBeBv XNS88nYXDgVWFtnvKmbmwK5TBtrRsjwBXIAjKE2mJRckJHlmQ/O0pbKnJpWR2haD6Ytzkw XJ0LoIBdrSYRy6c+cW69cguhy5oiEUXYGtB0w9kl2CoKs7Hvf10l7sKRacyh6zmMaizFYb N0b1IVPJbVUQjEORzOPg3sTRQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 739cde64 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Sat, 27 Feb 2021 12:32:36 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: ylc991 Subject: Re: bug#46807: [website] return 404 with HTTP header 'Accept-Language: zh-CN, zh' References: In-reply-to: Date: Sat, 27 Feb 2021 13:31:40 +0100 Message-ID: <87czwl66ab.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: bug-guix@gnu.org, 46807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Ylc991, Thanks for the report! My verbose notes so far; I need to (finally!) set up a local build=20 of the Web site first. ylc991 =E5=86=99=E9=81=93=EF=BC=9A > Hello! My webbrowser has set =E2=80=98Accept-Language=E2=80=99 to 'zh-CN,= zh' by=20 > default, and https://guix.gnu.org returns 404. Indeed, handling of zh-CN specifically is broken. :-( =2D-8<---------------cut here---------------start------------->8--- ~ =CE=BB curl -LI -H 'Accept-Language: zh-cn' https://guix.gnu.org HTTP/1.1 404 Not Found [...] =2D-8<---------------cut here---------------end--------------->8--- This is because our nginx configuration=20 (maintenance/hydra/nginx/berlin.scm) does: =2D-8<---------------cut here---------------start------------->8--- set_from_accept_language $lang en de es fr zh-CN; [...] try_files $uri /$lang/$uri /$lang/$uri/index.html =3D404; =2D-8<---------------cut here---------------end--------------->8--- i.e., it looks in /srv/guix.gnu.org/zh-CN, but our website uses... =2D-8<---------------cut here---------------start------------->8--- nckx@berlin ~$ ls -d /srv/guix.gnu.org/zh* /srv/guix.gnu.org/zh-cn/ =2D-8<---------------cut here---------------end--------------->8--- ...lowercase. This questionable choice comes from=20 artwork/po/ietf-tags.scm: =2D-8<---------------cut here---------------start------------->8--- ;;; This file contains an association list for each translation=20 from ;;; the locale to an IETF language tag to be used in the URL path=20 of ;;; translated pages. The language tag results from the=20 translation ;;; team<80><99>s language code from ;;; . The=20 underscore ;;; in the team<80><99>s code is replaced by a hyphen. For=20 example, az would ;;; be used for the Azerbaijani language (not az-Latn) and zh-CN=20 would ;;; be used for mainland Chinese (not zh-Hans-CN) ([...] ("zh_CN" . "zh-cn")) =2D-8<---------------cut here---------------end--------------->8--- Questionable only because, while a lowercase region is technically=20 valid, it's so rare that it's likely to cause problems -- as we=20 found out. > I have tested with curl, 'zh-CN,zh', 'zh-CN', [is 404] These are valid, so the nginx accept-language module accepts them,=20 but then looks for a subdirectory that doesn't exist and returns=20 404. > 'zh-cn' is 404 This is valid, but since we configure the accept-language module=20 to use =E2=80=98zh-CN=E2=80=99 it normalises $lang to the latter. Which is= good,=20 but it causes the same 404 as above. > 'zh_CN' is 200. This is bogus (=E2=80=98_=E2=80=99 is not valid), hence ignored, and so the= site=20 falls back to English 200. > 'zh' [is 200] Valid but the accept-language module is not clever; we need to add=20 an explicit 'zh' entry for that to work: =2D-8<---------------cut here---------------start------------->8--- set_from_accept_language $lang en de es fr zh-CN zh en; =2D-8<---------------cut here---------------end--------------->8--- I expect that adding it and changing ietf-tags.scm to use "zh-CN"=20 will fix both 404s, but need to check that it doesn't break=20 anything else. The other untested solution is using lowercase =2D-8<---------------cut here---------------start------------->8--- set_from_accept_language $lang en de es fr zh-cn zh en; =2D-8<---------------cut here---------------end--------------->8--- but I--assuming that even works--'m not fond of making the=20 unconventional the norm. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYDo7rQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15JtwBANSsU7nb49XCqb+SwuiKIoJrdYEqizNZP5OPmoSg zN1VAPsHOqOQ6yL6TCgmq/oyIpHoZvk7x4W5VJqp2I9uHGLICg== =MWX4 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 27 07:35:07 2021 Received: (at submit) by debbugs.gnu.org; 27 Feb 2021 12:35:07 +0000 Received: from localhost ([127.0.0.1]:43349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFyoM-0007MY-Q8 for submit@debbugs.gnu.org; Sat, 27 Feb 2021 07:35:07 -0500 Received: from lists.gnu.org ([209.51.188.17]:46230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFyoL-0007MS-RF for submit@debbugs.gnu.org; Sat, 27 Feb 2021 07:35:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFyoL-0003a5-K0 for bug-guix@gnu.org; Sat, 27 Feb 2021 07:35:05 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]:33116) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFyoJ-0005En-FB for bug-guix@gnu.org; Sat, 27 Feb 2021 07:35:05 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e3520d04; Sat, 27 Feb 2021 12:34:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=3TRG+y2yYjq0+maFeYKqh04Tqx6OCDSghSm0K8V8FA0=; b=Ld7l6hCPP3Zu 3AWIiKf1jCdMVc8r5U3plfnfmqDM349lD9ksyslZuRBEqAF6aG28ie5miB7vSuin Nkh0fTF/R82rkTfuYg2ScWuJ0wJ2MtjDUeK9HVT7+Kta8tJiTKKQTvRIRb+Q9JgN gxtcM7fireKSQRRg3jONUiVJ8vAzluQsaFIgfIX8w4Int2ALDTaJB9W97GlpWwkM SRkrEe9i7QWHFs208Cv9IX2MmYM64kPkbR9g3bgwJcheIQE2nUQzCj/LBoHXus1x a45idZUi13/cs7DmxCLP8uHHEHpFn/jYSXUq+UYErnIjwfwsYeEzW/dq5pilJBTz 5fOC39Y9Gw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 00d81c12 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 27 Feb 2021 12:34:58 +0000 (UTC) Date: Sat, 27 Feb 2021 07:34:45 -0500 User-Agent: K-9 Mail for Android In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----GILR3Q13JPFF1RB3XBDE65DW43L9LL" Content-Transfer-Encoding: 7bit Subject: Re: bug#46807: [website] return 404 with HTTP header 'Accept-Language: zh-CN, zh' To: bug-guix@gnu.org,ylc991 ,46807@debbugs.gnu.org From: Julien Lepiller Message-ID: <4577C0A0-0B5B-4808-8E51-D8E59301BE6B@lepiller.eu> Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) ------GILR3Q13JPFF1RB3XBDE65DW43L9LL Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable It might be related to translations=2E When you use zh-cn, we have a transl= ation for that language, so you're redirected to it=2E Not sure why you get= a 404 though=2E Le 26 f=C3=A9vrier 2021 21:18:12 GMT-05:00, ylc991 a = =C3=A9crit : >Hello! My webbrowser has set =E2=80=98Accept-Language=E2=80=99 to 'zh-CN,= zh' by >default, and https://guix=2Egnu=2Eorg returns 404=2E I have tested with c= url, >'zh-CN,zh', 'zh-CN', 'zh-cn' is 404 while 'zh', 'zh_CN' is 200=2E > > >The first time I found it is on 2021-02-23=2E And it didn't happened >about one or two months ago=2E I think there may be something wrong with >the web server=2E ------GILR3Q13JPFF1RB3XBDE65DW43L9LL Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable It might be related to translations=2E When you us= e zh-cn, we have a translation for that language, so you're redirected to i= t=2E Not sure why you get a 404 though=2E

Le 26 f=C3=A9vrier 2021 21:18:12 GMT-05:00, ylc991 <ylc991@163=2Ecom>= ; a =C3=A9crit :
Hello! My webbrowser has set =E2=80=98Accept-Language=E2= =80=99 to 'zh-CN,zh' by default, and h= ttps://guix=2Egnu=2Eorg returns 404=2E I have tested with curl, 'zh-CN,= zh', 'zh-CN', 'zh-cn' is 404 while 'zh', 'zh_CN' is 200=2E

The first time I found it is on 20= 21-02-23=2E And it didn't happened about one or two months ago=2E I thi= nk there may be something wrong with the web server=2E
------GILR3Q13JPFF1RB3XBDE65DW43L9LL-- From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 01 05:07:12 2021 Received: (at 46807) by debbugs.gnu.org; 1 Mar 2021 10:07:12 +0000 Received: from localhost ([127.0.0.1]:48185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGfSK-0006s1-86 for submit@debbugs.gnu.org; Mon, 01 Mar 2021 05:07:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGfSI-0006rm-4H for 46807@debbugs.gnu.org; Mon, 01 Mar 2021 05:07:10 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42114) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGfS9-0001dY-KP; Mon, 01 Mar 2021 05:07:01 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=50430 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lGfS9-0007q9-2G; Mon, 01 Mar 2021 05:07:01 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: ylc991 Subject: Re: bug#46807: [website] return 404 with HTTP header 'Accept-Language: zh-CN, zh' References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 =?utf-8?Q?Vent=C3=B4se?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 01 Mar 2021 11:06:59 +0100 In-Reply-To: (ylc's message of "Sat, 27 Feb 2021 10:18:12 +0800") Message-ID: <87im6btcfw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello, ylc991 skribis: > Hello! My webbrowser has set ‘Accept-Language’ to 'zh-CN,zh' by default, and https://guix.gnu.org returns 404. I have tested with curl, 'zh-CN,zh', 'zh-CN', > 'zh-cn' is 404 while 'zh', 'zh_CN' [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [209.51.188.92 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_TONAME_EQ_TOLOCAL_SHORT Short body with To: name matches everything in local email X-Debbugs-Envelope-To: 46807 Cc: Julien Lepiller , Florian Pelz , 46807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) Hello, ylc991 skribis: > Hello! My webbrowser has set =E2=80=98Accept-Language=E2=80=99 to 'zh-CN,= zh' by default, and https://guix.gnu.org returns 404. I have tested with cu= rl, 'zh-CN,zh', 'zh-CN', > 'zh-cn' is 404 while 'zh', 'zh_CN' is 200. Florian, could it be that we=E2=80=99re not normalizing language tags appropriately? Does that ring a bell? Thanks for your report! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 01 05:49:43 2021 Received: (at 46807) by debbugs.gnu.org; 1 Mar 2021 10:49:43 +0000 Received: from localhost ([127.0.0.1]:48237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGg7T-0007sr-KF for submit@debbugs.gnu.org; Mon, 01 Mar 2021 05:49:43 -0500 Received: from pelzflorian.de ([5.45.111.108]:59178 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGg7R-0007sj-Bf for 46807@debbugs.gnu.org; Mon, 01 Mar 2021 05:49:42 -0500 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id D85BC3605E2; Mon, 1 Mar 2021 11:49:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1614595780; bh=Zj9RY4lyk/1y/WxBab0dVUV1PW+MUx5Hw6TbmmT13+c=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=mcYKQ7tloiEbIExvBTxUaubICN2LZuN+mlA+090jlj4Oa8kzU7yM8XW6Eo+FBSd+9 DseRmM9MJxDY32H2Ch31+MIjqn54mtgmomTCw6VIPN7Ru1QfBOzsaXd6PrltD2KQmZ M0Vbv3Q3QcfHcj6FKh/NEDgH9JkxOkXE40Heei4s= Date: Mon, 1 Mar 2021 11:49:30 +0100 From: "pelzflorian (Florian Pelz)" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#46807: [website] return 404 with HTTP header 'Accept-Language: zh-CN, zh' Message-ID: <20210301104747.wlibfapjjn3x3kut@pelzflorian.localdomain> References: <87im6btcfw.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87im6btcfw.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46807 Cc: ylc991 , Julien Lepiller , 46807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, On Mon, Mar 01, 2021 at 11:06:59AM +0100, Ludovic Courtès wrote: > Florian, could it be that we’re not normalizing language tags > appropriately? Does that ring a bell? Tobias’ analysis likely is correct. I haven’t yet build a current berlin virtual machine to test though. We’re not normalizing language tags at all currently. Doing URL redirects in nginx confuses me greatly; I have no idea how to concisely specify redirects *and* have them execute in the right order. The many lines (redirect "/blog/2006/purely-functional-software-deployment-model" "/$lang/blog/2006/purely-functional-software-deployment-model/") and similar in maintenance.git’s hydra/nginx/berlin.scm file are a bad solution and are testament to my confusion. I would not like one line for each package. Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 04 06:03:19 2021 Received: (at 46807) by debbugs.gnu.org; 4 Mar 2021 11:03:19 +0000 Received: from localhost ([127.0.0.1]:57928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHllH-0000hj-BC for submit@debbugs.gnu.org; Thu, 04 Mar 2021 06:03:19 -0500 Received: from pelzflorian.de ([5.45.111.108]:34922 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHllF-0000ha-Qd for 46807@debbugs.gnu.org; Thu, 04 Mar 2021 06:03:18 -0500 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 3B54D3605E2; Thu, 4 Mar 2021 12:03:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1614855796; bh=76e2hs+lE66c2Q0KDi6uxR15zZtzO/v/Zc6Cnc1g75Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=aAo/tXFq8MAuZUGVz0tC3YST5biKgAXuLqjWSRVs5zg30rX3suh6KMY2dE3PH9WMP wsahapvs10B1HejzXHroUDuX4NRD3fdyIQPaKXEOMZ7Ng5D403t5ue288e4RMl7rV5 /rXO85M7FGQWxqTuiNah68Qi/XNv1+7OjW2I0Ol4= Date: Thu, 4 Mar 2021 12:03:00 +0100 From: "pelzflorian (Florian Pelz)" To: Tobias Geerinckx-Rice Subject: Re: bug#46807: [website] return 404 with HTTP header 'Accept-Language: zh-CN, zh' Message-ID: <20210304110018.uhacou2tdyattzt6@pelzflorian.localdomain> References: <87czwl66ab.fsf@nckx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87czwl66ab.fsf@nckx> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46807 Cc: ylc991 , 46807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Sat, Feb 27, 2021 at 01:31:40PM +0100, Tobias Geerinckx-Rice via Bug reports for GNU Guix wrote: > I expect that adding it and changing ietf-tags.scm to use "zh-CN" will fix > both 404s, but need to check that it doesn't break anything else. I made the tiny change to guix-artwork’s ietf-tags.scm as 04c96a370b8cae48ed162e4414b8950cc65c513b now (sorry for taking so long): diff --git a/website/po/ietf-tags.scm b/website/po/ietf-tags.scm index 32b81ef..5bd22f4 100644 --- a/website/po/ietf-tags.scm +++ b/website/po/ietf-tags.scm @@ -10,4 +10,4 @@ ("de_DE" . "de") ("es_ES" . "es") ("fr_FR" . "fr") - ("zh_CN" . "zh-cn")) + ("zh_CN" . "zh-CN")) Note that the prior zh-cn URLs will be broken. I will play around with nginx’ map directive to make zh-cn and zh Accept-Language settings direct to the proper URL later, afterwards I will close this bug. zh-cn URLs remain invalid. Links to the manual continue to use zh-cn. For testing I dug out the VM code where I had removed parts of berlin that are not relevant to the website. The change breaks neither website nor manual. Thanks ylc991 for the report! Regards, Florian From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 05 06:54:56 2021 Received: (at 46807) by debbugs.gnu.org; 5 Mar 2021 11:54:56 +0000 Received: from localhost ([127.0.0.1]:33050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lI92m-0004iz-21 for submit@debbugs.gnu.org; Fri, 05 Mar 2021 06:54:56 -0500 Received: from pelzflorian.de ([5.45.111.108]:36202 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lI92j-0004iq-GK for 46807@debbugs.gnu.org; Fri, 05 Mar 2021 06:54:54 -0500 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 0201F3605E2; Fri, 5 Mar 2021 12:54:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1614945292; bh=Cke5+mGBgBMEGTtYoQ9kH+pMf+mQOoVFryBhxF5MQMo=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=NcsccEEgbCo9DnrncnBMH6+skh8OoVuT6fj/H8Kbsfu1PRZVpseRa5uw27qitDIYN w33XgJAoQIB01n0OE5XyEA23+33qyoKrpkO/IIhih77dJHyrub4XWXpv2k2XNgexz3 EaY2iVIPvaJSdgKCeCyhFMEANmomLwKjZYSRbsR0= Date: Fri, 5 Mar 2021 12:54:42 +0100 From: "pelzflorian (Florian Pelz)" To: 46807@debbugs.gnu.org Subject: Re: bug#46807: [website] return 404 with HTTP header 'Accept-Language: zh-CN, zh' Message-ID: <20210305115333.prvjomh2lre7rt5k@pelzflorian.localdomain> References: <87im6btcfw.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="xchv4mmsgprrdcjj" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87im6btcfw.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46807 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , Tobias Geerinckx-Rice , Julien Lepiller X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --xchv4mmsgprrdcjj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello all, On Mon, Mar 01, 2021 at 11:06:59AM +0100, Ludovic Courtès wrote: > Florian, could it be that we’re not normalizing language tags > appropriately? Does that ring a bell? The attached patch to maintenance.git fixes the remaining minor issue: Now Accept-Language language codes get normalized, zh to zh-CN, so web browsers requesting any kind of Chinese get the website in mainland Chinese. (This is a minor issue. The only valid URL is /zh-CN/ since my last patch to guix-artwork because I don’t know how to rewrite/redirect URLs in nginx.) The patch was tested on a berlin VM. There is no copyright header in maintenance.git’s hydra/nginx/berlin.scm so I did not add a copyright. I hereby license the patch CC0 . Shall I just push? A reconfigure of berlin will be necessary but is not urgent. Regards, Florian --xchv4mmsgprrdcjj Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-nginx-berlin-Normalize-Accept-Language-language-code.patch" From: Florian Pelz Date: Thu, 4 Mar 2021 20:29:27 +0100 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [PATCH] nginx: berlin: Normalize Accept-Language language code zh to zh-CN. Now web browsers requesting any kind of Chinese get the website in mainland Chinese. zh, zh-Hans, zh-Hans-CN all are synonymous with zh-CN now. * hydra/nginx/berlin.scm (accept-languages): New procedure. (%extra-content): Normalize $lang variable with it. --- hydra/nginx/berlin.scm | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/hydra/nginx/berlin.scm b/hydra/nginx/berlin.scm index 85aaf38..4b9d297 100644 --- a/hydra/nginx/berlin.scm +++ b/hydra/nginx/berlin.scm @@ -995,12 +995,37 @@ PUBLISH-URL." (uri "~ /(.*)") (body (list "return 301 $scheme://guixwl.org/$1;")))))))) +(define (accept-languages language-lists) + "Returns nginx configuration code to set up the $lang variable +according to the Accept-Language header in the HTTP request. The +requesting user agent will be served the files at /$lang/some/url. +Each list in LANGUAGE-LISTS starts with the $lang and is followed by +synonymous IETF language tags that should be mapped to the same $lang." + (define (language-mappings language-list) + (define (language-mapping language) + (string-join (list " " language (car language-list) ";"))) + (string-join (map language-mapping language-list) "\n")) + + (let ((directives + `(,(string-join + `("set_from_accept_language $lang_unmapped" + ,@(map string-join language-lists) + ";")) + "map $lang_unmapped $lang {" + ,@(map language-mappings language-lists) + "}"))) + (string-join directives "\n"))) + (define %extra-content (list "default_type application/octet-stream;" "sendfile on;" - "set_from_accept_language $lang en de es fr zh-CN;" + (accept-languages '(("en") + ("de") + ("es") + ("fr") + ("zh-CN" "zh" "zh-Hans" "zh-Hans-CN"))) ;; Maximum chunk size to send. Partly this is a workaround for ;; , but also the nginx docs mention that -- 2.30.1 --xchv4mmsgprrdcjj-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 05 11:10:21 2021 Received: (at 46807) by debbugs.gnu.org; 5 Mar 2021 16:10:21 +0000 Received: from localhost ([127.0.0.1]:35237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lID1w-0005Er-8W for submit@debbugs.gnu.org; Fri, 05 Mar 2021 11:10:21 -0500 Received: from m13102.mail.163.com ([220.181.13.102]:40266) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lI7Iq-0001nV-Fw for 46807@debbugs.gnu.org; Fri, 05 Mar 2021 05:03:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=RJ8Fc ym0JUyX4gnZTMSVvw6xZSLafI3cukzid1sHPZ8=; b=X7UNP0fh+2iRZ2cRQ7KOr fTj9vQQfr/gTweYUFrjql93ZXPc78z0paJzbpJ0d6Dym8wCI0NLUr21YTBVzhvIf fT4vpoubWFD0BULvG0+y+wJMPkzelv+rUm4O2GloluMAHeTkBfRVAOeI4tSpX8sZ wHK0FTNsgnmbmAt82cNLHQ= Received: from ylc991$163.com ( [1.81.215.218] ) by ajax-webmail-wmsvr102 (Coremail) ; Fri, 5 Mar 2021 18:03:18 +0800 (CST) X-Originating-IP: [1.81.215.218] Date: Fri, 5 Mar 2021 18:03:18 +0800 (CST) From: YLC To: 46807@debbugs.gnu.org Subject: Re: bug#46807: [website] return 404 with HTTP header 'Accept-Language: zh-CN, zh' X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20210104(ab8c30b6) Copyright (c) 2002-2021 www.mailtech.cn 163com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=GBK MIME-Version: 1.0 Message-ID: <3e7d57a0.5263.17801d76b44.Coremail.ylc991@163.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: ZsGowAD3_fnnAUJggd76AA--.18221W X-CM-SenderInfo: 51ofmmqr6rljoofrz/xtbB8QdMhl2MZJxo6AAAsV X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 46807 X-Mailman-Approved-At: Fri, 05 Mar 2021 11:10:18 -0500 Cc: julien@lepiller.eu, me@tobias.gr, ludo@gnu.org, pelzflorian@pelzflorian.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Thank you for your help! Everything goes fine now. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 08 08:27:38 2021 Received: (at 46807) by debbugs.gnu.org; 8 Mar 2021 13:27:38 +0000 Received: from localhost ([127.0.0.1]:42366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJFv8-0001av-AY for submit@debbugs.gnu.org; Mon, 08 Mar 2021 08:27:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJFv6-0001ai-LN for 46807@debbugs.gnu.org; Mon, 08 Mar 2021 08:27:37 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46905) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJFuz-0007di-IU; Mon, 08 Mar 2021 08:27:29 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41002 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lJFux-0005Pg-Ja; Mon, 08 Mar 2021 08:27:28 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "pelzflorian (Florian Pelz)" Subject: Re: bug#46807: [website] return 404 with HTTP header 'Accept-Language: zh-CN, zh' References: <87im6btcfw.fsf@gnu.org> <20210305115333.prvjomh2lre7rt5k@pelzflorian.localdomain> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 18 =?utf-8?Q?Vent=C3=B4se?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 08 Mar 2021 14:27:26 +0100 In-Reply-To: <20210305115333.prvjomh2lre7rt5k@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Fri, 5 Mar 2021 12:54:42 +0100") Message-ID: <87h7llg4ht.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46807 Cc: Julien Lepiller , Tobias Geerinckx-Rice , 46807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, "pelzflorian (Florian Pelz)" skribis: > The attached patch to maintenance.git fixes the remaining minor issue: > Now Accept-Language language codes get normalized, zh to zh-CN, so web > browsers requesting any kind of Chinese get the website in mainland > Chinese. (This is a minor issue. The only valid URL is /zh-CN/ since > my last patch to guix-artwork because I don=E2=80=99t know how to > rewrite/redirect URLs in nginx.) > > The patch was tested on a berlin VM. Yay! > There is no copyright header in maintenance.git=E2=80=99s > hydra/nginx/berlin.scm so I did not add a copyright. I hereby license > the patch CC0 > . Good point; I guess it was meant to be GPLv3+ like the rest, but thanks for clarifying. > Shall I just push? A reconfigure of berlin will be necessary but is > not urgent. Yes, sounds good! We=E2=80=99ll reconfigure sooner or later, just ping if you don=E2=80=99t s= ee it happen within two weeks or so. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 10 19:02:03 2021 Received: (at 46807-done) by debbugs.gnu.org; 11 Mar 2021 00:02:03 +0000 Received: from localhost ([127.0.0.1]:52242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK8mB-0006Gw-9D for submit@debbugs.gnu.org; Wed, 10 Mar 2021 19:02:03 -0500 Received: from pelzflorian.de ([5.45.111.108]:43190 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lK8m9-0006GW-8g for 46807-done@debbugs.gnu.org; Wed, 10 Mar 2021 19:02:02 -0500 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 1C05F36063C for <46807-done@debbugs.gnu.org>; Thu, 11 Mar 2021 01:01:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1615420920; bh=/Y7QErJbNvsmhLZWAr5rr/ie7IRWK3ki7BOvsi8PkK4=; h=Date:From:To:Subject:References:In-Reply-To; b=QK7JoSeEMYEtsPfVAz29BKiX86znhZiUmcce4cPJ3owSw9MILh+OauDwuwOKrNRPr DHtacZhuVDNI9Svs6Q1aTOZzr2FcYQQwTf4nWqA78YjMqjz3coB0j34lZvhmQREr2r 2ibdGtjlwIc61ExjhY5H71B6+AjQUP5uTp+IqQ8I= Date: Thu, 11 Mar 2021 01:01:50 +0100 From: "pelzflorian (Florian Pelz)" To: 46807-done@debbugs.gnu.org Subject: Re: bug#46807: [website] return 404 with HTTP header 'Accept-Language: zh-CN, zh' Message-ID: <20210311000150.cymvv2cdsaadyzep@pelzflorian.localdomain> References: <87im6btcfw.fsf@gnu.org> <20210305115333.prvjomh2lre7rt5k@pelzflorian.localdomain> <87h7llg4ht.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87h7llg4ht.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46807-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Pushed to maintenance.git as 82b075685b6089c7f98acb0993c003936d833776. Closing. Thank you all! From unknown Sat Aug 09 13:00:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 08 Apr 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator