From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: joelvsmith@earthlink.net (Joel Smith) Newsgroups: gmane.emacs.help Subject: Re: emacs -nw and accented characters Date: 18 Jan 2004 06:56:47 -0800 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <8c14dcec.0401180656.497a808d@posting.google.com> References: <8c14dcec.0401172003.2f98473b@posting.google.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1074438129 624 80.91.224.253 (18 Jan 2004 15:02:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Jan 2004 15:02:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 18 16:02:06 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AiERB-00028A-00 for ; Sun, 18 Jan 2004 16:02:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AiEPi-0000r1-VB for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Jan 2004 10:00:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed2.newsreader.com!newsreader.com!news-out.visi.com!hermes.visi.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: 4.64.191.178 Original-X-Trace: posting.google.com 1074437807 8943 127.0.0.1 (18 Jan 2004 14:56:47 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 18 Jan 2004 14:56:47 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:120195 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:16139 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16139 Eli Zaretskii wrote in message news:... > > From: joelvsmith@earthlink.net (Joel Smith) > > Newsgroups: gnu.emacs.help > > Date: 17 Jan 2004 20:03:18 -0800 > > > > what does it mean to "set terminal-coding-system to match what the > > terminal expects?" > > It means that the encoding of characters used by Emacs when writing to > the screen should be what aterm expects to see for Latin-1 characters. > > What happens if you make a buffer with accented characters, save it > to a disk file with > > C-x RET f latin-1 RET > C-x C-s > > and then dump that file to the screen in an aterm session with > > cat myfile > > (where myfile is the file to which you saved the accented characters)? > Do the characters display correctly then? > > The above emulates what Emacs is supposed to do with terminal encoding > set to latin-1, as you reported for your case: it encodes each > non-ASCII character with its Latin-1 code, then sends that code to the > screen. I created two files. The first with accented characters saved using the latin-1 coding system. the other with the same text but under the default, utf-8. results-- aterm - accented characters appear appear garbled in emacs. text saved in latin-1 appears ok when displayed in aterm with cat. text saved in utf-8 is garbled when displayed in aterm with cat. using these files i looked at them in xterm. each appear fine in emacs -nw, but only the utf-8 file appears fine with cat.