From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Karl Voit Newsgroups: gmane.emacs.help Subject: Re: Emacs 24.5.1 has wrong charset on yanked text with Windows (was: Operating on yanked region) Date: Wed, 18 May 2016 22:30:47 +0200 Organization: www.karl-voit.at Message-ID: <2016-05-18T22-29-50@devnull.Karl-Voit.at> References: <2016-05-18T13-02-10@devnull.Karl-Voit.at> <2016-05-18T14-10-52@devnull.Karl-Voit.at> <20160518123117.GA13317@tuxteam.de> <2016-05-18T17-35-17@devnull.Karl-Voit.at> <83posj2pze.fsf@gnu.org> Reply-To: Karl Voit NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1463603506 13642 80.91.229.3 (18 May 2016 20:31:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 May 2016 20:31:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 18 22:31:34 2016 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 1b387w-0001v3-U1 for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2016 22:31:33 +0200 Original-Received: from localhost ([::1]:46998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b387w-0006t2-5o for geh-help-gnu-emacs@m.gmane.org; Wed, 18 May 2016 16:31:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b387X-0006sr-81 for help-gnu-emacs@gnu.org; Wed, 18 May 2016 16:31:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b387T-0000h4-4W for help-gnu-emacs@gnu.org; Wed, 18 May 2016 16:31:07 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:48578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b387S-0000gm-SY for help-gnu-emacs@gnu.org; Wed, 18 May 2016 16:31:03 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b387N-0001Yk-Ty for help-gnu-emacs@gnu.org; Wed, 18 May 2016 22:30:58 +0200 Original-Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 May 2016 22:30:57 +0200 Original-Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 May 2016 22:30:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: friends.grml.info X-GPG-Key: http://www.Karl-Voit.at/Karl_Voit_GnuPG_public_key.gpg X-Registered-Linux-User: 224337 X-Confession: Pastafarian http://www.venganza.org/ User-Agent: slrn/pre1.0.0-18 (Linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:110057 Archived-At: * Eli Zaretskii wrote: >> From: Karl Voit >> Date: Wed, 18 May 2016 17:53:51 +0200 >> >> ,---- >> | selection-coding-system is a variable defined in `select.el'. >> | Its value is iso-latin-1-dos >> | Original value was nil >> `---- >> >> I once set this to 'utf-8 in my init.el. The Emacs help further >> suggests setting it to 'utf-16le-dos instead when running on >> Windows. With switching to this setting, the clipboard gets yanked >> properly! :-) > > You shouldn't set selection-coding-system to any value on MS-Windows, > just leave it alone. It will work regardless. Setting it to anything > is asking for trouble, as it forces Emacs to use that encoding instead > of using UTF-16 when available in the clipboard. Before I set it to 'utf-16le-dos as suggested by the manual for Windows, I tested with no value and it did not yank correctly. -- All in all, one of the most disturbing things today is the definitive fact that the NSA, GCHQ, and many more government organizations are massively terrorizing the freedom of us and the next generations. http://Karl-Voit.at