[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#64697: 29.0.92: cannot paste NUL on macOS (regression from Emacs 28)
From: |
Alan Third |
Subject: |
bug#64697: 29.0.92: cannot paste NUL on macOS (regression from Emacs 28) |
Date: |
Tue, 18 Jul 2023 10:22:21 +0100 |
On Tue, Jul 18, 2023 at 10:30:38AM +0200, Mattias Engdegård wrote:
> 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.
LGTM
I considered this approach but wasn't aware of any situation where
make_string would be better. You've found one. :)
> Suggested patch attached. If valid, would it qualify for emacs-29?
That's up to the maintainers, but I will say that it looks safe, if
that's a concern.
--
Alan Third