From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "H.S." Newsgroups: gmane.emacs.help Subject: Re: font or face problem in emacs Date: Thu, 29 Jun 2006 18:37:31 -0400 Message-ID: References: <7F44E50F-B4E1-4692-A021-D78D5596956D@Web.DE> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1151620693 26915 80.91.229.2 (29 Jun 2006 22:38:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jun 2006 22:38:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 30 00:38:13 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fw59I-0002aS-U9 for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jun 2006 00:38:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fw59I-0002dm-FK for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jun 2006 18:38:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fw594-0002b3-R0 for help-gnu-emacs@gnu.org; Thu, 29 Jun 2006 18:37:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fw592-0002YQ-Df for help-gnu-emacs@gnu.org; Thu, 29 Jun 2006 18:37:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fw592-0002YL-6Z for help-gnu-emacs@gnu.org; Thu, 29 Jun 2006 18:37:56 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fw5Lf-0003iu-Ps for help-gnu-emacs@gnu.org; Thu, 29 Jun 2006 18:51:00 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fw58t-0002VX-UV for help-gnu-emacs@gnu.org; Fri, 30 Jun 2006 00:37:47 +0200 Original-Received: from hse-london-ppp3511184.sympatico.ca ([65.92.25.150]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Jun 2006 00:37:47 +0200 Original-Received: from hs.samix by hse-london-ppp3511184.sympatico.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Jun 2006 00:37:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 54 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: hse-london-ppp3511184.sympatico.ca User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060607 Debian/1.7.12-1.2 X-Accept-Language: en In-Reply-To: <7F44E50F-B4E1-4692-A021-D78D5596956D@Web.DE> 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:35741 Archived-At: Peter Dyballa wrote: > > Am 29.06.2006 um 22:50 schrieb H.S.: > >> g++ -Wall -ansi -o testprog testprog.cc >> testprog.cc: In function ‘int main()’: >> testprog.cc:6: warning: unused variable ‘i’ >> testprog.cc:6: warning: unused variable ‘j’ >> >> Compilation finished at Thu Jun 29 15:01:30 >> ---------------------------------------------------------------- >> >> The strange characters around a variable are(I have typed the >> backslashes and numbers so that they are displayed properly here): >> on left hand side: â\200\230 >> on right hand side: â\200\231 > > > What you see here is UTF-8 represented as 8bit: > > U+2018 = E2 80 98 : LEFT SINGLE QUOTATION MARK = ‘ > U+2019 = E2 80 99 : RIGHT SINGLE QUOTATION MARK = ’ > > â is E2 in hex > 200 oct is 80 in hex > 230 oct and 231 oct are 98 resp. 99 in hex. > > Make the *compilation* buffer be encoded in UTF-8 or make your LANG or > LC_CTYPE environment variables 8 bit -- could be there is some option > in your g++ to stay in 8 bit when printing some message. > > -- > Greetings > > Pete > > “Computers are good at following instructions, but not at reading your > mind.” > - D. E. Knuth, The TeXbook, Addison-Wesley 1984, 1986, 1996, p. 9 Yup, you are right. I just discovered another post in this newsgroup. This seems to have worked: M-x prefer-coding-system RET utf-8 RET which is from: http://groups.google.ca/group/gnu.emacs.help/browse_thread/thread/49787de21a638740/d3fdc305681db276?lnk=st&q=%22%5C200%5C230%22+emacs&rnum=2&hl=en#d3fdc305681db276 So, do I need to use the above command everything or is there a problem with the way emacs treats various locales? I have: $> set | grep -i lang LANG=en_CA.UTF-8 LANGUAGE=en_CA:en_US:en_GB:en ->HS