www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000078

When Created: 04/15/1996 08:53:07
Against DJGPP version: 2.00
By whom: mcantos@ocean.com.au
Abstract: Short file names cause problems in Windows 95
Various programs in DJGPP have problems finding files in Windows 95 (and, I
suspect, any other OS with long file names). This is because the original long
file name is still being requested by the program.

The main problem area is the info program in which most of the info files refer
to other files by the extension .info instead of .inf.

DOS doesn't have a problem with this as it truncates long filenames. However,
LFN OS's such as Windows 95 don't. As result, pressing 'h' in info yields an
error.

Workaround added: 04/15/1996 09:00:20
By whom: mcantos@ocean.com.au
I worked around the problem by making copies the info files with the .info
extension:

cd \djgpp\info
copy *.inf *.info

I also copied a handful of header files (this is not required, but I did it for
pedagogical reasons):

cd \djgpp\lang\cxx
copy algorith algorithm
copy exceptio exception
copy function functional
copy stdexcep stdexcept

There may be other files in the same boat that I haven't noticed yet. This
second step means that '#include <algorithm>' works in both DOS and Windows 95.

Note added: 04/17/1996 02:16:41
By whom: eliz@is.elta.co.il
The workaround is nothing new: the FAQ tells about it in section 8.2.

Solution added: 04/18/1996 11:02:21
By whom: mcantos@ocean.com.au
As Eli points out, <a href="/djgpp/v2faq/faq042.html#Missing C++ headers">section 8.2</a> of the FAQ addresses the issue I raised.
Please forgive my ignorance!!

Note added: 04/18/1996 11:05:54
By whom: mcantos@ocean.com.au
OK, So I'm too clever for my own good! Please excuse my abortive attempt at an
HTML link!!

Note added: 04/13/1999 08:00:47
By whom: eliz@is.elta.co.il
Texinfo 3.12 and later solves this problem by looking for both .inf
and .info files.

Fixed in version on 04/13/1999 08:00:10
By whom: eliz@is.elta.co.il



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