diff options
| author | Lars Ingebrigtsen | 2021-07-24 18:35:14 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-07-24 18:35:14 +0200 |
| commit | 4b1367ee97446ed29b76aa49782e675918d5ca35 (patch) | |
| tree | ded6beaf97773f193cd87259f4d6c446427ad6c0 /src/coding.c | |
| parent | 26da0b5ecb44ba5a8954be98b97ab59ccb391531 (diff) | |
| download | emacs-4b1367ee97446ed29b76aa49782e675918d5ca35.tar.gz emacs-4b1367ee97446ed29b76aa49782e675918d5ca35.zip | |
Fix Fdirectory_append check for whether strings have to be converted
* src/coding.c (string_ascii_p): Make it non-static.
* src/fileio.c (Fdirectory_append): Fix check for whether we need
to convert to multibyte.
* src/fns.c (string_ascii_p): Remove copy.
* src/lisp.h: Declare string_ascii_p.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index 46e7fca0f43..87b55aecc05 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -9476,7 +9476,7 @@ not fully specified.) */) | |||
| 9476 | } | 9476 | } |
| 9477 | 9477 | ||
| 9478 | /* Whether STRING only contains chars in the 0..127 range. */ | 9478 | /* Whether STRING only contains chars in the 0..127 range. */ |
| 9479 | static bool | 9479 | bool |
| 9480 | string_ascii_p (Lisp_Object string) | 9480 | string_ascii_p (Lisp_Object string) |
| 9481 | { | 9481 | { |
| 9482 | ptrdiff_t nbytes = SBYTES (string); | 9482 | ptrdiff_t nbytes = SBYTES (string); |