From: Tak Kunihiro <homeros.misasa@gmail.com>
To: YUE Daian <sheepduke@gmail.com>
Cc: help-gnu-emacs@gnu.org, tkk@misasa.okayama-u.ac.jp
Subject: Re: Grep Japanese characters
Date: Thu, 12 Jul 2018 22:10:45 +0900 [thread overview]
Message-ID: <86pnzsbnvu.fsf@misasa.okayama-u.ac.jp> (raw)
In-Reply-To: <87d0vt2lxj.fsf@yue-d-PC.i-did-not-set--mail-host-address--so-tickle-me> (YUE Daian's message of "Thu, 12 Jul 2018 11:05:28 +0800")
>>> 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?
>>
>> You cannot pass UTF-8 encoded parameters to sub-programs on
>> MS-Windows. You can only use the encoding of your system codepage.
>> Sorry, it's an MS-Windows limitation.
>
> I remember Windows 10 has a beta option to use UTF-8 for the whole
> system instead of your local encoding.
I have checked a box on a dialog by following steps and
confirmed that I can grep Japanese string.
Thank you for the hints!
Region & Language
-> Administrative language settings
-> Language for non-Unicode programs
-> Change system locale...
-> Beta: Use Unicode UTF-8 for worldwide language support
next prev parent reply other threads:[~2018-07-12 13:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86pnzsbnvu.fsf@misasa.okayama-u.ac.jp \
--to=homeros.misasa@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=sheepduke@gmail.com \
--cc=tkk@misasa.okayama-u.ac.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).