help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing Encoding system for "Defaults for subprocess I/O"


From: dan
Subject: Re: Changing Encoding system for "Defaults for subprocess I/O"
Date: Mon, 25 May 2015 19:29:04 -0700 (PDT)
User-agent: G2/1.0

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 via email to

[Prev in Thread] Current Thread [Next in Thread]