From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Hanak Newsgroups: gmane.emacs.devel Subject: Windows clipboard copy/paste Date: Fri, 12 Nov 2004 15:14:31 -0600 Organization: Institute for Software Integrated Systems, Vanderbilt University Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1100294470 27350 80.91.229.6 (12 Nov 2004 21:21:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2004 21:21:10 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org-mXXj517/zsQ@public.gmane.org Fri Nov 12 22:21:05 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CSiqu-00063s-00 for ; Fri, 12 Nov 2004 22:21:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSizT-0003Nj-Tb for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2004 16:29:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSizL-0003NU-DP for emacs-devel-mXXj517/zsQ@public.gmane.org; Fri, 12 Nov 2004 16:29:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSizL-0003NI-0E for emacs-devel-mXXj517/zsQ@public.gmane.org; Fri, 12 Nov 2004 16:29:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSizK-0003NF-TZ for emacs-devel-mXXj517/zsQ@public.gmane.org; Fri, 12 Nov 2004 16:29:46 -0500 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CSiqb-0001wp-BX for emacs-devel-mXXj517/zsQ@public.gmane.org; Fri, 12 Nov 2004 16:20:45 -0500 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CSiqZ-0005zE-00 for ; Fri, 12 Nov 2004 22:20:43 +0100 Original-Received: from a139106.n1.vanderbilt.edu ([129.59.139.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Nov 2004 22:20:43 +0100 Original-Received: from dhanak by a139106.n1.vanderbilt.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Nov 2004 22:20:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel-mXXj517/zsQ@public.gmane.org Original-Lines: 41 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: a139106.n1.vanderbilt.edu X-Archive: encrypt User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:5vr9FCvBvDXT5uOCCiClEN0h/7s= X-BeenThere: emacs-devel-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: main.gmane.org gmane.emacs.devel:29785 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29785 Hi, (Disclaimer: I know this topic has been addressed several times before, but even after a considerable time of googling I was unable to find a definite answer, so here goes.) I'm using NT/Emacs 21.3.50.1 (some kind of custom build found on the web) under Windows XP (SP2): GNU Emacs 21.3.50.1 (i386-mingw-nt5.1.2600) of 2004-02-13 on BERATUNG4 And I have some trouble copying international text to/from the system clipboard. Most of the time I need to copy latin-2 characters (Hungarian being my mothertounge), although every once in a while it would be advantageous to be able to copy other international characters as well. If I take this accented sequence, for example "áéíóőűŐŰ", and copy it to the clipboard, the last four characters (which don't exist only in the latin-2 charset) become ????. In the other direction, if I copy a Hungarian accented 'ő' from another windows application onto the clipboard, and yank it into Emacs, I get 'o"' or 'õ'. Since I have x-select-enable-clipboard set to t, this messes up the Emacs-only copy/yank cycle, too. I tried playing around with 'set-selection-coding-system' and 'set-w32-system-coding-system', but it didn't really work. Setting the selection coding system *does* help a bit with the latin-2 characters, but it's still not perfect, because then an 'ő' copied from Emacs becomes 'õ' in other applications, and of course makes a mess of non latin-2 characters. No better luck with UTF-8 or UTF-16 either. Is there a solution, or I just have to bear with it? Thanks, -- David Hanak - Research Engineer Institute for Software Integrated Systems | http://www.isis.vanderbilt.edu Vanderbilt University | Work phone: (615) 343 1319 Box 1829, Station B, Nashville, TN 37235 | PGP key ID: 266BC45F