unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: tomas@tuxteam.de
To: help-gnu-emacs@gnu.org
Subject: Re: gcc errors in compiler output
Date: Sun, 27 Dec 2009 07:36:44 +0100	[thread overview]
Message-ID: <20091227063644.GA25246@tomas> (raw)
In-Reply-To: <87k4w9mdr1.fsf@hubble.informatimago.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Dec 27, 2009 at 02:01:22AM +0100, Pascal J. Bourguignon wrote:
> Julianne <juliannerc@gmail.com> writes:
> 
> > When using emacs 23.1 on Fedora 12, compiling a simple c file with an
> > error yields the following output:

[...]

> That's where your error lies.  It is not a colorization, but an
> encoding in utf-8 of the characters ‘ and ’:

[...]

> [pjb@hubble :0.0 tmp]$ export LC_CTYPE=en_US.ISO-8859-1
> [pjb@hubble :0.0 tmp]$ cc  -c -o a.o a.c
> a.c: In function 'main':
> a.c:3: error: expected ';' before 'x'

Exactly. Since ggcc 4.0 [1], the output of GCC is uTF-8, if the locale
allows. So your best bet is to do what Pascal suggests or even more
radically call "LC_ALL = C gcc" instead of just "gcc" to turn off this
"feature". You might tweak the environment your compile subprocess sees
with setenv in Emacs.

[1] See <http://gcc.gnu.org/gcc-4.0/changes.html> under "Caveats", and
search for the phrase "English-language diagnostic messages".

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLNwB8Bcgs9XrR2kYRApY9AJ90QCq+fXjTpFWEmXtL59IDN9QlmACfWs+I
7q1omxN3iDIdxhUkR2aDS3I=
=cUwj
-----END PGP SIGNATURE-----




  reply	other threads:[~2009-12-27  6:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-27  0:05 gcc errors in compiler output Julianne
2009-12-27  1:01 ` Pascal J. Bourguignon
2009-12-27  6:36   ` tomas [this message]
2009-12-27 22:21 ` Vagn Johansen

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=20091227063644.GA25246@tomas \
    --to=tomas@tuxteam.de \
    --cc=help-gnu-emacs@gnu.org \
    /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).