From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: garbage chars when pasting French chars into emacs Date: Thu, 02 Feb 2012 05:55:18 +0200 Message-ID: <83pqdxq47t.fsf@gnu.org> References: <4F29A386.5040901@mousecar.com> <83ty3ap7t1.fsf@gnu.org> <4F29F75A.9070301@mousecar.com> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1328155045 29012 80.91.229.3 (2 Feb 2012 03:57:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2012 03:57:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 02 04:57:24 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RsnnW-0005mL-Sg for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Feb 2012 04:57:23 +0100 Original-Received: from localhost ([::1]:50986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsnnW-0000Bb-Fd for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Feb 2012 22:57:22 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsnnS-0000BP-MK for help-gnu-emacs@gnu.org; Wed, 01 Feb 2012 22:57:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsnnR-0006C8-84 for help-gnu-emacs@gnu.org; Wed, 01 Feb 2012 22:57:18 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:50253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsnnQ-0006Bi-W8 for help-gnu-emacs@gnu.org; Wed, 01 Feb 2012 22:57:17 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LYQ00E00YX4DR00@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Thu, 02 Feb 2012 05:57:15 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.223.7]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LYQ00EEYYZEAC30@a-mtaout22.012.net.il> for help-gnu-emacs@gnu.org; Thu, 02 Feb 2012 05:57:15 +0200 (IST) In-reply-to: <4F29F75A.9070301@mousecar.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 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:83581 Archived-At: > Date: Wed, 01 Feb 2012 21:39:22 -0500 > From: ken > > > What is your value of selection-coding-system? Try setting it to > > something like ctext-with-extensions. > > Thanks, Eli, > > Immediately prior to doing the copy-and-paste I ran all of these: > > (set-language-environment 'UTF-8) > (set-default-coding-systems 'utf-8) > (setq file-name-coding-system 'utf-8) > (setq default-buffer-file-coding-system 'utf-8) > (setq coding-system-for-write 'utf-8) > (set-keyboard-coding-system 'utf-8) > (set-terminal-coding-system 'utf-8) > (set-clipboard-coding-system 'utf-8) > (set-selection-coding-system 'utf-8) > (prefer-coding-system 'utf-8) > (modify-coding-system-alist 'process "\\*shell\\*\\'" 'utf-8-unix) Not a good idea, I'm afraid: the UTF-8 support in Emacs 21 left a lot to be desired. > Following your advice, I ran > > (set-selection-coding-system 'ctext-with-extensions) > > and then did the same copy-and-paste again. This got more of the > characters correct, but not all of them. Can you show the original text, and then what you have after pasting? I need to see which characters aren't pasted correctly.