GNU bug report logs -
#69718
29.2; grep japanese-iso-8bit-unix string fails with "grep: illegal byte sequence"
Previous Next
Full log
View this message in rfc822 format
On japanese-iso-8bit-unix (= eucJP), この辞書は is 0xa4b3 0xa4ce 0xbcad 0xbdf1 0xa4cf,
and 0xa4b3 0xa4ce 0xbcad 0xbdf1 0xa4cf is illegal byte sequence on UTF-8.
On UTF-8 mode, macOS grep signals "grep: illegal byte sequence" error for the byte sequence,
but LANG=C mode or LANG is not specified, macOS grep accepts the byte sequence.
| % cd ~/emacs-29.2/leim/SKK-DIC
|
| % LANG=en_US.UTF-8 grep --color=auto -nH --null -e `echo この辞書は | iconv -f utf-8 -t eucJP` SKK-JISYO.L | iconv -f eucJP -t utf-8
| grep: illegal byte sequence
|
| % LANG=C grep --color=auto -nH --null -e `echo この辞書は | iconv -f utf-8 -t eucJP` SKK-JISYO.L | iconv -f eucJP -t utf-8
| SKK-JISYO.L 35:;; この辞書は、SKK 原作者の佐藤雅彦先生が、第 1 版作成のために東北大学
|
| % LANG= grep --color=auto -nH --null -e `echo この辞書は | iconv -f utf-8 -t eucJP` SKK-JISYO.L | iconv -f eucJP -t utf-8
| SKK-JISYO.L 35:;; この辞書は、SKK 原作者の佐藤雅彦先生が、第 1 版作成のために東北大学
emacs-29.1 executes /usr/bin/grep without LANG,
but emacs-29.2 seems to execute /usr/bin/grep with LANG=en_US.UTF-8.
I wonder /usr/bin/grep should be invoked in non UTF-8 mode, because emacs might pass non UTF-8 byte sequence to /usr/bin/grep.
> 2024/03/11 22:15、Eli Zaretskii <eliz <at> gnu.org>のメール:
>
>> Cc: 69718 <at> debbugs.gnu.org
>> Date: Mon, 11 Mar 2024 14:50:31 +0200
>> From: Eli Zaretskii <eliz <at> gnu.org>
>>
>> We made a change in msterm.m between Emacs 29.1 and Emacs 29.2, which
> ^^^^^^^^
> Sorry, that was supposed to be nsterm.m.
This bug report was last modified 1 year and 96 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.