# HG changeset patch # User Richard M. Stallman # Date 831950904 0 # Node ID 31a30cc1d61a6d816616f9b259e4708de17ba445 # Parent a78a1df9690cd7a9048dca792345fd5b5af15853 (init_dosfns) [DJGPP >= 2]: Make `opendir' preserve filename case (under Win95) and find hidden files. diff -r a78a1df9690c -r 31a30cc1d61a src/dosfns.c --- a/src/dosfns.c Sun May 12 22:50:25 1996 +0000 +++ b/src/dosfns.c Mon May 13 01:28:24 1996 +0000 @@ -35,6 +35,7 @@ #include "dosfns.h" #include "msdos.h" #include +#include DEFUN ("int86", Fint86, Sint86, 2, 2, 0, "Call specific MSDOS interrupt number INTERRUPT with REGISTERS.\n\ @@ -304,6 +305,17 @@ } else dos_codepage = regs.x.bx & 0xffff; + +#if __DJGPP__ >= 2 + + /* Without this, we never see hidden files. */ + __opendir_flags |= __OPENDIR_FIND_HIDDEN; + + /* Under LFN, preserve the case of files as recorded in the directory. */ + if (!NILP (Fmsdos_long_file_names ())) + __opendir_flags |= __OPENDIR_PRESERVE_CASE; + +#endif } /*