unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: varun <varun.net@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
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 18:43:25 -0500	[thread overview]
Message-ID: <CAJ7z5tnpDmKT6QwhFB1qw9oB2mwySrobCdbHsO6Ai9J7=b=+Ww@mail.gmail.com> (raw)
In-Reply-To: <jwvr47o2stp.fsf-monnier+gmane.emacs.help@gnu.org>

Thanks Stefan for the responding.

I looked at the init.el file and have the following entry that sets the
locale:
(setq locale-coding-system 'utf-8)

Is this not enough or am I not using it correctly?


Got these from:
https://stackoverflow.com/questions/2901541/which-coding-system-should-i-use-in-emacs
(setq utf-translate-cjk-mode nil) ; disable CJK coding/encoding
(Chinese/Japanese/Korean characters)
  (set-language-environment 'utf-8)
  (set-keyboard-coding-system 'utf-8-mac) ; For old Carbon emacs on OS X
only
  (setq locale-coding-system 'utf-8)
  (set-default-coding-systems 'utf-8)
  (set-terminal-coding-system 'utf-8)
  (unless (eq system-type 'windows-nt)
   (set-selection-coding-system 'utf-8))
  (prefer-coding-system 'utf-8)

Thanks



On Fri, Jan 31, 2014 at 8:23 AM, Stefan Monnier <monnier@iro.umontreal.ca>wrote:

> > 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	other threads:[~2014-01-31 23:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-31  1:53 v24.3.1: set-terminal-coding-system is not working when connecting to the server through a new frame varun
2014-01-31 13:23 ` Stefan Monnier
2014-01-31 23:43   ` varun [this message]
     [not found]   ` <mailman.13417.1391211851.10748.help-gnu-emacs@gnu.org>
2014-02-01  4:41     ` Stefan Monnier
2014-02-01  5:30       ` varun
     [not found]       ` <mailman.13426.1391232654.10748.help-gnu-emacs@gnu.org>
2014-02-01  5:36         ` Rusi

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ7z5tnpDmKT6QwhFB1qw9oB2mwySrobCdbHsO6Ai9J7=b=+Ww@mail.gmail.com' \
    --to=varun.net@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).