From: "H.S." <hs.samix@gmail.com>
Subject: Re: font or face problem in emacs
Date: Thu, 29 Jun 2006 18:37:31 -0400 [thread overview]
Message-ID: <e81knb$psd$1@sea.gmane.org> (raw)
In-Reply-To: <7F44E50F-B4E1-4692-A021-D78D5596956D@Web.DE>
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
next prev parent reply other threads:[~2006-06-29 22:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-29 20:50 font or face problem in emacs H.S.
2006-06-29 22:18 ` Peter Dyballa
2006-06-29 22:37 ` H.S. [this message]
2006-06-30 8:41 ` Peter Dyballa
2006-06-30 16:13 ` H.S.
2006-06-29 22:47 ` Peter Dyballa
2006-06-29 23:34 ` H.S.
2006-06-30 9:03 ` Peter Dyballa
2006-06-30 12:03 ` Eli Zaretskii
2006-06-30 21:41 ` Peter Dyballa
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='e81knb$psd$1@sea.gmane.org' \
--to=hs.samix@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).