unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Chong Yidong" <cyd@stupidchicken.com>
Cc: Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
Subject: Re: copying to clipboard silently discards lines
Date: Fri, 25 Feb 2005 21:53:39 -0500 (EST)	[thread overview]
Message-ID: <1401.220.255.172.231.1109386419.squirrel@www.stupidchicken.com> (raw)
In-Reply-To: <m3r7j4wo0x.fsf@seneca.benny.turtle-trading.net>

"Benjamin Riefenstahl" <b.riefenstahl@turtle-trading.net> 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))

  reply	other threads:[~2005-02-26  2:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2150.220.255.172.231.1109220271.squirrel@220.255.172.231>
     [not found] ` <1515.220.255.172.231.1109259901.squirrel@220.255.172.231>
2005-02-25 15:09   ` copying to clipboard silently discards lines Chong Yidong
2005-02-25 17:24     ` Benjamin Riefenstahl
2005-02-26  2:53       ` Chong Yidong [this message]
2005-02-28  7:20         ` Kenichi Handa
2005-02-28 19:13           ` Benjamin Riefenstahl
2005-03-08  9:10             ` Kenichi Handa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1401.220.255.172.231.1109386419.squirrel@www.stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=b.riefenstahl@turtle-trading.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).