Date: Sun, 11 Jan 1998 15:00:40 +0200 (IST) From: Eli Zaretskii To: Richard Sim cc: djgpp AT delorie DOT com Subject: Re: Bug in DJGPP? In-Reply-To: <34b83a96.0@kastagir.senet.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 11 Jan 1998, Richard Sim wrote: > When you have a program that takes command line args, and since DJGPP > automatically expands wildcards, if your running in Win95, and have some > files with long filenames that match the wildcards, DJGPP always gives you > the long file name, not the short one, even when LFN's are disabled, so if > you call something like fopen with the command line argument, the file can't > be found. This is a known bug, but it is unfortunately not easy to fix, due to interdependencies between parts of the startup code (the one that expands the command line and the one which reads DJGPP.ENV). However, AFAIK, this should only happen when LFN=n is set in the DJGPP.ENV file. Setting LFN=n in the environment, e.g., from the DOS prompt before running your program, should expand wildcards into short file names. Please see if this work-around works for you. It does for me.