delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/20/17:09:52

Message-ID: <34C52029.2DFF3BF2@gmx.net>
Date: Tue, 20 Jan 1998 23:07:37 +0100
From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
Organization: none provided
MIME-Version: 1.0
To: "Gary R. Sekinger" <sekinger AT usaor DOT net>
CC: DJGPP Mailing list <djgpp AT delorie DOT com>
Subject: Re: case of filenames question
References: <6a30hn$5e1$1 AT news4 DOT ispnews DOT com>

Gary R. Sekinger wrote :
> 
> I cannot seem to figure out how to read the lfn filenames. I used opendir()
> and readdir(), but the seem to only return lower case versions of the file
> names. In the following example, the file "ME" should be uppercase.  "ls"
> seems to do this as well:

For this you should use the variable FNCASE. Normally the DJGPP libc
functions convert all filenames, which have the same case for each
charcacter to lower case. But there are some very few situations, where
someone needs the exact case of the filenames. In such a situation
set FNCASE to y

SET FNCASE=y

and the libc functions return the filenames exactly as they are found.

Robert
-- 
******************************************************
* email:   Robert Hoehne <robert DOT hoehne AT gmx DOT net>     *
* Post:    Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW:     http://www.tu-chemnitz.de/~sho/rho        *
******************************************************

- Raw text -


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