From: Eli Zaretskii <eliz@gnu.org>
To: "Mattias Engdegård" <mattias.engdegard@gmail.com>
Cc: alan@idiocy.org, 64697@debbugs.gnu.org
Subject: bug#64697: 29.0.92: cannot paste NUL on macOS (regression from Emacs 28)
Date: Tue, 18 Jul 2023 14:28:28 +0300 [thread overview]
Message-ID: <83h6q1792b.fsf@gnu.org> (raw)
In-Reply-To: <E86F9B13-CF79-4444-8ABE-7549E75A3630@gmail.com> (message from Mattias Engdegård on Tue, 18 Jul 2023 10:30:38 +0200)
> Cc: Alan Third <alan@idiocy.org>
> From: Mattias Engdegård <mattias.engdegard@gmail.com>
> Date: Tue, 18 Jul 2023 10:30:38 +0200
>
> In Emacs 29, text pasted from the clipboard on macOS will be truncated if containing NULs.
>
> Reproduction: copy text with NUL in the middle from Emacs 28 (or any other application), and paste into Emacs 29.
>
> This was probably caused by 7e3c2b553f, where construction of a Lisp string was changed from make_string to build_string.
>
> Suggested patch attached. If valid, would it qualify for emacs-29?
This is OK for emacs-29, but I wonder: do we want a unibyte string
here or a multibyte string? We should try to call either
make_unibyte_string or make_multibyte_string accordingly, because
make_string has its own ideas about which one to produce.
Thanks.
next prev parent reply other threads:[~2023-07-18 11:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-18 8:30 bug#64697: 29.0.92: cannot paste NUL on macOS (regression from Emacs 28) Mattias Engdegård
2023-07-18 9:22 ` Alan Third
2023-07-18 11:31 ` Eli Zaretskii
2023-07-18 11:28 ` Eli Zaretskii [this message]
2023-07-18 12:00 ` Mattias Engdegård
2023-07-18 13:02 ` Eli Zaretskii
2023-07-18 13:56 ` Mattias Engdegård
2023-08-19 17:34 ` Mattias Engdegård
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83h6q1792b.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=64697@debbugs.gnu.org \
--cc=alan@idiocy.org \
--cc=mattias.engdegard@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.