From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: UTF-8-encoded output in Emacs shell Date: Tue, 26 Jan 2010 09:45:11 +1100 Organization: Rapt Technologies Message-ID: <87vdep953c.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1264462854 8855 80.91.229.12 (25 Jan 2010 23:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Jan 2010 23:40:54 +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 Jan 26 00:40:46 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NZYY0-0004Kn-Us for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jan 2010 00:40:45 +0100 Original-Received: from localhost ([127.0.0.1]:53183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZYY2-0004H5-8R for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Jan 2010 18:40:46 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) Cancel-Lock: sha1:cS1od4ZW1FJW03fM+ogdqO4Et9k= Original-Lines: 32 Original-NNTP-Posting-Host: cdd3dadb.news.astraweb.com Original-X-Trace: DXC=1Uf@gog@1684K?0c7HD\@7L?0kYOcDh@:nmNjE4M:dl6>h5BA Original-Xref: news.stanford.edu gnu.emacs.help:176394 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71458 Archived-At: kj 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