From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Correct Display of UTF-8-coded Compilation Warnings/Errors inside compilation-mode Date: Tue, 22 May 2007 09:53:13 +0300 Message-ID: References: <1179789955.603466.290620@b40g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1179816823 20164 80.91.229.12 (22 May 2007 06:53:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 May 2007 06:53:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 22 08:53:41 2007 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 1HqOFU-0000dn-FJ for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2007 08:53:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqOFU-0004tV-57 for geh-help-gnu-emacs@m.gmane.org; Tue, 22 May 2007 02:53:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HqOFE-0004qd-Q1 for help-gnu-emacs@gnu.org; Tue, 22 May 2007 02:53:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HqOFD-0004oQ-F6 for help-gnu-emacs@gnu.org; Tue, 22 May 2007 02:53:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqOFD-0004oL-6L for help-gnu-emacs@gnu.org; Tue, 22 May 2007 02:53:19 -0400 Original-Received: from romy.inter.net.il ([213.8.233.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HqOFC-0001en-Jl for help-gnu-emacs@gnu.org; Tue, 22 May 2007 02:53:18 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-235-193.inter.net.il [84.229.235.193]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id HWW70115 (AUTH halo1); Tue, 22 May 2007 09:53:10 +0300 (IDT) In-reply-to: <1179789955.603466.290620@b40g2000prd.googlegroups.com> (message from =?iso-8859-1?B?Tm9yZGz2dw==?= on 21 May 2007 16:25:55 -0700) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (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:44243 Archived-At: > From: =?iso-8859-1?B?Tm9yZGz2dw==?= > Date: 21 May 2007 16:25:55 -0700 > > I am using the locale sv_SE.UTF-8 so GCC speaks my mother-tongue to > me, which is very nice. > > How do I make compilation-mode read and respect this locale when I > compile from within emacs, inside compilation-mode? My installation > (latest CVS version of Emacs) interprets it iso-latin-1. That's strange, I think Emacs should use UTF-8 by default in your locale. What is the value of default-buffer-file-coding-system? Also, does this behavior of M-x compile change in any way if you invoke Emacs with "emacs -Q"? > I guess we should use the result of (getenv "LANG") to somehow setup > the buffer-file-coding system. Emacs already does that at startup.