From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vagn Johansen Newsgroups: gmane.emacs.help Subject: Re: linux/gcc, apostrophs display problem Date: Sat, 28 Feb 2009 09:53:07 +0100 Organization: What me? Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235814051 13325 80.91.229.12 (28 Feb 2009 09:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Feb 2009 09:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 28 10:42:07 2009 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 1LdLht-0007jD-Vh for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Feb 2009 10:42:06 +0100 Original-Received: from localhost ([127.0.0.1]:39222 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdLgY-0005QW-Uf for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Feb 2009 04:40:42 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (darwin) Cancel-Lock: sha1:asOOTDAk7BQabcrlap2T+yyVWXg= Original-Lines: 55 Original-NNTP-Posting-Host: 82.143.204.83 Original-X-Trace: news.sunsite.dk DXC=KnKQl4_]CcS8AmV=S2QQ[\YSB=nbEKnk[l2^feVC_<6V1]Odi5o\aCSgNbeFAXTM>UFLGR=[EI8dZFHCX\2K9LXUU1cU@6GGZ; Z Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:167171 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:62472 Archived-At: towi writes: > Hi, > > when gcc prints warnings or errors it puts identifiers in two strange > single-quotes. > > When I do "M-x compile" with "gcc textm.c" the apostrophs are printed > fine. > > But, when I have a more complex project with automake and libtool and > everything, when I compile "M-x compile" and "make" the apostrophs get > converted somehow so that emacs displays them as octal codes. > For example: > > ../../../../trunk/src/mediator/Utils/PortingDBMap.cpp:18: warning: > \342\200\230utils::PortingDBMap::entries\342\200\231 should be > initialized in the member initialization list > > I realize that the above codes are UTF-8 apostrophs, and when I copy- > pasted them here they even appeared as apostrophs. Therefor, I gather, > the output is still ok in some sense. > > But why is it displayed fine this way and quoted the other way? fine? you mean differently? It is probably because of different settings of an environment variable. I am able to get different quotes by modifying the LANG variable. Read more about it here http://www.mcs.vuw.ac.nz/cgi-bin/info2www?(gcc)Environment+Variables >> Do I > have to switch the encoding on the "*compilation*" buffer? And how > would I do that? Or can I pass the output through a filter, just > replacing the nasty UTF-8 chars with a simple '-tick? Can I configure > emacs to do this? I use the code below to replace the UTF-8 chars with ` and ' (unless standard-display-table ; Default value is nil! (setq standard-display-table (make-display-table))) (aset standard-display-table #x53978 [96]) (aset standard-display-table #x53979 [39]) -- Vagn Johansen