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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: v24.3.1: set-terminal-coding-system is not working when connecting t


From: Stefan Monnier
Subject: Re: v24.3.1: set-terminal-coding-system is not working when connecting to the server through a new frame
Date: Fri, 31 Jan 2014 08:23:35 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> I have been having this problem in v24.3 (worked fine in v23.1.1). When I
> try to connect to the server from a new frame created by running the
> command emacsclient -nw -c filename, it does not set the terminal coding
> system (init.el: (set-terminal-coding-system 'utf-8)).

set-terminal-coding-system changes the coding system of the *current*
terminal, so it does not affect terminals you might create later
(e.g. with emacsclient).

You might like to use tty-setup-hook to run set-terminal-coding-system
after every emacsclient connection.  But a simpler solution might be to
make sure your locale is using utf-8, so that Emacs's terminals will all
default to using utf-8 as well.


        Stefan




reply via email to

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