all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: UTF-8-encoded output in Emacs shell
Date: Tue, 26 Jan 2010 09:45:11 +1100	[thread overview]
Message-ID: <87vdep953c.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: hjkc71$fco$1@reader1.panix.com

kj <no.email@please.post> writes:

> I have a Python script that writes UTF-8-encoded Japanese text to
> stdout.  This script produces nice-looking Japanese output when I
> run it on my regular shell, running on OS X's Terminal utility.
> But if I start "emacs -nw" the same Terminal window, then from
> within the Emacs session I start a new shell (with M-x shell), and
> now run the script within this Emacs-internal shell, the output
> looks like garbage.  ("Gobbledygook" is the technical term for
> this, I think.)
>
> What must I do to get the right-looking Japanese output when I run
> this script within Emacs?
>
> (BTW, I naively tried setting the coding for the *shell* buffer to
> utf-8, with M-x set-buffer-file-coding-system, but this had no
> effect.  But, from Tomas's reply to an earlier query of mine, this
> maneuver may not be enough in any case, or may be meaningless in
> a buffer like *shell* that is not associated to a file.)
>
> TIA!
>
What version of emacs?

What is the value of  LANG and LC_* variables inside the emacs shell and
outside of emacs in the terminal?

Tim


-- 
tcross (at) rapttech dot com dot au


      parent reply	other threads:[~2010-01-25 22:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-25 15:09 UTF-8-encoded output in Emacs shell kj
2010-01-25 15:13 ` kj
2010-01-25 15:17 ` kj
2010-01-25 22:45 ` Tim X [this message]

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=87vdep953c.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --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.