aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorLars Ingebrigtsen2021-07-24 18:35:14 +0200
committerLars Ingebrigtsen2021-07-24 18:35:14 +0200
commit4b1367ee97446ed29b76aa49782e675918d5ca35 (patch)
treeded6beaf97773f193cd87259f4d6c446427ad6c0 /src/coding.c
parent26da0b5ecb44ba5a8954be98b97ab59ccb391531 (diff)
downloademacs-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.c2
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. */
9479static bool 9479bool
9480string_ascii_p (Lisp_Object string) 9480string_ascii_p (Lisp_Object string)
9481{ 9481{
9482 ptrdiff_t nbytes = SBYTES (string); 9482 ptrdiff_t nbytes = SBYTES (string);