From unknown Wed Jun 18 22:58:25 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#68624 <68624@debbugs.gnu.org> To: bug#68624 <68624@debbugs.gnu.org> Subject: Status: [PATCH] Decode errno for encoding errors. Reply-To: bug#68624 <68624@debbugs.gnu.org> Date: Thu, 19 Jun 2025 05:58:25 +0000 retitle 68624 [PATCH] Decode errno for encoding errors. reassign 68624 guile submitter 68624 Felix Lechner severity 68624 wishlist tag 68624 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 20 22:45:54 2024 Received: (at submit) by debbugs.gnu.org; 21 Jan 2024 03:45:54 +0000 Received: from localhost ([127.0.0.1]:36254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rROmP-00082m-N0 for submit@debbugs.gnu.org; Sat, 20 Jan 2024 22:45:54 -0500 Received: from lists.gnu.org ([2001:470:142::17]:45226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rROmK-00082S-EC for submit@debbugs.gnu.org; Sat, 20 Jan 2024 22:45:52 -0500 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 1rROmA-0000dY-6A for bug-guile@gnu.org; Sat, 20 Jan 2024 22:45:38 -0500 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rROm7-00046f-Hb for bug-guile@gnu.org; Sat, 20 Jan 2024 22:45:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=dZFAygPCV4C454f Hi8VCVZTpqXlJHvtPHrawX/Vkhlo=; h=date:subject:cc:to:from; d=lease-up.com; b=iziunukq8MkwUZiWcoCwcjH3R0Es5SbywywGNK8+kqQsFnocLqCL x/QG6vKVf44p6Us6RhJnAJgbaZn2z/zmtdRjKfq7YcMrqBE/Cv/oTaqN2aDceV2446gVOS FKLEF5CJS+0tVh9w9tBKBZDZGZBLToLedaW4IBs4bMMT+kg6Y= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id c8d69100 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 21 Jan 2024 03:45:31 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 6d86577a; Sun, 21 Jan 2024 03:45:30 +0000 (UTC) From: Felix Lechner To: bug-guile@gnu.org Subject: [PATCH] Decode errno for encoding errors. Date: Sat, 20 Jan 2024 19:38:26 -0800 Message-ID: <20240121034401.17992-2-felix.lechner@lease-up.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@us-core.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) 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: * libguile/strings.c (scm_encoding_error): Decode errno. --- Hi, Even experienced users do not memorize errno values. [1][2] Why not decode them as a courtesy? Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=felix.lechner%40us-core.com; ip=2001%3A470%3A142%3A%3A17; r=debbugs.gnu.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: submit Cc: Felix Lechner 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.2 (/) * libguile/strings.c (scm_encoding_error): Decode errno. --- Hi, Even experienced users do not memorize errno values. [1][2] Why not decode them as a courtesy? Kind regards Felix Lechner [1] https://debbugs.gnu.org/62590 [2] https://debbugs.gnu.org/59510 libguile/strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libguile/strings.c b/libguile/strings.c index 5eebb3300..ba69bd65e 100644 --- a/libguile/strings.c +++ b/libguile/strings.c @@ -1468,7 +1468,7 @@ scm_encoding_error (const char *subr, int err, const char *message, scm_throw (scm_encoding_error_key, scm_list_n (scm_from_latin1_string (subr), scm_from_latin1_string (message), - scm_from_int (err), + scm_strerror (err), port, chr, SCM_UNDEFINED)); } base-commit: d8df317bafcdd9fcfebb636433c4871f2fab28b2 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 20 22:47:48 2024 Received: (at control) by debbugs.gnu.org; 21 Jan 2024 03:47:49 +0000 Received: from localhost ([127.0.0.1]:36259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rROoG-000878-Ev for submit@debbugs.gnu.org; Sat, 20 Jan 2024 22:47:48 -0500 Received: from sail-ipv4.us-core.com ([208.82.101.137]:34382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rROoE-00086m-2U for control@debbugs.gnu.org; Sat, 20 Jan 2024 22:47:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=mv9etAY6M/9jbf8 7fdS3+rDbpmhCb2KXnbSMAKcVpBY=; h=date:cc:to:from; d=lease-up.com; b=eS oQhQ2AUyaFA1fvO51oEcZ6GHJK5Tn4A1uh6UIr+TFspBpW2maPnmcuh7rM0dQMG7eomvFV 1tvo/kWb5feTHTTDe3FAkPzKElbXzGdT0DuiEw2FS+hKsToe2dgJ+qtXsMGyXKkIS9K510 nii8bOFfa/YHWY624nECTbMOI15wE= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 402cdeaf (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for ; Sun, 21 Jan 2024 03:47:41 +0000 (UTC) From: Felix Lechner To: control@debbugs.gnu.org Date: Sat, 20 Jan 2024 19:47:41 -0800 Message-ID: <875xznz6si.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.0 (++) 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: severity 68624 wishlist tags 68624 + patch thanks Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 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 (+) severity 68624 wishlist tags 68624 + patch thanks