From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tak Ota Newsgroups: gmane.emacs.devel Subject: Re: Unicode support for the MS Windows clipboard Date: Wed, 28 Jul 2004 14:51:02 -0700 (PDT) Organization: Sony Electronics Inc. Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <20040728.145102.186974477.Takaaki.Ota@am.sony.com> References: <20040728.114250.207586020.Takaaki.Ota@am.sony.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1091051589 12899 80.91.224.253 (28 Jul 2004 21:53:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Jul 2004 21:53:09 +0000 (UTC) Cc: eliz@gnu.org, handa@m17n.org, jasonr@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 28 23:52:58 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 1BpwM6-00052W-00 for ; Wed, 28 Jul 2004 23:52:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpwPG-0006wB-5L for ged-emacs-devel@m.gmane.org; Wed, 28 Jul 2004 17:56:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BpwOy-0006kJ-5J for emacs-devel@gnu.org; Wed, 28 Jul 2004 17:55:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BpwOt-0006fX-Jh for emacs-devel@gnu.org; Wed, 28 Jul 2004 17:55:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpwOr-0006cX-RD for emacs-devel@gnu.org; Wed, 28 Jul 2004 17:55:51 -0400 Original-Received: from [160.33.98.75] (helo=mail8.fw-bc.sony.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BpwKI-000174-Np; Wed, 28 Jul 2004 17:51:06 -0400 Original-Received: from mail3.sjc.in.sel.sony.com (mail3.sjc.in.sel.sony.com [43.134.1.211]) by mail8.fw-bc.sony.com (8.12.11/8.12.11) with ESMTP id i6SLp4Rb022812; Wed, 28 Jul 2004 21:51:04 GMT Original-Received: from localhost ([43.191.18.96]) by mail3.sjc.in.sel.sony.com (8.12.11/8.12.11) with ESMTP id i6SLp3Z6027467; Wed, 28 Jul 2004 21:51:03 GMT Original-To: Benjamin.Riefenstahl@epost.de In-Reply-To: <20040728.114250.207586020.Takaaki.Ota@am.sony.com> X-Telephone: +1-858-942-3239 X-Fax------: +1-858-942-9142 X-SnailMail: 16450 West Bernardo Drive MZ7205, San Diego, CA 92127-1804 X-Mailer: Mew-4.0.66 on Emacs-21.3.50.1 (i386-msvc-nt5.1.2600) of 2004-07-28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26068 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26068 Benny, After having applied your patch I noticed something strange. There is a loss of character when copying from w32 application to emacs. The very first character gets lost when going from w32 to emacs. There is no loss when copying from emacs and pasting in w32 application. If I cut/copy a single character in w32 application emacs doesn't even notice the new clipboard data. I am testing this on windoze XP pro. -Tak Wed, 28 Jul 2004 11:42:50 -0700 (PDT): Tak Ota wrote: > Benny, > > After removing atexit(), kludging atexit_callback() into term_ntproc() > and (set-clipboard-coding-system 'utf-16-le) first time ever I can > share Japanese text between emacs and other application programs > through the clipboard. Thank you very much. I look forward to the > final implementation coming soon. > > -Tak > > Tue, 27 Jul 2004 14:24:14 +0200: Benjamin Riefenstahl wrote: > > > Hi Jason, > > > > Jason Rumney writes: > > > Make sure that rendering CF_TEXT does not clobber the CF_UNICODETEXT > > > that you just put there on the NT based versions of Windows that do > > > automatic conversions. It might be better to reverse the order. > > > > It's not a problem on W2K here and thinking about it, it would be a > > bug in the OS if it was, automatic conversion is supposed to be a > > fallback solution. But better be safe than sorry. See attached > > revised patch. > > > > benny > > > > > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel