From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: YUE Daian Newsgroups: gmane.emacs.help Subject: Re: Grep Japanese characters Date: Thu, 12 Jul 2018 11:05:28 +0800 Message-ID: <87d0vt2lxj.fsf@yue-d-PC.i-did-not-set--mail-host-address--so-tickle-me> References: <20180712.080255.586725992291613595.tkk@misasa.okayama-u.ac.jp> <83a7qxfa7r.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1531364640 32339 195.159.176.226 (12 Jul 2018 03:04:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2018 03:04:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 12 05:03:56 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdRtb-0008KQ-Qa for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2018 05:03:55 +0200 Original-Received: from localhost ([::1]:57111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdRvi-0003DC-Eu for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jul 2018 23:06:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdRvH-0003D6-6u for help-gnu-emacs@gnu.org; Wed, 11 Jul 2018 23:05:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdRvD-0005Ua-7Q for help-gnu-emacs@gnu.org; Wed, 11 Jul 2018 23:05:39 -0400 Original-Received: from mail-pl0-x235.google.com ([2607:f8b0:400e:c01::235]:38214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdRvD-0005TA-1N for help-gnu-emacs@gnu.org; Wed, 11 Jul 2018 23:05:35 -0400 Original-Received: by mail-pl0-x235.google.com with SMTP id b1-v6so10028714pls.5 for ; Wed, 11 Jul 2018 20:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=ZnnkXI8R/T6l9ohE9dVxAetYFnzvaDSzzbKXSak1kRE=; b=mD9kP02jA2MxAR789Kfo2lhYa3oMzrcnt4cn8X22O+klb/sPxqZg337mYS9w/e15IK ayNycR8Ibry5RcFj5jHPsAqUWZ6TJj1CrRvzHZvkjmQBj+EumJdyUBDaByIdKwtrxET/ MydwHOnGOgXSYVhg2riL8b1t02WdgW85AZhdTiTqPeDnQFaKuQGdxz08HaHB30/JH3sO DAWpK7vW/yiPwSsRz1nHzDRM3H0YGiPICV5QpfZn1Kx1bm8YMl12mnwdusQ3wK/qcWfQ lqynCqA3AJoW/20OP/WKfHfc3wjgoiDLHGoLkOVSixbxUSBj+W3V5/H5z1j9e64x2n91 UtHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=ZnnkXI8R/T6l9ohE9dVxAetYFnzvaDSzzbKXSak1kRE=; b=MUYZQHJV+rlgEedy/8aGaPnJBgCC/w0RDKbq1HGzy60tjRE5Xkts0qO7iL6eo8jqu5 cMni32v5QEZ802VQq8gQMCxksOiLRq27ERkezixSJsCptBbu4D1KGT7KK7lJY0LT8xBb glUFNFtANzH9Bn4oZYnriyItOhjoxm9CZQNm9Wp0ZHfBN1v5g9PCt9Ayo2pQq8FxdN6V veOvVol6sNJJK4gVfnal0p0+sg8pK2wWWmAJEm3IHq2M2yZ8gYlQpNM8XaVJui89RpL1 om2zeQAEjovQ8KxwuoXIe2ekvteuC01WHM2bn8wFXnOglVOBAqh98KK0In7Nrp0fl3nl 8SIA== X-Gm-Message-State: AOUpUlFB2O/NQs5sepY+R7T0H7AvlloM8cM3/m4AWT3z1WGmlNpO/jcp fampbEFQQt9H9iIpQb3zGagIhpTL X-Google-Smtp-Source: AAOMgpcYo33lMLDBP3K7ohtBXocuCb72k43XwyGoMWLkOs3Howrah2K6QZ0csw7J/RsCdt31iTp9cw== X-Received: by 2002:a17:902:4603:: with SMTP id o3-v6mr443313pld.49.1531364733592; Wed, 11 Jul 2018 20:05:33 -0700 (PDT) Original-Received: from localhost ([118.201.58.126]) by smtp.gmail.com with ESMTPSA id t78-v6sm39559785pfa.160.2018.07.11.20.05.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jul 2018 20:05:32 -0700 (PDT) In-Reply-To: <83a7qxfa7r.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117405 Archived-At: On 2018-07-12 05:40, Eli Zaretskii wrote: >> Date: Thu, 12 Jul 2018 08:02:55 +0900 (JST) >> From: Tak Kunihiro >> Cc: tkk@misasa.okayama-u.ac.jp >> >> 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 do not know if this can help...