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 / 3526
     
   
Subject: 
Re: parts.lst and mklst(?).exe.
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 21 Dec 1999 17:22:41 GMT
Viewed: 
440 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:05:11 GMT
Viewed: 
428 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

   
         
   
Subject: 
Re: parts.lst and mklst(?).exe.
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 21 Dec 1999 18:04:30 GMT
Viewed: 
784 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?

 

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