From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Chong Yidong" Newsgroups: gmane.emacs.devel Subject: Re: copying to clipboard silently discards lines Date: Fri, 25 Feb 2005 21:53:39 -0500 (EST) Message-ID: <1401.220.255.172.231.1109386419.squirrel@www.stupidchicken.com> References: <2150.220.255.172.231.1109220271.squirrel@220.255.172.231> <1515.220.255.172.231.1109259901.squirrel@220.255.172.231> <1156.220.255.172.231.1109344154.squirrel@www.stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1109387098 9191 80.91.229.2 (26 Feb 2005 03:04:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Feb 2005 03:04:58 +0000 (UTC) Cc: Benjamin Riefenstahl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 26 04:04:57 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D4sFV-0001M1-Q9 for ged-emacs-devel@m.gmane.org; Sat, 26 Feb 2005 04:04:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D4sXK-0001xB-Eb for ged-emacs-devel@m.gmane.org; Fri, 25 Feb 2005 22:22:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D4sWB-0001fL-3L for emacs-devel@gnu.org; Fri, 25 Feb 2005 22:21:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D4sW2-0001ar-8D for emacs-devel@gnu.org; Fri, 25 Feb 2005 22:21:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D4sW1-0001Zc-Qv for emacs-devel@gnu.org; Fri, 25 Feb 2005 22:21:13 -0500 Original-Received: from [64.21.80.18] (helo=shark.dnsvelocity.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D4s5d-0000f3-CV for emacs-devel@gnu.org; Fri, 25 Feb 2005 21:53:57 -0500 Original-Received: from stupidch by shark.dnsvelocity.com with local (Exim 4.44) id 1D4s5L-0004gi-Uz; Fri, 25 Feb 2005 21:53:39 -0500 Original-Received: from 220.255.172.231 ([220.255.172.231]) (SquirrelMail authenticated user cyd@stupidchicken.com) by www.stupidchicken.com with HTTP; Fri, 25 Feb 2005 21:53:39 -0500 (EST) In-Reply-To: Original-To: emacs-devel@gnu.org User-Agent: SquirrelMail/1.4.4 X-Priority: 3 (Normal) Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shark.dnsvelocity.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [32675 33085] / [47 12] X-AntiAbuse: Sender Address Domain - stupidchicken.com X-Source: /usr/local/cpanel/3rdparty/bin/php X-Source-Args: /usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/base/3rdparty/squirrelmail/src/compose.php X-Source-Dir: :/base/3rdparty/squirrelmail/src 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33826 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33826 "Benjamin Riefenstahl" wrote: > Grep is our friend ;-). The coding-system (and its CCL programs) is > created in lisp/international/ccl.el using (define-ccl-program ...). > The parameter BUFFER_MAGNIFICATION for that function is set as 1 there > for the encoders (ccl-encode-mule-utf-16le, ccl-encode-mule-utf-16be, > ccl-encode-mule-utf-16le-with-signature, > ccl-encode-mule-utf-16be-with-signature), so that might well be the > problem. > > Can you try and replace that 1 with 2 and see if your problem goes > away? Yes, that did the trick. Can someone verify that this is the correct fix? Thanks, Ben. *** emacs/lisp/international/utf-16.el~ Sat Feb 26 10:46:46 2005 --- emacs/lisp/international/utf-16.el Sat Feb 26 10:47:03 2005 *************** *** 391,397 **** (define-ccl-program ccl-encode-mule-utf-16le ! `(1 ,utf-16le-encode-loop) "Encode to UTF-16LE (little endian without signature). Characters from the charsets ascii, eight-bit-control, --- 391,397 ---- (define-ccl-program ccl-encode-mule-utf-16le ! `(2 ,utf-16le-encode-loop) "Encode to UTF-16LE (little endian without signature). Characters from the charsets ascii, eight-bit-control, *************** *** 401,407 **** Others are encoded as U+FFFD.") (define-ccl-program ccl-encode-mule-utf-16be ! `(1 ,utf-16be-encode-loop) "Encode to UTF-16BE (big endian without signature). Characters from the charsets ascii, eight-bit-control, --- 401,407 ---- Others are encoded as U+FFFD.") (define-ccl-program ccl-encode-mule-utf-16be ! `(2 ,utf-16be-encode-loop) "Encode to UTF-16BE (big endian without signature). Characters from the charsets ascii, eight-bit-control, *************** *** 411,417 **** Others are encoded as U+FFFD.") (define-ccl-program ccl-encode-mule-utf-16le-with-signature ! `(1 ((write #xFF) (write #xFE) ,@utf-16le-encode-loop)) --- 411,417 ---- Others are encoded as U+FFFD.") (define-ccl-program ccl-encode-mule-utf-16le-with-signature ! `(2 ((write #xFF) (write #xFE) ,@utf-16le-encode-loop)) *************** *** 423,429 **** Others are encoded as U+FFFD.") (define-ccl-program ccl-encode-mule-utf-16be-with-signature ! `(1 ((write #xFE) (write #xFF) ,@utf-16be-encode-loop)) --- 423,429 ---- Others are encoded as U+FFFD.") (define-ccl-program ccl-encode-mule-utf-16be-with-signature ! `(2 ((write #xFE) (write #xFF) ,@utf-16be-encode-loop))