all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dan <breadncup@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Changing Encoding system for "Defaults for subprocess I/O"
Date: Mon, 25 May 2015 19:29:04 -0700 (PDT)	[thread overview]
Message-ID: <5abb6f12-8ec5-42b3-ac28-8c780b11fbb4@googlegroups.com> (raw)
In-Reply-To: <0276d36c-d5be-4858-a22a-a13d0a66411d@googlegroups.com>

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,


  reply	other threads:[~2015-05-26  2:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-24 23:15 Changing Encoding system for "Defaults for subprocess I/O" dan
2015-05-24 23:24 ` dan
2015-05-25  1:41   ` Rusi
2015-05-25 14:45   ` Eli Zaretskii
     [not found]   ` <mailman.3625.1432565177.904.help-gnu-emacs@gnu.org>
2015-05-26  1:00     ` dan
2015-05-26  2:29       ` dan [this message]
2015-05-26  2:41       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5abb6f12-8ec5-42b3-ac28-8c780b11fbb4@googlegroups.com \
    --to=breadncup@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.