From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69718: 29.2; grep japanese-iso-8bit-unix string fails with "grep: illegal byte sequence" Date: Mon, 11 Mar 2024 14:50:31 +0200 Message-ID: <86il1tue3s.fsf@gnu.org> References: <8F538035-DB9D-4323-AD96-81647300C509@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12022"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69718@debbugs.gnu.org To: Akira Shirai Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 11 13:52:09 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 1rjf8S-0002uv-8p for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Mar 2024 13:52:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjf7x-0004da-4e; Mon, 11 Mar 2024 08:51:37 -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 1rjf7t-0004c6-Kz for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2024 08:51:33 -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 1rjf7p-0006Fp-K3 for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2024 08:51:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rjf8M-0008V2-E0 for bug-gnu-emacs@gnu.org; Mon, 11 Mar 2024 08:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Mar 2024 12:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69718 X-GNU-PR-Package: emacs Original-Received: via spool by 69718-submit@debbugs.gnu.org id=B69718.171016148432573 (code B ref 69718); Mon, 11 Mar 2024 12:52:02 +0000 Original-Received: (at 69718) by debbugs.gnu.org; 11 Mar 2024 12:51:24 +0000 Original-Received: from localhost ([127.0.0.1]:39186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjf7j-0008TI-Pv for submit@debbugs.gnu.org; Mon, 11 Mar 2024 08:51:24 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rjf7f-0008T2-Qn for 69718@debbugs.gnu.org; Mon, 11 Mar 2024 08:51:21 -0400 Original-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 1rjf72-00065Q-HO; Mon, 11 Mar 2024 08:50:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=xqquvQInKJFs8czQKiBTU1CVANQ84fAVg6u0YE+I5l0=; b=LqSBh58+TJmsu2sWP9d6 /YeSQyzsEaLBOGSq9iJyKgz4gooaevwXKXZ/2fX1eOJzsPM1zAWdnS6suZzzr6B1IzTIvCKpnEedy +L4U+te2EtMAIHNGtM8J6f5nD8Ga81vdaqXNxIv67uxtSp/3BayucmPz2n1mrg9jp9hmx4erwXIaO HaOyBw3Fjd3M4cHbhQHYXv43lt8RNtE0hwNR2yRqw25mgoY1pnU1Dljloy/K6Y2t4XA//xi69851k JXt7xfnvGZFfn8xoUGCljTi5q1S4Xw9WPuZHMQiE0UH8a0ComXLlvOxzqfMtwFXKOhshpCMuzh8Np dQKkIsojtEVVAQ==; In-Reply-To: <8F538035-DB9D-4323-AD96-81647300C509@gmail.com> (message from Akira Shirai on Mon, 11 Mar 2024 08:45:33 +0900) 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:281467 Archived-At: > Cc: 白井彰 > From: Akira Shirai > Date: Mon, 11 Mar 2024 08:45:33 +0900 > > 1. emacs -Q on macOS > 2. evaluate (set-language-environment "Japanese") > 3. visit the directory where SKK-JISYO.L exists (ex. ~/emacs-29.2/leim/SKK-DIC/ ) > 4. type C-x RET c to run universal-coding-system-argument command, and specify japanese-iso-8bit-unix as the coding-system > 5. type M-x grep to run grep, and specify "grep --color=auto -nH --null -e この辞書は SKK-JISYO.L" as the command-args > => grep fails with "grep: illegal byte sequence" > > On emacs 29.1, the grep runs successfully with the same procedures. > If the command-args is "LANG=C grep --color=auto -nH --null -e この辞書は SKK-JISYO.L", the grep runs successfully. I cannot reproduce this, but I'm not on macOS. We made a change in msterm.m between Emacs 29.1 and Emacs 29.2, which might be responsible for this: we now set the Emacs locale differently. But I'm not sure what you see means there's a bug in Emacs, because it could well be a bug in Grep that you have on macOS; for example, this page: https://stackoverflow.com/questions/19242275/re-error-illegal-byte-sequence-on-mac-os-x clearly hints that this might be the case, and that setting LANG=C is indeed the right solution for this.