help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grep Japanese characters


From: Tak Kunihiro
Subject: Re: Grep Japanese characters
Date: Thu, 12 Jul 2018 22:10:45 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt)

>>> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]