From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.help Subject: Re: Grep Japanese characters Date: Thu, 12 Jul 2018 22:10:45 +0900 Message-ID: <86pnzsbnvu.fsf@misasa.okayama-u.ac.jp> References: <20180712.080255.586725992291613595.tkk@misasa.okayama-u.ac.jp> <83a7qxfa7r.fsf@gnu.org> <87d0vt2lxj.fsf@yue-d-PC.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1531400958 8001 195.159.176.226 (12 Jul 2018 13:09:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2018 13:09:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (windows-nt) Cc: help-gnu-emacs@gnu.org, tkk@misasa.okayama-u.ac.jp To: YUE Daian Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 12 15:09:14 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 1fdbLL-0001xh-TK for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2018 15:09:12 +0200 Original-Received: from localhost ([::1]:59821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdbNR-00049F-C3 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2018 09:11:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdbMz-00048u-Ez for help-gnu-emacs@gnu.org; Thu, 12 Jul 2018 09:10:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdbMw-0008TS-9u for help-gnu-emacs@gnu.org; Thu, 12 Jul 2018 09:10:53 -0400 Original-Received: from mail-pl0-x22f.google.com ([2607:f8b0:400e:c01::22f]:37773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdbMw-0008Ru-32 for help-gnu-emacs@gnu.org; Thu, 12 Jul 2018 09:10:50 -0400 Original-Received: by mail-pl0-x22f.google.com with SMTP id 31-v6so10653873plc.4 for ; Thu, 12 Jul 2018 06:10:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=D+7dGyFxmttv/brYkSp/8VmrPkhZqWs+a78CnL0O74Q=; b=N2ilX0P44QFL8x1F3lSrwURWZzFo2ratzThDfMGcAjWnloc3Z9fEhFsRiZEqCVWsO5 xb1oD0sup/pAodiQMq8xsGKKtH8ahx1R4eUkKynJXZf9e/+n94sdK0U2m9Z4/KID+KG2 9PGOdGkfnfUfr5rf5pQC0px5p2SX3H1A2zZD5D/feAKfVYR+RLpoWYaTDGRBY+020Qb/ MUHyCjQLUEi7JjaSKhqjZWJe0OROgb5A8ogvxdKSqPg3Ik2G7CjBiWx5QvEzMrqJAm0D QkhtmFmYvxVWuggUuuAZwvk5uW0A1J17Yn1NyNYMQZcork57TtToYFX4JDnDn8/ZgtBF JNQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=D+7dGyFxmttv/brYkSp/8VmrPkhZqWs+a78CnL0O74Q=; b=tLsEzpYsoGR0BNriSc1sC0PIPkvQPtfIt2PJxUTDKoa3U7+TYmnGOAn8dTS3+iphu+ saI5qIM9Y6kvWXFhSPYGGT+/i1uyZYLwiNm4u+QF79PUiBBikGePdRJbu1L/OBBASaKH t+Cam1fCuan3wA7cxZAnIkZR91jFMUEX6YOSjVeg6mwG9gWy3IxQR6Mw3wygPLOsTX2e fX32kWblg/xmoDN6avoe50C2EVmajrr3pkp/wEFUvTT1/84klWvevddlTdZtKlNRpBKS zn00kLC9PZjYd1wN3t9W6Y5l8XNDrYhU30FZodBb+6WtDdIJRn3em9tme9nLqw4utfZM P6Yg== X-Gm-Message-State: AOUpUlFaQFOTQqYIvEEhGSuDvYvagulvDqc84TJgM8klX4cJ1PZW0Q/7 A7jXry1P9mnbPQGnif/ioqo= X-Google-Smtp-Source: AAOMgpdOUqPlEBCg+tyKh0Z60+u3cqOrFNGg5BA16LfV2FLQNGDUbkwvsm+kdiX9CODdPfVAuozc/w== X-Received: by 2002:a17:902:be0d:: with SMTP id r13-v6mr2111506pls.299.1531401049143; Thu, 12 Jul 2018 06:10:49 -0700 (PDT) Original-Received: from thinkless2017 (vpn2015.okayama-u.ac.jp. [150.46.138.52]) by smtp.gmail.com with ESMTPSA id f19-v6sm24535185pfd.147.2018.07.12.06.10.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Jul 2018 06:10:48 -0700 (PDT) X-Google-Original-From: Tak Kunihiro 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") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c01::22f 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:117407 Archived-At: >>> 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