From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: gcc errors in compiler output Date: Sun, 27 Dec 2009 07:36:44 +0100 Message-ID: <20091227063644.GA25246@tomas> References: <87k4w9mdr1.fsf@hubble.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1261896107 16072 80.91.229.12 (27 Dec 2009 06:41:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Dec 2009 06:41:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 27 07:41:40 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NOmos-0002f9-MF for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Dec 2009 07:41:38 +0100 Original-Received: from localhost ([127.0.0.1]:49891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOmos-0001mw-S6 for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Dec 2009 01:41:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NOmo4-0001kd-Ig for help-gnu-emacs@gnu.org; Sun, 27 Dec 2009 01:40:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NOmny-0001f9-V8 for help-gnu-emacs@gnu.org; Sun, 27 Dec 2009 01:40:47 -0500 Original-Received: from [199.232.76.173] (port=46010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NOmny-0001ex-EJ for help-gnu-emacs@gnu.org; Sun, 27 Dec 2009 01:40:42 -0500 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:50756 helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NOmny-000566-6m for help-gnu-emacs@gnu.org; Sun, 27 Dec 2009 01:40:42 -0500 Original-Received: by www.elogos.de (Postfix, from userid 1000) id BA90A90048; Sun, 27 Dec 2009 07:36:44 +0100 (CET) Content-Disposition: inline In-Reply-To: <87k4w9mdr1.fsf@hubble.informatimago.com> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70885 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, Dec 27, 2009 at 02:01:22AM +0100, Pascal J. Bourguignon wrote: > Julianne writes: >=20 > > 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 =E2=80=98 and =E2=80=99: [...] > [pjb@hubble :0.0 tmp]$ export LC_CTYPE=3Den_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 =3D 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 under "Caveats", and search for the phrase "English-language diagnostic messages". Regards - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLNwB8Bcgs9XrR2kYRApY9AJ90QCq+fXjTpFWEmXtL59IDN9QlmACfWs+I 7q1omxN3iDIdxhUkR2aDS3I=3D =3DcUwj -----END PGP SIGNATURE-----