mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 15:21:51 -08:00
Revert "Improve commentary in nsfns.m"
This reverts commit 3af27a4b81,
because it missed the point completely.
Please talk to the original author next time.
This commit is contained in:
parent
bb885928d7
commit
c692bbc659
1 changed files with 1 additions and 5 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue