From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: altermo31 via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73985: fix: charset.max_char may be used before being set Date: Thu, 24 Oct 2024 11:46:17 +0000 Message-ID: Reply-To: altermo31 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="b1=_ZGwg7xAQGhHY2uGzYs1KbVimueoWtxvfqMEkzW0xdw" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23730"; mail-complaints-to="usenet@ciao.gmane.io" To: 73985@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 24 15:03:10 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t3xUa-0005ww-1N for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Oct 2024 15:03:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3xUA-0005qJ-Er; Thu, 24 Oct 2024 09:02:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3xU1-0005ps-D5 for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 09:02:34 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3xU0-0003oI-9M for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 09:02:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:From:Date:To:Subject; bh=gaC0BhKIghCAOt/PUB5mjNTXsfPnnHG8525I7i7i51k=; b=LpGnS5bzk/piSAg50oQ2tj147dc+ORzHbeHtdballqt+aQIkLZK0/6MX+XEkJfS/J3q0ribNBHIi13juaB0Vzu4GnY8u+Dc4XS8HkV6wnPSeKOq+rldrOdo5XjuckwEYDkrAcgjOTQ6+JL8lLbqeMhyhcxO63VfKuv8fOAvY8hWFL9OIiGl9CqMr1yUk5cZyKDa3pwx2To0VXkVAUgf4qv83BUAb5ct3LhnrBa/0ZFEUZJnkVm+SMOQg5bpqednR3d21aLpiwh+vf+0/MqU7lmFcFAthzEZwY9tTcPKeT+nxVCPwS/dHef1RH028B21z7fioSUvEGEX90Tyw3oiSew==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3xUU-0002FD-QT for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 09:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: altermo31 Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Oct 2024 13:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73985 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.17297749538585 (code B ref -1); Thu, 24 Oct 2024 13:03:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Oct 2024 13:02:33 +0000 Original-Received: from localhost ([127.0.0.1]:34054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3xU0-0002EN-AX for submit@debbugs.gnu.org; Thu, 24 Oct 2024 09:02:32 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3wJ3-00079s-4a for submit@debbugs.gnu.org; Thu, 24 Oct 2024 07:47:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3wIU-0002fK-7w for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 07:46:34 -0400 Original-Received: from mail-40138.protonmail.ch ([185.70.40.138]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3wIP-000232-PW for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2024 07:46:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=e23a342ew5amvgyixj4db4r5dy.protonmail; t=1729770382; x=1730029582; bh=gaC0BhKIghCAOt/PUB5mjNTXsfPnnHG8525I7i7i51k=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=LD9YkrNuZs1ZdOvG7wsHPQEvZ+C6YRWRpXd3c0uTpe9bOfVg3pJq7gmyUlEa3lGvr AI1wbx7bRnHztHAv0zRFha6Ki+wEgGJhPTo252eZfGrWZQUA9fpQL6dkXtTSvXnIKz egsFV9y43c9L538ulBkwEMQbhVtZXXlV+lvZ+s4sdNV5KabOWr2RlRF95vKT4yiWRO 1Ckgp3hToDb54sTPDoMuYDKTvyTakJv+e2GXfvtO/Ljdn1cgj9ks4pvc4uOq4CiJYG NEbKqGNj6eT2gwC+hspNse9wJ1yl2iVW+rtCrJYNIXMfEReKQnWkJ5mSgJ83SFwYez s+D0SU0Vopt8Q== Feedback-ID: 69067202:user:proton X-Pm-Message-ID: a3b0271cfc9ef68f721d3b1dc3779e058cfb7b50 Received-SPF: pass client-ip=185.70.40.138; envelope-from=altermo31@proton.me; helo=mail-40138.protonmail.ch 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 24 Oct 2024 09:02:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294186 Archived-At: --b1=_ZGwg7xAQGhHY2uGzYs1KbVimueoWtxvfqMEkzW0xdw Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Problem: If the value to be set to charset.max_char is invalid, an error occurs, but= the error uses the yet unset charset.max_char. Solution: Use the value that charset.max_char would be set to if the value wasn't inv= alid. --b1=_ZGwg7xAQGhHY2uGzYs1KbVimueoWtxvfqMEkzW0xdw Content-Type: text/x-patch; name=0001-fix-charset.max_char-may-be-used-before-being-set.patch Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=0001-fix-charset.max_char-may-be-used-before-being-set.patch RnJvbSA2NGU5NTU3YzVmNmFlNDQxNmExYTEyZmQ2ZjY4ZjBkMTk5MzFiYjk5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBhbHRlcm1vIDwx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