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

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

Re: Grep Japanese characters


From: Eli Zaretskii
Subject: Re: Grep Japanese characters
Date: Thu, 12 Jul 2018 16:23:39 +0300

> From: YUE Daian <sheepduke@gmail.com>
> Date: Thu, 12 Jul 2018 11:05:28 +0800
> 
> > 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.

If Windows will at some point will allow using UTF-8 as the locale's
codeset, then invoking subprograms with UTF-8 encoded command-line
arguments will become possible in Emacs on Windows.  For now, the MSDN
documentation of the latest C runtime still says:

  The locale argument can take a locale name, a language string, a
  language string and country/region code, a code page, or a language
  string, country/region code, and code page. The set of available
  locale names, languages, country/region codes, and code pages includes
  all those supported by the Windows NLS API except code pages that
  require more than two bytes per character, such as UTF-7 and UTF-8. If
  you provide a code page value of UTF-7 or UTF-8, setlocale will fail,
  returning NULL.



reply via email to

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