From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dan Newsgroups: gmane.emacs.help Subject: Re: Changing Encoding system for "Defaults for subprocess I/O" Date: Mon, 25 May 2015 19:29:04 -0700 (PDT) Message-ID: <5abb6f12-8ec5-42b3-ac28-8c780b11fbb4@googlegroups.com> References: <0b96063c-8973-4fb4-81f1-048ecb706120@googlegroups.com> <738bc30b-0db9-4e89-b046-b3d1e3ddc9fc@googlegroups.com> <0276d36c-d5be-4858-a22a-a13d0a66411d@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1432607421 24135 80.91.229.3 (26 May 2015 02:30:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2015 02:30:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 26 04:30:21 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yx4dH-0000hr-AD for geh-help-gnu-emacs@m.gmane.org; Tue, 26 May 2015 04:30:19 +0200 Original-Received: from localhost ([::1]:45592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yx4dG-00081g-51 for geh-help-gnu-emacs@m.gmane.org; Mon, 25 May 2015 22:30:18 -0400 X-Received: by 10.66.175.4 with SMTP id bw4mr32400453pac.33.1432607345412; Mon, 25 May 2015 19:29:05 -0700 (PDT) X-Received: by 10.50.56.6 with SMTP id w6mr300105igp.16.1432607345361; Mon, 25 May 2015 19:29:05 -0700 (PDT) Original-Path: usenet.stanford.edu!news.glorb.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!h15no8454168igd.0!news-out.google.com!kd3ni27906igb.0!nntp.google.com!j8no9518294igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <0276d36c-d5be-4858-a22a-a13d0a66411d@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.184.146.190; posting-account=1n6WnAoAAACbXH3nD5I7RQWqdkbTxZki Original-NNTP-Posting-Host: 50.184.146.190 User-Agent: G2/1.0 Injection-Date: Tue, 26 May 2015 02:29:05 +0000 Original-Lines: 61 X-Received-Bytes: 3395 X-Received-Body-CRC: 2734617172 Original-Xref: usenet.stanford.edu gnu.emacs.help:212284 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104568 Archived-At: On Monday, May 25, 2015 at 6:00:45 PM UTC-7, dan wrote: > On Monday, May 25, 2015 at 7:46:19 AM UTC-7, Eli Zaretskii wrote: > > > Date: Sun, 24 May 2015 16:24:55 -0700 (PDT) > > > > > > On Sunday, May 24, 2015 at 4:15:37 PM UTC-7, dan wrote: > > > > Hi, > > > > > > > > When I enter "M-x eshell", the describe-coding-system shows > > > > > > > > Defaults for subprocess I/O: > > > > decoding: U -- utf-8-unix (alias: mule-utf-8-unix) > > > > > > > > encoding: U -- utf-8-unix (alias: mule-utf-8-unix) > > > > > > > > > > > > However, when I go to "M-x shell", it shows > > > > > > > > Defaults for subprocess I/O: > > > > decoding: - -- undecided-unix (alias: unix) > > > > > > > > encoding: - -- undecided-unix (alias: unix) > > > > > > > > > > > > Because of above, some international character does not show properly. > > > > Which international characters are those, and what program outputs > > them? > > > > Also, what is your locale? > > > > > > Do you know how to set the "Defaults for subprocess I/O" for all buffers/shell? > > > > Take a look at process-coding-system-alist, which will allow you to > > set the defaults as appropriate for specific applications. > > > > > Also, do you know how to make a change for > > > > > > "Coding systems for process I/O"? > > > > That's the same question as you asked above, just worded differently. > > > > > Or disable it? > > > > You can't. > > Thanks for the all comments. > > I got to know how to solve this, but I don't know why. > > This commands make it work: > > (setq process-coding-system-alist (cons '("bash" . (utf-8-nfd . utf-8-nfd)) process-coding-system-alist)) > > Do you know what the "utf-8-nfd" means there? utf-8 or utf-8-unix does not work. After research of it, I got this: http://www.emacswiki.org/emacs/CarbonEmacsPackage#toc23 This tells me what is the utf-8 NFD, and why the Korean ( hangul ) was not shown properly in the shell in Emacs. Thanks,