diff options
| author | Mattias EngdegÄrd | 2023-07-21 14:49:35 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2023-07-21 14:49:35 +0200 |
| commit | c692bbc65969faeba0d66eb8a76a8cc4e3318dc0 (patch) | |
| tree | 01823a49d945789e979a8e8b1af242dd1b2157d6 /src | |
| parent | bb885928d73111d2b9c31ff94b71fe18f3506bb4 (diff) | |
| download | emacs-c692bbc65969faeba0d66eb8a76a8cc4e3318dc0.tar.gz emacs-c692bbc65969faeba0d66eb8a76a8cc4e3318dc0.zip | |
Revert "Improve commentary in nsfns.m"
This reverts commit 3af27a4b815906c2ee38cbaf3a765289b3df061a,
because it missed the point completely.
Please talk to the original author next time.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsfns.m | 6 |
1 files changed, 1 insertions, 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) | |||
| 3829 | /* Make a Lisp string from an NSString. */ | 3829 | /* Make a Lisp string from an NSString. */ |
| 3830 | - (Lisp_Object)lispString | 3830 | - (Lisp_Object)lispString |
| 3831 | { | 3831 | { |
| 3832 | /* `make_string' creates a string with a given length, instead of | 3832 | // make_string behaves predictably and correctly with UTF-8 input. |
| 3833 | searching for a trailing NULL byte to determine its end. This is | ||
| 3834 | important because this function is called to convert NSString | ||
| 3835 | objects containing clipboard data, which can contain NUL bytes, | ||
| 3836 | into Lisp strings. (bug#64697) */ | ||
| 3837 | return make_string ([self UTF8String], | 3833 | return make_string ([self UTF8String], |
| 3838 | [self lengthOfBytesUsingEncoding: NSUTF8StringEncoding]); | 3834 | [self lengthOfBytesUsingEncoding: NSUTF8StringEncoding]); |
| 3839 | } | 3835 | } |