Subject: bug#64697: closed (Re: bug#64697: 29.0.92: cannot paste NUL on macOS (regression from Emacs 28))

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 19 Aug 2023 17:35:02 +0000

Your bug report

#64697: 29.0.92: cannot paste NUL on macOS (regression from Emacs 28)

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
64697: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64697
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#64697: 29.0.92: cannot paste NUL on macOS (regression from Emacs 28)
From: Mattias Engdegård <[email-masked]>
To: Eli Zaretskii <[email-masked]>
Cc: [email-masked], Alan Third <[email-masked]>
Date: Sat, 19 Aug 2023 19:34:07 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> Now installed on emacs-29. Any improvement will be added on master after the merge.

A faster conversion was added in 722b1ebc6e. Closing.

Subject: 29.0.92: cannot paste NUL on macOS (regression from Emacs 28)
From: Mattias Engdegård <[email-masked]>
To: Emacs Bug Report <[email-masked]>
Cc: Alan Third <[email-masked]>
Date: Tue, 18 Jul 2023 10:30:38 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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?