From unknown Mon Aug 18 19:35:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79231: sends non-printable characters to the terminal in error message Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Wed, 13 Aug 2025 14:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 79231 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: 79231@debbugs.gnu.org X-Debbugs-Original-To: bug-gzip@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.175509664917461 (code B ref -1); Wed, 13 Aug 2025 14:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Aug 2025 14:50:49 +0000 Received: from localhost ([127.0.0.1]:58102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1umCoT-0004XZ-6b for submit@debbugs.gnu.org; Wed, 13 Aug 2025 10:50:49 -0400 Received: from lists.gnu.org ([2001:470:142::17]:35764) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1umCoN-0004WO-3n for submit@debbugs.gnu.org; Wed, 13 Aug 2025 10:50:45 -0400 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 1umCo4-0007TM-Cf for bug-gzip@gnu.org; Wed, 13 Aug 2025 10:50:24 -0400 Received: from joooj.vinc17.net ([2001:4b99:1:3:216:3eff:fe20:ac98]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1umCo1-0000uf-Iz for bug-gzip@gnu.org; Wed, 13 Aug 2025 10:50:23 -0400 Received: from smtp-qaa.vinc17.net (unknown [IPv6:2a01:cb19:952d:d700:2843:628d:3ffe:26bb]) by joooj.vinc17.net (Postfix) with ESMTPSA id 0D7AB2AA; Wed, 13 Aug 2025 16:50:01 +0200 (CEST) Received: by qaa.vinc17.org (Postfix, from userid 1000) id 6B657CA25EA; Wed, 13 Aug 2025 16:49:59 +0200 (CEST) Date: Wed, 13 Aug 2025 16:49:59 +0200 From: Vincent Lefevre Message-ID: <20250813144959.GA6936@qaa.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.13+86 (bb2064ae) vl-169878 (2025-02-08) Received-SPF: pass client-ip=2001:4b99:1:3:216:3eff:fe20:ac98; envelope-from=vincent@vinc17.net; helo=joooj.vinc17.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) 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 (-) gzip can send non-printable characters to the terminal in its error message. This is bad because escape sequences and control characters can have unpredictable consequences in the terminal. For instance, $ touch "$(printf "file\e[H\e[c\n\b")" $ gunzip file* makes xterm crash with reverseWrap enabled. Note: The end user is not necessary the cause of such of file name, which may come from a downloaded archive or from a bug in some software. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon) From unknown Mon Aug 18 19:35:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79231: sends non-printable characters to the terminal in error message Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Wed, 13 Aug 2025 16:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79231 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: Vincent Lefevre Cc: 79231@debbugs.gnu.org Received: via spool by 79231-submit@debbugs.gnu.org id=B79231.1755101318357 (code B ref 79231); Wed, 13 Aug 2025 16:09:01 +0000 Received: (at 79231) by debbugs.gnu.org; 13 Aug 2025 16:08:38 +0000 Received: from localhost ([127.0.0.1]:58325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1umE1l-00005h-Sy for submit@debbugs.gnu.org; Wed, 13 Aug 2025 12:08:38 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:55024) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1umE1i-00005J-Dj for 79231@debbugs.gnu.org; Wed, 13 Aug 2025 12:08:35 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 4288E3C010873; Wed, 13 Aug 2025 09:08:27 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id ma2zE7FGhliP; Wed, 13 Aug 2025 09:08:27 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 1B97A3C01086C; Wed, 13 Aug 2025 09:08:27 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 1B97A3C01086C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1755101307; bh=RuELcamHRGg1AnMGjVKlO6bteiTeG/jbbaZNrkhQ0b0=; h=Message-ID:Date:MIME-Version:To:From; b=jX3c2ljx4gXGGEjlyvNOSRoB9RFrVVi9xtxWknaWanMQ/UcHyabBbLeJ55PPJ9DM6 9N7r90GfmiG7irCfwiSc/i2f0b3YGEJksMk8vLznaQGu/L2/0NnqQU7sNqQg6RTW6j /8JdcSz6aI+q/FhaAc/6kZyHSrSNqrE03B53DlxAcIym41zx7F4fYlufaMLtGSOW+o hnwchorE0i6vATRzW+FandIAThgGZoulFAxgOzBLF4d4UVW1R1Lh9oqvZTshiyN4PT lo9QbHHwUpSHVRWfj+Wh+zBLE43SLRZ0VUapp1yQ74M17l23KIU7CmGR4CP/Kvk2BT 9JH9mwYnOF4xQ== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id eijLmKn0jSfH; Wed, 13 Aug 2025 09:08:27 -0700 (PDT) Received: from [10.0.0.57] (c-73-67-192-73.hsd1.or.comcast.net [73.67.192.73]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id D708D3C010860; Wed, 13 Aug 2025 09:08:26 -0700 (PDT) Message-ID: Date: Wed, 13 Aug 2025 09:08:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <20250813144959.GA6936@qaa.vinc17.org> Content-Language: en-US From: Paul Eggert In-Reply-To: <20250813144959.GA6936@qaa.vinc17.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) 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 8/13/25 07:49, Vincent Lefevre wrote: > $ touch "$(printf "file\e[H\e[c\n\b")" > $ gunzip file* Not sure it's gzip's job to sanitize file names that the user gave it. Pretty much every much program in the universe will output file names as-is, if the user tells it the file name explicitly. Why should gzip be an exception? From unknown Mon Aug 18 19:35:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79231: sends non-printable characters to the terminal in error message Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Wed, 13 Aug 2025 16:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79231 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: 79231@debbugs.gnu.org Received: via spool by 79231-submit@debbugs.gnu.org id=B79231.17551018142181 (code B ref 79231); Wed, 13 Aug 2025 16:17:02 +0000 Received: (at 79231) by debbugs.gnu.org; 13 Aug 2025 16:16:54 +0000 Received: from localhost ([127.0.0.1]:58353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1umE9m-0000Z5-B5 for submit@debbugs.gnu.org; Wed, 13 Aug 2025 12:16:54 -0400 Received: from joooj.vinc17.net ([2001:4b99:1:3:216:3eff:fe20:ac98]:50972) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1umE9h-0000Yo-Rw for 79231@debbugs.gnu.org; Wed, 13 Aug 2025 12:16:50 -0400 Received: from smtp-qaa.vinc17.net (unknown [IPv6:2a01:cb19:952d:d700:2843:628d:3ffe:26bb]) by joooj.vinc17.net (Postfix) with ESMTPSA id 2C07D2AA; Wed, 13 Aug 2025 18:16:46 +0200 (CEST) Received: by qaa.vinc17.org (Postfix, from userid 1000) id 28FCDCA25EB; Wed, 13 Aug 2025 18:16:43 +0200 (CEST) Date: Wed, 13 Aug 2025 18:16:43 +0200 From: Vincent Lefevre Message-ID: <20250813161643.GC6936@qaa.vinc17.org> References: <20250813144959.GA6936@qaa.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250813144959.GA6936@qaa.vinc17.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.13+86 (bb2064ae) vl-169878 (2025-02-08) X-Spam-Score: 0.0 (/) 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 2025-08-13 16:49:59 +0200, Vincent Lefevre wrote: > gzip can send non-printable characters to the terminal in its error > message. This is bad because escape sequences and control characters > can have unpredictable consequences in the terminal. I forgot to say: this occurs with * gzip 1.13 in Debian 13 (trixie); * gzip 1.14 under Termux/Android. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon) From unknown Mon Aug 18 19:35:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79231: sends non-printable characters to the terminal in error message Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Wed, 13 Aug 2025 16:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79231 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: Paul Eggert Cc: 79231@debbugs.gnu.org Received: via spool by 79231-submit@debbugs.gnu.org id=B79231.17551031696401 (code B ref 79231); Wed, 13 Aug 2025 16:40:02 +0000 Received: (at 79231) by debbugs.gnu.org; 13 Aug 2025 16:39:29 +0000 Received: from localhost ([127.0.0.1]:58375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1umEVc-0001fB-OV for submit@debbugs.gnu.org; Wed, 13 Aug 2025 12:39:29 -0400 Received: from joooj.vinc17.net ([2001:4b99:1:3:216:3eff:fe20:ac98]:53220) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1umEVW-0001es-Uo for 79231@debbugs.gnu.org; Wed, 13 Aug 2025 12:39:23 -0400 Received: from smtp-qaa.vinc17.net (lfbn-tou-1-1284-42.w90-89.abo.wanadoo.fr [90.89.100.42]) by joooj.vinc17.net (Postfix) with ESMTPSA id 232AF2AA; Wed, 13 Aug 2025 18:39:18 +0200 (CEST) Received: by qaa.vinc17.org (Postfix, from userid 1000) id 7BD65CA25EB; Wed, 13 Aug 2025 18:39:17 +0200 (CEST) Date: Wed, 13 Aug 2025 18:39:17 +0200 From: Vincent Lefevre Message-ID: <20250813163917.GD6936@qaa.vinc17.org> References: <20250813144959.GA6936@qaa.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.13+86 (bb2064ae) vl-169878 (2025-02-08) X-Spam-Score: 0.0 (/) 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 2025-08-13 09:08:26 -0700, Paul Eggert wrote: > On 8/13/25 07:49, Vincent Lefevre wrote: > > $ touch "$(printf "file\e[H\e[c\n\b")" > > $ gunzip file* > > Not sure it's gzip's job to sanitize file names that the user gave it. > Pretty much every much program in the universe will output file names as-is, Many programs quote non-printable characters, e.g. those from GNU Coreutils, but also xz (XZ Utils), diff from GNU diffutils, and find from GNU findutils (I was the one who reported the issue for find in 2005[*]). [*] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=311384 > if the user tells it the file name explicitly. Well, it is given from the shell, not by the user explicitly. But the shell cannot sanitize the file name; otherwise gzip would not find the file. So, this would be up to the file system to prevent the creation of such file names (I don't know what POSIX says on this point, but POSIX might also require the opposite). > Why should gzip be an exception? Not really an exception (see above). -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon) From unknown Mon Aug 18 19:35:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79231: sends non-printable characters to the terminal in error message Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Wed, 13 Aug 2025 18:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79231 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: Vincent Lefevre Cc: 79231@debbugs.gnu.org Received: via spool by 79231-submit@debbugs.gnu.org id=B79231.175511086331658 (code B ref 79231); Wed, 13 Aug 2025 18:48:01 +0000 Received: (at 79231) by debbugs.gnu.org; 13 Aug 2025 18:47:43 +0000 Received: from localhost ([127.0.0.1]:58634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1umGVj-0008EX-1Y for submit@debbugs.gnu.org; Wed, 13 Aug 2025 14:47:43 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:60230) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1umGVd-0008E9-Io for 79231@debbugs.gnu.org; Wed, 13 Aug 2025 14:47:38 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 8A7B53C010848; Wed, 13 Aug 2025 11:47:30 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id ESfMqn4msunn; Wed, 13 Aug 2025 11:47:30 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 626E03C01085F; Wed, 13 Aug 2025 11:47:30 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 626E03C01085F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1755110850; bh=RWPVkNfmz5cejnaqMoxflDppzbaf1IyB3EFLRbCkuCY=; h=Message-ID:Date:MIME-Version:To:From; b=RaK96gOkQN166XZErbPQLz9b+fvuIXyLShY63MJYUylRad96Ci97yNcZzIe/u818v ubLkQoqBD0UnCLKM/NOntusUB1lWqwI814DdtRzYb2vPRCdslitAxoLO3Yu75lg3Qc +kVg13mlwn0pyESMYpzL5XEdKEchxCquDDhkOd7+YdEXaiDpysTsc1+2HzNEFegLMW 5rnj44KTSq+T4BBio/Qz9IIq2TBi51gCblwxJaix2z2Z1UUbt17TsoOIrLKf3vWj5h z3u2irdt83UWth69lBBJNUwQKcp+Hoq8WpEA5o5mFGatSRJeyVz/1op0USLLPlxgwR BFYgUNqZuHFoA== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id YJnxdOa4lack; Wed, 13 Aug 2025 11:47:30 -0700 (PDT) Received: from [10.0.0.57] (c-73-67-192-73.hsd1.or.comcast.net [73.67.192.73]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 2AB193C010848; Wed, 13 Aug 2025 11:47:30 -0700 (PDT) Message-ID: <143f231c-5e33-43de-a3ee-331af95c60d9@cs.ucla.edu> Date: Wed, 13 Aug 2025 11:47:29 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <20250813144959.GA6936@qaa.vinc17.org> <20250813163917.GD6936@qaa.vinc17.org> Content-Language: en-US From: Paul Eggert In-Reply-To: <20250813163917.GD6936@qaa.vinc17.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) 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 8/13/25 09:39, Vincent Lefevre wrote: > Many programs quote non-printable characters, e.g. those from > GNU Coreutils Oh, thanks, I didn't know that. I see this was added to coreutils several years ago. In that case, patches to do this for gzip would be welcome. From unknown Mon Aug 18 19:35:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79231: sends non-printable characters to the terminal in error message Resent-From: Collin Funk Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Sun, 17 Aug 2025 02:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79231 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: Paul Eggert Cc: Vincent Lefevre , 79231@debbugs.gnu.org Received: via spool by 79231-submit@debbugs.gnu.org id=B79231.17553960886945 (code B ref 79231); Sun, 17 Aug 2025 02:02:01 +0000 Received: (at 79231) by debbugs.gnu.org; 17 Aug 2025 02:01:28 +0000 Received: from localhost ([127.0.0.1]:44271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1unSi6-0001nt-W8 for submit@debbugs.gnu.org; Sat, 16 Aug 2025 22:01:28 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:58703) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1unSi0-0001nS-CG for 79231@debbugs.gnu.org; Sat, 16 Aug 2025 22:01:24 -0400 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-2445806c2ddso26258705ad.1 for <79231@debbugs.gnu.org>; Sat, 16 Aug 2025 19:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755396074; x=1756000874; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=skuRONPvcc7kfRKfi28bPGfSrZEdyd91e9uI/1H0GIo=; b=B9E6ONE+H+HoZzf1Z4oc+PCl783NZsB3LbKSp/dVC2iootOLjQkm+GX31FMMsgOzHc HMYvAXyj7kZ10xP0YBAwrEtp5PfwmN8Fi3anGSEI9IgXzlt0dCpet1weQoQJZm/6zLw8 axBZEs7pPO2CEvuxMxAZEUubxLBgHVPUEGcM01jTpONxknn1RLH+lrgybXR30Ko9p5Oq XWWrDMaPSuUtb9e9LPQb8hWq6wLw1a/v05KBkzeTknDKLfHOOSG2hIf1Vn8KkT9rlngG +V0FePt33SHJw3ovaOWSsyaOjJOqQXQWPU/onV1j7rwbgKG9kywhLmWY36Eeh+4rEsOb TjwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755396074; x=1756000874; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=skuRONPvcc7kfRKfi28bPGfSrZEdyd91e9uI/1H0GIo=; b=HKcbgCiq359+bGRqHUZupB6h8jrJYDhIoGBG7cnc0neOH1Wak2BrUOeUOsPWqMfaZ5 POvqLeqRuQZQF++wn+Ak9e54LemyZL502H3BzzE7AyjqILFQDyarFpzk9KsTevgn+ntj I4XrYIKofY+DISNiWeUSf3UotfF43Y50alJaqjv2VfsR5n9YkXK31ECfmI2n0JdeSqtH Nk/L0dPrrCcbGc5j7pYNSCaSkUiFQudTIS+Sf8xJI1W5O+WAsYls/q9Da2owi3u40XjD WKp5+zYvZEX3A0FXy2BqTrLflgqSEwHL0QTT+EiHtPrGgIUuIikWUczTjb0Ls3Xv6MiL fv4w== X-Forwarded-Encrypted: i=1; AJvYcCWiHh+ygcgO6++SVoRfGQrn5967NZW/id34YnXCef5NB61dLd/fZdgBSvabkCZU8REDYh4/tQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwcwCnrCnE5puJbCfUKPBh9N64WH9Llt1N/Jj0sLZuo2EVJj2Hh hFx1hBLDgghwJXgm+kFCpVgmYEPOLOtydCGF5OpJhHEkToATZqh2zdWsUWNyN8/R X-Gm-Gg: ASbGncv/W4Ky/zfANRmJhvjctdTCAgFSrl/MAsY9HgyqEPfkOpuaD4vGwJXw58V0etd lAJFBBzg2h6iit16CV8uSfxcczl8KhjdaHLLjGBKEIf2y47ZZnusXSZJmyJ2EmQz2gne5tpCGs0 GpmDDIMZLJUmoFmV6S6mD0jTsWxx84QpeEEf8oDXuWtwxznWoCkC3QNjpB2W8R1vuDEMTxzuWLf 7QlnqyTCHS0MiFCZgimKX3cysbdoKTY/lDMIpruadB1DsfIkiJIL7gvBNUKs1IezcvUYZNybuuE kbxU2deimYukMP+2UTCZ87VcOkL2XCPiKAba6t6oQIOW/xKRVN7RmFomvo51jVhmLRbKD//cEc8 0mw== X-Google-Smtp-Source: AGHT+IEwPy5+isIn8phghc8jmVM5CirGGX24xwIl4m/hIM4Jdf2lqTlBX+kZsngrU4B09SnN0ZxLqg== X-Received: by 2002:a17:902:d542:b0:240:2bb6:d4ae with SMTP id d9443c01a7336-2446d889d4amr101110135ad.30.1755396073805; Sat, 16 Aug 2025 19:01:13 -0700 (PDT) Received: from fedora ([2601:646:8081:3770::666]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2446d54f8b9sm45256625ad.130.2025.08.16.19.01.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Aug 2025 19:01:13 -0700 (PDT) From: Collin Funk In-Reply-To: <143f231c-5e33-43de-a3ee-331af95c60d9@cs.ucla.edu> References: <20250813144959.GA6936@qaa.vinc17.org> <20250813163917.GD6936@qaa.vinc17.org> <143f231c-5e33-43de-a3ee-331af95c60d9@cs.ucla.edu> Date: Sat, 16 Aug 2025 19:01:12 -0700 Message-ID: <87jz32g107.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) 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 (/) Paul Eggert writes: > On 8/13/25 09:39, Vincent Lefevre wrote: >> Many programs quote non-printable characters, e.g. those from >> GNU Coreutils > > Oh, thanks, I didn't know that. I see this was added to coreutils > several years ago. In that case, patches to do this for gzip would be > welcome. Is there any reason that gzip doesn't use quote and error from Gnulib? e.g. to avoid dependencies on locale stuff? I'm assuming that it is just because no one has cared enough to add it to gzip, but that feels like the correct solution to this issue. There are some places where it is a bit more work than adding quote/quote_n like this: fprintf(stderr,"%s: %s/%s: pathname too long\n", program_name, dir, entry); Ideally we could get rid of the MAX_PATH_LEN limitation on file names (see GNU Coding Standards [1]) and therefore never have to print this message. But that is more complex than this issue... Collin [1] https://www.gnu.org/prep/standards/standards.html#Semantics From unknown Mon Aug 18 19:35:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79231: sends non-printable characters to the terminal in error message Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Sun, 17 Aug 2025 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79231 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: Collin Funk Cc: Vincent Lefevre , 79231@debbugs.gnu.org Received: via spool by 79231-submit@debbugs.gnu.org id=B79231.175544554213326 (code B ref 79231); Sun, 17 Aug 2025 15:46:01 +0000 Received: (at 79231) by debbugs.gnu.org; 17 Aug 2025 15:45:42 +0000 Received: from localhost ([127.0.0.1]:47304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1unfZm-0003Ss-1g for submit@debbugs.gnu.org; Sun, 17 Aug 2025 11:45:42 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:52480) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1unfZj-0003SX-Hq for 79231@debbugs.gnu.org; Sun, 17 Aug 2025 11:45:40 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 0504B3C0149F2; Sun, 17 Aug 2025 08:45:33 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id 53jwWY3Iv6K2; Sun, 17 Aug 2025 08:45:32 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id D074B3C0149F5; Sun, 17 Aug 2025 08:45:32 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu D074B3C0149F5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1755445532; bh=KYEBR9+Sw5SiS82l9BcxgKNRvQSnpNA/sfuQSsphJPc=; h=Message-ID:Date:MIME-Version:To:From; b=N/DKh4R9OHVygUSUiJ28eEdgfl5u6BEag8xu83f0cw20Z19DOF+AqG/7fvUlSf7M+ 9KXVqKIeXInGsDlevAGSEMM6kghcHXC9sevvFCDhF+b1S1H4D+IY1dxRMmx6Qz3gEF 3CMKncd/fY672940Fu2+g5rIpgcp4YHNYjGOtSv1DExXgXdwkeWKaMeNVaQ7FgMWAS vFj3gCSc8AuwxHQ1cuEZpLcm3S1ckI9fwfjuGQj6w0lsaeopTPXQaSmwZg7KLQoT/7 iA0lCBH/1fr3bfhmXh1bVpN212jl7C2ulsH78kHw80lI2LpUybBdmSr1SM1bJmag6x FJcZYAAFAXpaA== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id IWxiHIDR9RPG; Sun, 17 Aug 2025 08:45:32 -0700 (PDT) Received: from [10.0.0.57] (c-73-67-192-73.hsd1.or.comcast.net [73.67.192.73]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 83F8A3C0149F2; Sun, 17 Aug 2025 08:45:32 -0700 (PDT) Message-ID: <29b34bee-8279-446b-b0b6-53c150ddf78a@cs.ucla.edu> Date: Sun, 17 Aug 2025 08:45:32 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <20250813144959.GA6936@qaa.vinc17.org> <20250813163917.GD6936@qaa.vinc17.org> <143f231c-5e33-43de-a3ee-331af95c60d9@cs.ucla.edu> <87jz32g107.fsf@gmail.com> Content-Language: en-US From: Paul Eggert In-Reply-To: <87jz32g107.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) 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 8/16/25 19:01, Collin Funk wrote: > Is there any reason that gzip doesn't use quote and error from Gnulib? > e.g. to avoid dependencies on locale stuff? Partly that, and partly because it's a symptom of a larger issue: gzip was written in a hurry and is poorly structured and people understandably don't want to mess with it. Decades ago I toyed with the idea of rewriting it from scratch but gave it up as a job not worth doing. From unknown Mon Aug 18 19:35:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79231: sends non-printable characters to the terminal in error message Resent-From: Antonio Diaz Diaz Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Sun, 17 Aug 2025 23:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79231 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: Paul Eggert Cc: Vincent Lefevre , 79231@debbugs.gnu.org, Collin Funk Received: via spool by 79231-submit@debbugs.gnu.org id=B79231.17554734307388 (code B ref 79231); Sun, 17 Aug 2025 23:31:02 +0000 Received: (at 79231) by debbugs.gnu.org; 17 Aug 2025 23:30:30 +0000 Received: from localhost ([127.0.0.1]:48234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1unmpZ-0001v5-Iq for submit@debbugs.gnu.org; Sun, 17 Aug 2025 19:30:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46170) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1unmpL-0001qx-4G for 79231@debbugs.gnu.org; Sun, 17 Aug 2025 19:30:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1unmpC-0005qc-QX; Sun, 17 Aug 2025 19:30:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=In-Reply-To:References:Subject:To:MIME-Version:From: Date; bh=X2eof53PetL9Tug3wRfjezJvZCpk55JwqxjPghwp1Fw=; b=YxltjRskfPnOk00wD4pS JAJIKLNJ7CHKNs6U5TjPfmXIpmC8/tgLKKJdyREgn1iW1MfUEAXN/dz/4cUMJ8CZKSYTJtDgxhQIV jj4I8LWN2kd2ceUym8EAelvDa90zyG5LWW/EYOrBI0X5t3bn7iaOFsyS1oa5VFqgyH54+xnJsjpiO pmNbQSmqixlcoHBtS79O3qUEHAlPTnNN3WXR6GE95aerV2hUDrDZoRFoWMj3RtlFFDf39EmmWj6ib syyiQA7+PwQ8YXJB/BG+/LPa9Ql8xtc+BZ/9TCdcybpvN5rhdwoIQhSoUUP3po9i7wBWSeCzvQ6V4 opvBfAwE3g3zxA==; Message-ID: <68A2665A.2080105@gnu.org> Date: Mon, 18 Aug 2025 01:31:38 +0200 From: Antonio Diaz Diaz User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 MIME-Version: 1.0 References: <20250813144959.GA6936@qaa.vinc17.org> <20250813163917.GD6936@qaa.vinc17.org> <143f231c-5e33-43de-a3ee-331af95c60d9@cs.ucla.edu> <87jz32g107.fsf@gmail.com> <29b34bee-8279-446b-b0b6-53c150ddf78a@cs.ucla.edu> In-Reply-To: <29b34bee-8279-446b-b0b6-53c150ddf78a@cs.ucla.edu> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -4.2 (----) 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: -5.2 (-----) Paul Eggert wrote: > On 8/16/25 19:01, Collin Funk wrote: >> Is there any reason that gzip doesn't use quote and error from Gnulib? >> e.g. to avoid dependencies on locale stuff? > > Partly that, and partly because it's a symptom of a larger issue: gzip > was written in a hurry and is poorly structured and people > understandably don't want to mess with it. Maybe an alternative to searching for all the places where gzip would need to be patched could be to reject outright any file name containing any control char in the range ( ch <= 31 && ch >= 1 ) || ch == 127 If a file with such a name needs to be decompressed, it can be redirected to standard input. POSIX is encouraging implementations to disallow the creation of file names containing any bytes that have the encoded value of a character. See https://pubs.opengroup.org/onlinepubs/9799919799/utilities/compress.html section CHANGE HISTORY subsection Issue 8. Since January 2024, GNU ed is rejecting by default file names containing control chars and nobody has complained yet. Best regards, Antonio. From unknown Mon Aug 18 19:35:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79231: sends non-printable characters to the terminal in error message Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Sun, 17 Aug 2025 23:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79231 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: Antonio Diaz Diaz Cc: Paul Eggert , 79231@debbugs.gnu.org, Collin Funk Received: via spool by 79231-submit@debbugs.gnu.org id=B79231.175547482911524 (code B ref 79231); Sun, 17 Aug 2025 23:54:02 +0000 Received: (at 79231) by debbugs.gnu.org; 17 Aug 2025 23:53:49 +0000 Received: from localhost ([127.0.0.1]:48254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1unnC8-0002zo-TZ for submit@debbugs.gnu.org; Sun, 17 Aug 2025 19:53:49 -0400 Received: from joooj.vinc17.net ([2001:4b99:1:3:216:3eff:fe20:ac98]:45596) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1unnC5-0002za-0t for 79231@debbugs.gnu.org; Sun, 17 Aug 2025 19:53:45 -0400 Received: from smtp-qaa.vinc17.net (lfbn-tou-1-1284-42.w90-89.abo.wanadoo.fr [90.89.100.42]) by joooj.vinc17.net (Postfix) with ESMTPSA id C25693D8; Mon, 18 Aug 2025 01:53:43 +0200 (CEST) Received: by qaa.vinc17.org (Postfix, from userid 1000) id 66D91CA3BAE; Mon, 18 Aug 2025 01:53:43 +0200 (CEST) Date: Mon, 18 Aug 2025 01:53:43 +0200 From: Vincent Lefevre Message-ID: <20250817235343.GI607521@qaa.vinc17.org> References: <20250813144959.GA6936@qaa.vinc17.org> <20250813163917.GD6936@qaa.vinc17.org> <143f231c-5e33-43de-a3ee-331af95c60d9@cs.ucla.edu> <87jz32g107.fsf@gmail.com> <29b34bee-8279-446b-b0b6-53c150ddf78a@cs.ucla.edu> <68A2665A.2080105@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <68A2665A.2080105@gnu.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.13+86 (bb2064ae) vl-169878 (2025-02-08) X-Spam-Score: 0.0 (/) 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 2025-08-18 01:31:38 +0200, Antonio Diaz Diaz wrote: > Since January 2024, GNU ed is rejecting by default file names containing > control chars and nobody has complained yet. Perhaps for creation, but not as input, where GNU ed outputs non-printable characters to the terminal due to the file name in the error message. So this does not solve the problem. GNU ed is as buggy as gzip in this respect. I've just reported the bug. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon) From unknown Mon Aug 18 19:35:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79231: sends non-printable characters to the terminal in error message Resent-From: Vincent Lefevre Original-Sender: "Debbugs-submit" Resent-CC: bug-gzip@gnu.org Resent-Date: Sun, 17 Aug 2025 23:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79231 X-GNU-PR-Package: gzip X-GNU-PR-Keywords: To: Antonio Diaz Diaz Cc: Paul Eggert , 79231@debbugs.gnu.org, Collin Funk Received: via spool by 79231-submit@debbugs.gnu.org id=B79231.175547505212297 (code B ref 79231); Sun, 17 Aug 2025 23:58:02 +0000 Received: (at 79231) by debbugs.gnu.org; 17 Aug 2025 23:57:32 +0000 Received: from localhost ([127.0.0.1]:48261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1unnFj-0003CH-Tz for submit@debbugs.gnu.org; Sun, 17 Aug 2025 19:57:32 -0400 Received: from joooj.vinc17.net ([155.133.131.76]:54218) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1unnFh-0003C6-Lg for 79231@debbugs.gnu.org; Sun, 17 Aug 2025 19:57:30 -0400 Received: from smtp-qaa.vinc17.net (lfbn-tou-1-1284-42.w90-89.abo.wanadoo.fr [90.89.100.42]) by joooj.vinc17.net (Postfix) with ESMTPSA id 368443D8; Mon, 18 Aug 2025 01:57:28 +0200 (CEST) Received: by qaa.vinc17.org (Postfix, from userid 1000) id B7CC6CA3DB8; Mon, 18 Aug 2025 01:57:27 +0200 (CEST) Date: Mon, 18 Aug 2025 01:57:27 +0200 From: Vincent Lefevre Message-ID: <20250817235727.GJ607521@qaa.vinc17.org> References: <20250813144959.GA6936@qaa.vinc17.org> <20250813163917.GD6936@qaa.vinc17.org> <143f231c-5e33-43de-a3ee-331af95c60d9@cs.ucla.edu> <87jz32g107.fsf@gmail.com> <29b34bee-8279-446b-b0b6-53c150ddf78a@cs.ucla.edu> <68A2665A.2080105@gnu.org> <20250817235343.GI607521@qaa.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20250817235343.GI607521@qaa.vinc17.org> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.13+86 (bb2064ae) vl-169878 (2025-02-08) X-Spam-Score: 0.0 (/) 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 2025-08-18 01:53:43 +0200, Vincent Lefevre wrote: > On 2025-08-18 01:31:38 +0200, Antonio Diaz Diaz wrote: > > Since January 2024, GNU ed is rejecting by default file names containing > > control chars and nobody has complained yet. > > Perhaps for creation, but not as input, where GNU ed outputs > non-printable characters to the terminal due to the file name in > the error message. So this does not solve the problem. GNU ed is > as buggy as gzip in this respect. I've just reported the bug. In short, the only way to avoid the issue in any program would be to make the Linux kernel to prevent the creation of such file names in the first place (well, archive utilities would also need to filter such characters for their output in case they can appear in archives). -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)