From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: varun Newsgroups: gmane.emacs.help Subject: Re: v24.3.1: set-terminal-coding-system is not working when connecting to the server through a new frame Date: Sat, 1 Feb 2014 00:30:10 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1391232661 29239 80.91.229.3 (1 Feb 2014 05:31:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Feb 2014 05:31:01 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 01 06:31:05 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W9TAX-0006jm-4L for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Feb 2014 06:31:05 +0100 Original-Received: from localhost ([::1]:59503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9TAW-0003II-KC for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Feb 2014 00:31:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9TAK-0003H8-Me for help-gnu-emacs@gnu.org; Sat, 01 Feb 2014 00:30:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9TAJ-0007KY-Il for help-gnu-emacs@gnu.org; Sat, 01 Feb 2014 00:30:52 -0500 Original-Received: from mail-vc0-x22d.google.com ([2607:f8b0:400c:c03::22d]:49584) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9TAJ-0007KJ-De for help-gnu-emacs@gnu.org; Sat, 01 Feb 2014 00:30:51 -0500 Original-Received: by mail-vc0-f173.google.com with SMTP id ld13so3498750vcb.4 for ; Fri, 31 Jan 2014 21:30:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=dq4tnho7KPe3CKC1lxVLjJP6V7LSj/37raggrKZlJ9U=; b=wlygy8S8WOGzuGGProzA63Y6bkyV/w8SaKuA9maebW+X/nOIsvSPwdaQERSkuQaTb6 RjM+zS/NDUplxleeKbOSCyzsOysI267Rd1acLMk6A5CJ/WGL+yUwfnQWi4JxWTVqsP/I PJosSdLOC+wTLkCUH9tiJzcDTj33EXMRf7OrPKYTNh9TYUwYCGdjgy3JslNDdLaJSlqn XwGCoNCH2bLs6b5243iJLHWycC0tmzscDg2FKARo0mSgFVD4FrhiBiCQQpx8pgzFtNaq HpgUhjdfkHXu4ybNi/o4nccOBcnuwJJNrils/Mt2j/Qw0rSRKxuX1XKPnEdBoWz3DCNQ nNuA== X-Received: by 10.58.132.203 with SMTP id ow11mr19654724veb.1.1391232650695; Fri, 31 Jan 2014 21:30:50 -0800 (PST) Original-Received: by 10.58.205.136 with HTTP; Fri, 31 Jan 2014 21:30:10 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::22d X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95871 Archived-At: Stefan, I have struggled this for hours upon end for many days and over a period of weeks, finally settling for v23.1.1 and then using a function bound to C-c q in v24.3.1 to set the terminal encoding within emacs after the frame was open. The solution you have provided is extremely simple and elegant, got rid of many lines of code in the init.el file and finally some peace of mind. I can't thank you enough for helping me out with this. Thanks a ton! On Fri, Jan 31, 2014 at 11:41 PM, Stefan Monnier wrote: > > 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? > > No, the locale is something that comes from outside Emacs, for instance > set in the $LANG environment variable. > > > Stefan >