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: Thu, 29 Jul 2004 09:38:20 -0700 (PDT) Organization: Sony Electronics Inc. Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <20040729.093820.01368740.Takaaki.Ota@am.sony.com> References: <20040728.114250.207586020.Takaaki.Ota@am.sony.com> <20040728.145102.186974477.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 1091119223 21038 80.91.224.253 (29 Jul 2004 16:40:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jul 2004 16:40:23 +0000 (UTC) Cc: eliz@gnu.org, jasonr@gnu.org, emacs-devel@gnu.org, monnier@iro.umontreal.ca, handa@m17n.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 29 18:39:57 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 1BqDwj-0003mu-00 for ; Thu, 29 Jul 2004 18:39:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BqDzv-0003WI-8P for ged-emacs-devel@m.gmane.org; Thu, 29 Jul 2004 12:43:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BqDzo-0003WC-AF for emacs-devel@gnu.org; Thu, 29 Jul 2004 12:43:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BqDzn-0003W0-Ie for emacs-devel@gnu.org; Thu, 29 Jul 2004 12:43:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BqDzn-0003Vx-HR for emacs-devel@gnu.org; Thu, 29 Jul 2004 12:43:07 -0400 Original-Received: from [160.33.82.68] (helo=mail1.fw-sj.sony.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BqDvZ-0006ty-V8; Thu, 29 Jul 2004 12:38:46 -0400 Original-Received: from mail3.sjc.in.sel.sony.com (mail3.sjc.in.sel.sony.com [43.134.1.211]) by mail1.fw-sj.sony.com (8.12.11/8.12.11) with ESMTP id i6TGcLLr023769; Thu, 29 Jul 2004 16:38:26 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 i6TGcLlv027304; Thu, 29 Jul 2004 16:38:21 GMT Original-To: Benjamin.Riefenstahl@epost.de In-Reply-To: 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:26106 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26106 Benny, You are right! Leaving the clipboard-coding-system as the default makes it work fine now. Thank you very much. -Tak Thu, 29 Jul 2004 13:42:43 +0200: Benjamin Riefenstahl wrote: > Hi Tak, > > > Tak Ota writes: > >> After [...] (set-clipboard-coding-system 'utf-16-le) > > > After having applied your patch I noticed something strange. There > > is a loss of character when copying from w32 application to emacs. > > That may be an effect of using 'utf-16-le. Try 'utf-16le instead (no > dash before the "le"). Those two are slightly different, because > 'utf-16-le adds and expects a byte-order-mark as first character. > > > I am testing this on windoze XP pro. > > Than 'utf-16le should be the default anyway. You should be able to > just drop the call to set-clipboard-coding-system in your .emacs. > > > benny