unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* master 28bf387: Tweak Fdirectory_append for efficiency
@ 2021-07-24 16:27 Eli Zaretskii
  2021-07-24 16:29 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2021-07-24 16:27 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: emacs-devel

> --- a/src/fileio.c
> +++ b/src/fileio.c
> @@ -795,7 +795,8 @@ usage: (record DIRECTORY &rest COMPONENTS) */)
>        for (i = 0; i < nargs; i++)
>  	{
>  	  Lisp_Object arg = args[i];
> -	  if (STRING_MULTIBYTE (arg))
> +	  /* Use multibyte or all-ASCII strings as is. */
> +	  if (STRING_MULTIBYTE (arg) || SCHARS (arg) == SBYTES (arg))
>  	    elements[i] = arg;
>  	  else
>  	    elements[i] = make_multibyte_string (SSDATA (arg), SCHARS (arg),
> 

Isn't SCHARS (arg) == SBYTES (arg) true for any unibyte string, even
one that includes non-ASCII characters?



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-07-25  7:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-24 16:27 master 28bf387: Tweak Fdirectory_append for efficiency Eli Zaretskii
2021-07-24 16:29 ` Lars Ingebrigtsen
2021-07-24 16:36   ` Eli Zaretskii
2021-07-24 16:49     ` Lars Ingebrigtsen
2021-07-24 16:58       ` Eli Zaretskii
2021-07-24 17:05         ` Lars Ingebrigtsen
2021-07-24 17:13           ` Eli Zaretskii
2021-07-25  6:38             ` Lars Ingebrigtsen
2021-07-25  7:08               ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).