GNU bug report logs - #64697
29.0.92: cannot paste NUL on macOS (regression from Emacs 28)

Previous Next

Package: emacs;

Reported by: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Date: Tue, 18 Jul 2023 08:32:01 UTC

Severity: normal

Found in version 29.0.92

Done: Mattias Engdegård <mattias.engdegard <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Mattias Engdegård <mattias.engdegard <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#64697: closed (29.0.92: cannot paste NUL on macOS (regression
 from Emacs 28))
Date: Sat, 19 Aug 2023 17:35:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 19 Aug 2023 19:34:07 +0200
with message-id <6F11B1EB-FE0F-4A84-817E-3105E35614F1 <at> gmail.com>
and subject line Re: bug#64697: 29.0.92: cannot paste NUL on macOS (regression from Emacs 28)
has caused the debbugs.gnu.org bug report #64697,
regarding 29.0.92: cannot paste NUL on macOS (regression from Emacs 28)
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
64697: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64697
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Emacs Bug Report <bug-gnu-emacs <at> gnu.org>
Cc: Alan Third <alan <at> idiocy.org>
Subject: 29.0.92: cannot paste NUL on macOS (regression from Emacs 28)
Date: Tue, 18 Jul 2023 10:30:38 +0200
[Message part 3 (text/plain, inline)]
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?

[lispString.diff (application/octet-stream, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 64697-done <at> debbugs.gnu.org, Alan Third <alan <at> idiocy.org>
Subject: Re: bug#64697: 29.0.92: cannot paste NUL on macOS (regression from
 Emacs 28)
Date: Sat, 19 Aug 2023 19:34:07 +0200
> Now installed on emacs-29. Any improvement will be added on master after the merge.

A faster conversion was added in 722b1ebc6e. Closing.



This bug report was last modified 2 years and 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.