unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs charset in compilation (M-x compile)
@ 2007-11-02 11:49 gallows
  2007-11-02 19:40 ` Xah
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gallows @ 2007-11-02 11:49 UTC (permalink / raw)
  To: help-gnu-emacs

Hi there,

I have a tedious trouble when I use "compile" command, my output is
something like this:

-*- mode: compilation; default-directory: "/tmp/" -*-
Compilation started at Fri Nov  2 12:41:16

make -s foo
foo.c: In function â\200\230mainâ\200\231:
foo.c:5: error: â\200\230dummyâ\200\231 undeclared (first use in this
function)

My locale use UTF-8 charset. How could I resolve that?

Thanks in advance,

s.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs charset in compilation (M-x compile)
  2007-11-02 11:49 Emacs charset in compilation (M-x compile) gallows
@ 2007-11-02 19:40 ` Xah
  2007-11-02 21:01 ` Peter Dyballa
       [not found] ` <mailman.2911.1194037271.18990.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 4+ messages in thread
From: Xah @ 2007-11-02 19:40 UTC (permalink / raw)
  To: help-gnu-emacs

you need to narrow down the prob a bit.

• does this happen in shell without involving emacs at all?
If so, first solve the probe in shell. e.g. check your local, and any
tool's support for the char set.

• if it doesn't happen in shell, but happens in emacs. Then, try to
run it with “M-x shell”. (as opposed to running “M-x compile”) If the
problem happens, then, probably because your emacs's shell env var
isn't the same as your shell. Check it...

• if it doesn't happen in M-x shell but with M-x compile, then we can
discuss further...

  Xah
  xah@xahlee.org
∑ http://xahlee.org/

On Nov 2, 4:49 am, gallows <g4ll...@gmail.com> wrote:
> Hi there,
>
> I have a tedious trouble when I use "compile" command, my output is
> something like this:
>
> -*- mode: compilation; default-directory: "/tmp/" -*-
> Compilation started at Fri Nov  2 12:41:16
>
> make -s foo
> foo.c: In function â\200\230mainâ\200\231:
> foo.c:5: error: â\200\230dummyâ\200\231 undeclared (first use in this
> function)
>
> My locale use UTF-8 charset. How could I resolve that?
>
> Thanks in advance,
>
> s.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs charset in compilation (M-x compile)
  2007-11-02 11:49 Emacs charset in compilation (M-x compile) gallows
  2007-11-02 19:40 ` Xah
@ 2007-11-02 21:01 ` Peter Dyballa
       [not found] ` <mailman.2911.1194037271.18990.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2007-11-02 21:01 UTC (permalink / raw)
  To: gallows; +Cc: help-gnu-emacs


Am 02.11.2007 um 12:49 schrieb gallows:

> foo.c: In function â\200\230mainâ\200\231:
> foo.c:5: error: â\200\230dummyâ\200\231 undeclared (first use in this
> function)
>
> My locale use UTF-8 charset. How could I resolve that?

Is the *compilation* buffer in UTF-8, too? Starting at the left with  
``-u:%*-  *compilation*´´?

What you see is the three bytes that make the UTF-8 representation of  
the typographical quotes ‘’, i.e. #xE2 #x80 #x98, #xE2 #x80 #x99.  
Could be a

	(prefer-coding-system	 'utf-8)

is just missing in ~/.emacs ... or some customisation for compilation  
mode!

--
Greetings

   Pete

Some day we may discover how to make magnets that can point in any  
direction.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs charset in compilation (M-x compile)
       [not found] ` <mailman.2911.1194037271.18990.help-gnu-emacs@gnu.org>
@ 2007-11-03 12:02   ` gallows
  0 siblings, 0 replies; 4+ messages in thread
From: gallows @ 2007-11-03 12:02 UTC (permalink / raw)
  To: help-gnu-emacs

On 2 Nov, 22:01, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 02.11.2007 um 12:49 schrieb gallows:
>
> > foo.c: In function â\200\230mainâ\200\231:
> > foo.c:5: error: â\200\230dummyâ\200\231 undeclared (first use in this
> > function)
>
> > My locale use UTF-8 charset. How could I resolve that?
>
> Is the *compilation* buffer in UTF-8, too? Starting at the left with
> ``-u:%*-  *compilation*´´?
>
> What you see is the three bytes that make the UTF-8 representation of
> the typographical quotes '', i.e. #xE2 #x80 #x98, #xE2 #x80 #x99.
> Could be a
>
>         (prefer-coding-system    'utf-8)
>
> is just missing in ~/.emacs ... or some customisation for compilation
> mode!
>

I found an error in my ~/.emacs, there was a '(current-language-
environment "Latin-1")', which was obviously incorrect for my env
setup. Now it's okay and works smoothly.

Thanks,

s.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-03 12:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-02 11:49 Emacs charset in compilation (M-x compile) gallows
2007-11-02 19:40 ` Xah
2007-11-02 21:01 ` Peter Dyballa
     [not found] ` <mailman.2911.1194037271.18990.help-gnu-emacs@gnu.org>
2007-11-03 12:02   ` gallows

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).