emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 c692bbc6596: Revert "Improve commentary in nsfns.m"


From: Mattias Engdegård
Subject: emacs-29 c692bbc6596: Revert "Improve commentary in nsfns.m"
Date: Fri, 21 Jul 2023 08:51:39 -0400 (EDT)

branch: emacs-29
commit c692bbc65969faeba0d66eb8a76a8cc4e3318dc0
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    Revert "Improve commentary in nsfns.m"
    
    This reverts commit 3af27a4b815906c2ee38cbaf3a765289b3df061a,
    because it missed the point completely.
    Please talk to the original author next time.
---
 src/nsfns.m | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/nsfns.m b/src/nsfns.m
index fe565a423aa..5ae2cc77bb2 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -3829,11 +3829,7 @@ all_nonzero_ascii (unsigned char *str, ptrdiff_t n)
 /* Make a Lisp string from an NSString.  */
 - (Lisp_Object)lispString
 {
-  /* `make_string' creates a string with a given length, instead of
-     searching for a trailing NULL byte to determine its end.  This is
-     important because this function is called to convert NSString
-     objects containing clipboard data, which can contain NUL bytes,
-     into Lisp strings.  (bug#64697) */
+  // make_string behaves predictably and correctly with UTF-8 input.
   return make_string ([self UTF8String],
                       [self lengthOfBytesUsingEncoding: NSUTF8StringEncoding]);
 }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]