[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: encoding in *compilation-buffer*
From: |
tlanglois |
Subject: |
Re: encoding in *compilation-buffer* |
Date: |
Sat, 19 Feb 2011 17:30:29 -0800 (PST) |
So the problem is caused by environment settings that affect how gcc prints
messages.
Here is hello.c: void main() { int a = 3 }
M- x shell then:
~/code/c$ gcc hello.c
hello.c: In function âmainâ:
hello.c:1: error: expected â,â or â;â before â}â token
hello.c:1: error: expected declaration or statement at end of input
~/code/c$ export LC_CTYPE=C
~/code/c$ gcc hello.c
hello.c: In function 'main':
hello.c:1: error: expected ',' or ';' before '}' token
hello.c:1: error: expected declaration or statement at end of input
The solution is to set the variable when starting emacs. When I put (setenv
"LC_CTYPE" "C")
in my .emacs file everything is OK including when compiling with M-x compile
I don't know if setting this environment variable for the whole emacs
session may cause undesirable side effects.
Thibault
--
View this message in context:
http://old.nabble.com/encoding-in-*compilation-buffer*-tp30934972p30968731.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
- encoding in *compilation-buffer*, tlanglois, 2011/02/16
- Re: encoding in *compilation-buffer*, Peter Dyballa, 2011/02/16
- Re: encoding in *compilation-buffer*, tlanglois, 2011/02/17
- Re: encoding in *compilation-buffer*, Peter Dyballa, 2011/02/17
- Re: encoding in *compilation-buffer*, tlanglois, 2011/02/19
- Re: encoding in *compilation-buffer*, Peter Dyballa, 2011/02/19
- Re: encoding in *compilation-buffer*,
tlanglois <=
- Re: encoding in *compilation-buffer*, Peter Dyballa, 2011/02/20
- Re: encoding in *compilation-buffer*, tlanglois, 2011/02/20
- Re: encoding in *compilation-buffer*, tlanglois, 2011/02/20
- Re: encoding in *compilation-buffer*, Oleksandr Gavenko, 2011/02/20
- Re: encoding in *compilation-buffer*, tlanglois, 2011/02/27
- Re: encoding in *compilation-buffer*, Peter Dyballa, 2011/02/20
- Re: encoding in *compilation-buffer*, Oleksandr Gavenko, 2011/02/19
- Message not available
- Re: encoding in *compilation-buffer*, Alain Ketterlin, 2011/02/19
- Re: encoding in *compilation-buffer*, Peter Dyballa, 2011/02/19
- Message not available
- Re: encoding in *compilation-buffer*, Alain Ketterlin, 2011/02/19