To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 3520
3519  |  3521
Subject: 
parts.lst and mklst(?).exe.
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 21 Dec 1999 13:25:58 GMT
Viewed: 
381 times
  
Hi all!

The other day I was working a bit on a program that can parse dat
files under linux. Now, I have my dat files, along with ldraw and
mlcad installed on a Windows partition. All the dat files that come
with the ldraw package and updates there have names with all lowercase
letters, i.e. 1234a.dat. However, in the parts.lst file, made by
mklst(?), all these names are listed as i.e. 1234A.DAT, that is, with
uppercase letters. Now, the windows filesystem knows the preferred
case of the filenames, which, in this case happens to be all
lowercase, but when opening files it is actually case-insensitive, so
you can open 1234a.dat as 1234A.DAT, or even 1234a.DaT, and it will
work.

When mounted under linux, however, this will not work. If the filename
of the file is 1234a.dat with all lowercase, you will have to open it
with all lowercase, or the file will not be found.

So far, you could say, there is no problem, as I could just convert
all the names to all lowercase, and hey, presto, all the files would
be found. However, I have also used MLCad to save MOCs as dats under
windows, and have used mixed case names there, and I'm sure eventually
there may be mixed case files directly on my linux filesystem. So
converting all the names of all the dat files I encounter to lowercase
is not an option.

Is there any chance that the mklst program could be modified to
accurately reflect the case of the files in question? I.e., if a file
is called 1234a.dat, could it be entered in the parts.lst file as
such, rather than 1234A.DAT? Or is this information perhaps not
available to pure MSDOS programs, as mklst.exe must be? (In which case
I will have to find another solution.)

Regards,

Johannes.
--
People who claim they don't let small things bother them have never
slept in a room with a single mosquito.

Virtually researching virtual behaviour in a virtual world.



Message has 2 Replies:
  Re: parts.lst and mklst(?).exe.
 
(...) I believe that straight-DOS programs don't have mixed-case filename information. A pure DOS hard-drive actually stores all filenames on the harddrive in upper case, and MSDOS under Windows maintains upper-case-only for compatibility with older (...) (24 years ago, 21-Dec-99, to lugnet.cad.dev)
  Re: parts.lst and mklst(?).exe.
 
Johannes Keukelaar wrote... (...) It does work, you can open either 1234a.dat or 1234A.DAT, or even 1234a.DaT. The fat/vfat/msdos filesystem in Linux is case-insensitive. Try it! (...) Pure MSDOS programs see all files in uppercase. /Lars (24 years ago, 21-Dec-99, to lugnet.cad.dev)

5 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR