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 18:00:43 -0700 (PDT) Message-ID: <0276d36c-d5be-4858-a22a-a13d0a66411d@googlegroups.com> References: <0b96063c-8973-4fb4-81f1-048ecb706120@googlegroups.com> <738bc30b-0db9-4e89-b046-b3d1e3ddc9fc@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 1432602319 1944 80.91.229.3 (26 May 2015 01:05:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2015 01:05:19 +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 03:05:19 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 1Yx3J1-0001ry-Ao for geh-help-gnu-emacs@m.gmane.org; Tue, 26 May 2015 03:05:19 +0200 Original-Received: from localhost ([::1]:45408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yx3J0-0002FX-9U for geh-help-gnu-emacs@m.gmane.org; Mon, 25 May 2015 21:05:18 -0400 X-Received: by 10.42.204.75 with SMTP id fl11mr33799078icb.16.1432602044377; Mon, 25 May 2015 18:00:44 -0700 (PDT) X-Received: by 10.50.39.2 with SMTP id l2mr202igk.6.1432602044360; Mon, 25 May 2015 18:00:44 -0700 (PDT) Original-Path: usenet.stanford.edu!j8no9500141igd.0!news-out.google.com!kd3ni27844igb.0!nntp.google.com!j8no9500134igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: 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 01:00:44 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:212281 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:104565 Archived-At: 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.