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
Subject: 
parts.lst and mklst(?).exe.
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 21 Dec 1999 13:25:58 GMT
Viewed: 
379 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.


Subject: 
Re: parts.lst and mklst(?).exe.
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 21 Dec 1999 15:58:54 GMT
Viewed: 
332 times
  
In lugnet.cad.dev, Johannes Keukelaar wrote:

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.)

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 DOS programs.

Steve


Subject: 
Re: parts.lst and mklst(?).exe.
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 21 Dec 1999 17:22:41 GMT
Viewed: 
439 times
  
Johannes Keukelaar wrote...
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.

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!

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?

Pure MSDOS programs see all files in uppercase.
/Lars


Subject: 
Re: parts.lst and mklst(?).exe.
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 21 Dec 1999 18:04:30 GMT
Viewed: 
783 times
  
"LZ" == Leonardo Zide <leonardo@centroin.com.br> writes:

LZ> The default behavior is to be case insensitive but you can set an
LZ> option to make it case sensitive, take a look at the man page for
LZ> mount.

Ah. Thanks for the tip, that would be great.

LZ> Leonardo

Johannes, who walks off mumbling about the fundamental brokenness of
MSDOG infecting Linux.
--
Cogito ergo coredump - The first AI's first and last words.

Gathering Magician in a Magic-less world?


Subject: 
Re: parts.lst and mklst(?).exe.
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 21 Dec 1999 18:05:11 GMT
Viewed: 
427 times
  
"Lars C. Hassing" 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.

  The default behavior is to be case insensitive but you can set an
option to make it case sensitive, take a look at the man page for mount.

Leonardo


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