delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/10/22:31:59

From: "Richard Sim" <richard AT hyper DOT net DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Bug in DJGPP?
Date: Sun, 11 Jan 1998 13:47:50 +1030
Lines: 30
NNTP-Posting-Host: 203.38.156.41
Message-ID: <34b83a96.0@kastagir.senet.com.au>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi everyone, I dunno if this is a bug, a 'feature' or my botchyness...
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.
i.e.
A directory containing these files:
abc.pcx
cde.pcx
long file.pcx
fgh.pcx
And with a commandline of:
program *.pcx
would give all of the filenames as long if their long names, not the short
ones like longfi~1.pcx, etc.
Is this a bug? If it is or isn't, does anyone know of a workaround since
this is really annoying for my program.
Cya,
Richard Sim
richard AT hyper DOT net DOT au

*******************************************
* Richard Sim - Richard Sim - Richard Sim *
*          richard AT hyper DOT net DOT au           *
* Richard Sim - Richard Sim - Richard Sim *
*******************************************


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019