diff options
author | Andrew Innes <andrewi@gnu.org> | 2001-01-17 11:11:53 +0000 |
---|---|---|
committer | Andrew Innes <andrewi@gnu.org> | 2001-01-17 11:11:53 +0000 |
commit | 9ad4f3e55659c2833d86e48d8ba0362b927ece52 (patch) | |
tree | fdf7c0b7074334c643f0dd788f55528202f8dccf /src/dired.c | |
parent | 3bd00f3b932b8813b599f70abd3f70150262410f (diff) | |
download | emacs-9ad4f3e55659c2833d86e48d8ba0362b927ece52.tar.gz |
(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.
Diffstat (limited to 'src/dired.c')
-rw-r--r-- | src/dired.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dired.c b/src/dired.c index 04b14f6c4a5..4994241c2cf 100644 --- a/src/dired.c +++ b/src/dired.c @@ -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, |