Commit 9ad4f3e5 authored by Andrew Innes's avatar Andrew Innes
Browse files

(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.
parent 3bd00f3b
2001-01-17 Andrew Innes <andrewi@gnu.org>
* dired.c (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.
2001-01-17 Kenichi Handa <handa@etl.go.jp>
* fns.c (concat): Be sure to avoid putting the same `composition'
......
......@@ -218,7 +218,7 @@ directory_files_internal (directory, full, match, nosort, attrs)
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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment