From: Pascal Bourguignon <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Correct Display of UTF-8-coded Compilation Warnings/Errors inside compilation-mode
Date: Tue, 22 May 2007 03:34:39 +0200 [thread overview]
Message-ID: <87tzu5y72o.fsf@thalassa.lan.informatimago.com> (raw)
In-Reply-To: 1179789955.603466.290620@b40g2000prd.googlegroups.com
Nordlöw <per.nordlow@gmail.com> writes:
> 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.
Put:
(set-default-coding-systems 'utf-8)
in ~/.emacs
Or:
(add-hook 'compilation-mode-hook
(lambda () (set-process-coding-system 'utf-8)))
if you want to use utf-8 only for compiling, but I doubt it...
> I guess we should use the result of (getenv "LANG") to somehow setup
> the buffer-file-coding system.
That could help, but the situations are oftem more complex, you may
want to use different coding systems with different files or
processes...
--
__Pascal Bourguignon__ http://www.informatimago.com/
NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.
next prev parent reply other threads:[~2007-05-22 1:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-21 23:25 Correct Display of UTF-8-coded Compilation Warnings/Errors inside compilation-mode Nordlöw
2007-05-22 1:34 ` Pascal Bourguignon [this message]
2007-05-22 6:54 ` Eli Zaretskii
2007-05-22 6:53 ` Eli Zaretskii
2007-05-22 9:14 ` Peter Dyballa
[not found] ` <mailman.968.1179825269.32220.help-gnu-emacs@gnu.org>
2007-05-22 12:31 ` Nordlöw
2007-05-22 14:16 ` Nordlöw
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tzu5y72o.fsf@thalassa.lan.informatimago.com \
--to=pjb@informatimago.com \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.