From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 16:42:18 2019 Received: (at submit) by debbugs.gnu.org; 17 Jun 2019 20:42:18 +0000 Received: from localhost ([127.0.0.1]:43372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcySH-0004Io-QT for submit@debbugs.gnu.org; Mon, 17 Jun 2019 16:42:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:56086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcySE-0004Id-Bc for submit@debbugs.gnu.org; Mon, 17 Jun 2019 16:42:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39022) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcySD-00005n-Cv for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2019 16:42:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcySC-00051W-4d for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2019 16:42:13 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:45531) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hcySB-0004Zb-Qx for bug-gnu-emacs@gnu.org; Mon, 17 Jun 2019 16:42:12 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45SNRX72VHz1rFrj for ; Mon, 17 Jun 2019 22:41:44 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45SNRX6yLWz1qqkL for ; Mon, 17 Jun 2019 22:41:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id y184FNb7Khya for ; Mon, 17 Jun 2019 22:41:44 +0200 (CEST) X-Auth-Info: 3wBN/1i/FEggqEpWlKgGYfRzfikQaaTNvwUos4yJyaDUFM5ZTclDOPHmVYpxB6m7 Received: from igel.home (ppp-46-244-166-202.dynamic.mnet-online.de [46.244.166.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA for ; Mon, 17 Jun 2019 22:41:44 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id DFDCD2C1101; Mon, 17 Jun 2019 22:41:41 +0200 (CEST) From: Andreas Schwab To: bug-gnu-emacs@gnu.org Subject: url-mime-charset-string is excessively long X-Yow: I predict that by 1993 everyone will live in and around LAS VEGAS and wear BEATLE HAIRCUTS! Date: Mon, 17 Jun 2019 22:41:41 +0200 Message-ID: <87r27s3px6.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.18.0.9 X-Spam-Score: -1.1 (-) 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.1 (--) The string generated by url-mime-charset-string is 1201 characters long. That is longer than what some web servers accept as the length of a request header (for the Accept-charset header sent by url-http-create-request). Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 08 21:40:54 2019 Received: (at 36268) by debbugs.gnu.org; 9 Jul 2019 01:40:54 +0000 Received: from localhost ([127.0.0.1]:60062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkf7m-0004kd-Co for submit@debbugs.gnu.org; Mon, 08 Jul 2019 21:40:54 -0400 Received: from quimby.gnus.org ([80.91.231.51]:37284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkf7j-0004kU-OP for 36268@debbugs.gnu.org; Mon, 08 Jul 2019 21:40:52 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkf7g-0007i9-38; Tue, 09 Jul 2019 03:40:50 +0200 From: Lars Ingebrigtsen To: Andreas Schwab Subject: Re: bug#36268: url-mime-charset-string is excessively long References: <87r27s3px6.fsf@igel.home> Date: Tue, 09 Jul 2019 03:40:47 +0200 In-Reply-To: <87r27s3px6.fsf@igel.home> (Andreas Schwab's message of "Mon, 17 Jun 2019 22:41:41 +0200") Message-ID: <87r270f0io.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Andreas Schwab writes: > The string generated by url-mime-charset-string is 1201 characters long. > That is longer than what some web servers accept as the length of a > request header (for the Accept-charset header sent by [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36268 Cc: 36268@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 (-) Andreas Schwab writes: > The string generated by url-mime-charset-string is 1201 characters long. > That is longer than what some web servers accept as the length of a > request header (for the Accept-charset header sent by > url-http-create-request). My url-mime-charset-string is nil. And this all seems really confused: (defvar url-mime-charset-string nil "String to send in the Accept-charset: field in HTTP requests. The MIME charset corresponding to the most preferred coding system is given priority 1 and the rest are given priority 0.5.") (defun url-set-mime-charset-string () (setq url-mime-charset-string (url-mime-charset-string))) ;; Regenerate if the language environment changes. (add-hook 'set-language-environment-hook 'url-set-mime-charset-string) So... if you change the language environment after you've loaded url-vars.el, then you will suddenly have a value in url-mime-charset-string? Let's try! url-mime-charset-string =3D> nil current-language-environment =3D> "English" (set-language-environment "English") =3D> t url-mime-charset-string =3D> "utf-8;q=3D1, gb2312;q=3D0.5, iso-8859-1;q=3D0.5, big5;q=3D0.5, iso-2022-jp= ;q=3D0.5, shift_jis;q=3D0.5, euc-tw;q=3D0.5, euc-jp;q=3D0.5, euc-jis-2004;q= =3D0.5, euc-kr;q=3D0.5, us-ascii;q=3D0.5, utf-7;q=3D0.5, hz-gb-2312;q=3D0.5= , big5-hkscs;q=3D0.5, gbk;q=3D0.5, gb18030;q=3D0.5, iso-8859-5;q=3D0.5, koi= 8-r;q=3D0.5, koi8-u;q=3D0.5, cp866;q=3D0.5, koi8-t;q=3D0.5, windows-1251;q= =3D0.5, cp855;q=3D0.5, iso-8859-2;q=3D0.5, iso-8859-3;q=3D0.5, iso-8859-4;q= =3D0.5, iso-8859-9;q=3D0.5, iso-8859-10;q=3D0.5, iso-8859-13;q=3D0.5, iso-8= 859-14;q=3D0.5, iso-8859-15;q=3D0.5, windows-1250;q=3D0.5, windows-1252;q= =3D0.5, windows-1254;q=3D0.5, windows-1257;q=3D0.5, cp775;q=3D0.5, cp850;q= =3D0.5, cp852;q=3D0.5, cp857;q=3D0.5, cp858;q=3D0.5, cp860;q=3D0.5, cp861;q= =3D0.5, cp863;q=3D0.5, cp865;q=3D0.5, cp437;q=3D0.5, macintosh;q=3D0.5, nex= t;q=3D0.5, hp-roman8;q=3D0.5, adobe-standard-encoding;q=3D0.5, iso-8859-16;= q=3D0.5, iso-8859-7;q=3D0.5, windows-1253;q=3D0.5, cp737;q=3D0.5, cp851;q= =3D0.5, cp869;q=3D0.5, iso-8859-8;q=3D0.5, windows-1255;q=3D0.5, cp862;q=3D= 0.5, iso-2022-jp-2004;q=3D0.5, cp874;q=3D0.5, iso-8859-11;q=3D0.5, viscii;q= =3D0.5, windows-1258;q=3D0.5, iso-8859-6;q=3D0.5, windows-1256;q=3D0.5, iso= -2022-cn;q=3D0.5, iso-2022-cn-ext;q=3D0.5, iso-2022-jp-2;q=3D0.5, iso-2022-= kr;q=3D0.5, utf-16le;q=3D0.5, utf-16be;q=3D0.5, utf-16;q=3D0.5, x-ctext;q= =3D0.5" That is... a very strange interface. And nobody will never, ever want to have that as an URL header. I'm removing the set-language-environment-hook thing. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 08 21:44:40 2019 Received: (at control) by debbugs.gnu.org; 9 Jul 2019 01:44:40 +0000 Received: from localhost ([127.0.0.1]:60066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkfBQ-0004qF-04 for submit@debbugs.gnu.org; Mon, 08 Jul 2019 21:44:40 -0400 Received: from quimby.gnus.org ([80.91.231.51]:37784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hkfBO-0004q8-Dg for control@debbugs.gnu.org; Mon, 08 Jul 2019 21:44:38 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hkfBL-0007mf-Rr for control@debbugs.gnu.org; Tue, 09 Jul 2019 03:44:37 +0200 Date: Tue, 09 Jul 2019 03:44:35 +0200 Message-Id: <87pnmkf0cc.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #36268 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: tags 36268 fixed close 36268 27.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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 (-) tags 36268 fixed close 36268 27.1 quit From unknown Sun Jun 15 08:47:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 06 Aug 2019 11:24:06 +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