www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/16/08:25:03

Date: Thu, 16 Jan 1997 15:11:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: Long filename problem with RHIDE
In-Reply-To: <32DE25A8.27E2@Mathematik.tu-chemnitz.de>
Message-ID: <Pine.SUN.3.91.970116150128.17320B-100000@is>
MIME-Version: 1.0

On Thu, 16 Jan 1997, Robert Hoehne wrote:

> When the user gives the -y switch, I do a putenv("LFN=y") but it
> seems, that this is not enogh, probably I should modify also the
> crt0-flags.

No, no, no, please don't do that.  The current logic of `_use_lfn' assumes
that nobody changes the value of `_crt0_startup_flags' during the entire
time that the program runs, and they are only designed to disable the LFN
support when it is possible, the other way around won't have any effect. 
So if you change the crt0 flags you risk subtle bugs.  The correct way to
do that is to call `putenv', as you described, so please see why this
isn't working.  src/libc/dos/lfn/_use_lfn.c includes a short test program
which does exactly that, and it worked for me at the time. 

- Raw text -


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