unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Grep Japanese characters
@ 2018-07-11 23:02 Tak Kunihiro
  2018-07-12  2:40 ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Tak Kunihiro @ 2018-07-11 23:02 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: tkk

I want to grep Japanese string.  I can do it on Emacs for Mac but
cannot do it on Emacs for MS Windows.

I found that I can grep Japanese string using
c:/msys64/usr/bin/grep.exe on command prompt (outside of Emacs).
However, I cannot do it using c:/msys64/usr/bin/grep.exe on command
prompt by M-x shell (inside of Emacs).  I confirm that LC_ALL is set
to en_US.UTF-8 on both environments.

Can you give me a hint to grep Japanese string on Emacs for MS
Windows?



CMD> set
...
LC_ALL=en_US.UTF-8
...

CMD> c:/msys64/usr/bin/cat hello.txt
Hello is こんにちは in Japanese.
Hello is bonjour in French.

CMD> c:/msys64/usr/bin/grep.exe Hello hello.txt
Hello is こんにちは in Japanese.
Hello is bonjour in French.

CMD> c:/msys64/usr/bin/grep.exe "こんにちは" hello.txt
Hello is こんにちは in Japanese.



CMD> c:/emacs-26.1/bin/runemacs -Q
M-x shell

CMD> set
...
LC_ALL=en_US.UTF-8
...

CMD> c:/msys64/usr/bin/grep.exe Hello hello.txt
c:/msys64/usr/bin/grep.exe Hello hello.txt
Hello is こんにちは in Japanese.
Hello is bonjour in French.

CMD> c:/msys64/usr/bin/grep.exe "こんにちは" hello.txt
c:/msys64/usr/bin/grep.exe "こんにちは" hello.txt



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-07-17  2:29 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-11 23:02 Grep Japanese characters Tak Kunihiro
2018-07-12  2:40 ` Eli Zaretskii
2018-07-12  3:05   ` YUE Daian
2018-07-12 13:10     ` Tak Kunihiro
2018-07-12 13:37       ` Eli Zaretskii
2018-07-13  3:36         ` Tak Kunihiro
2018-07-13  7:21           ` Eli Zaretskii
2018-07-13 14:06             ` Filipp Gunbin
2018-07-13 14:36               ` Eli Zaretskii
2018-07-16 20:11                 ` Filipp Gunbin
2018-07-17  2:29                   ` Eli Zaretskii
2018-07-13  2:58       ` YUE Daian
2018-07-12 13:23     ` Eli Zaretskii
2018-07-12  5:05   ` Yuri Khan
2018-07-12 13:27     ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).