help-gnu-emacs
[Top][All Lists]
Advanced

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]