changeset 35353:6e4d871d265d

(directory_files_internal): Convert result from readdir to a unibyte string initially, to avoid possible misinterpretation of some bytes as the internal form of Emacs characters.
author Andrew Innes <andrewi@gnu.org>
date Wed, 17 Jan 2001 11:11:06 +0000
parents 42b56dd8986e
children 79fc57d014ca
files src/dired.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dired.c	Wed Jan 17 05:55:31 2001 +0000
+++ b/src/dired.c	Wed Jan 17 11:11:06 2001 +0000
@@ -218,7 +218,7 @@
 	  struct gcpro gcpro1, gcpro2;
 
 	  len = NAMLEN (dp);
-	  name = finalname = make_string (dp->d_name, len);
+	  name = finalname = make_unibyte_string (dp->d_name, len);
 	  GCPRO2 (finalname, name);
 	  
 	  /* Note: ENCODE_FILE can GC; it should protect its argument,