Date: Tue, 10 Jul 2001 18:09:48 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Andrew Cottrell" Message-Id: <7458-Tue10Jul2001180948+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp-workers AT delorie DOT com In-reply-to: <000c01c10944$9ad2fff0$0a02a8c0@acceleron> (acottrel@ihug.com.au) Subject: Re: DJDIR Windows 2000 investigation results #1 References: <000c01c10944$9ad2fff0$0a02a8c0 AT acceleron> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Andrew Cottrell" > Date: Tue, 10 Jul 2001 23:31:18 +1000 > > The quirk I found was that if I remove the "| 0x1000" in the code as > commented then the DJDIR environment variable is inserted into the app's > environment on Windows 2000. It made no difference on the WIN 98SE box > that I used to compile the app on if it was included or not. > > What does the 0x1000 bit do? It is unused in Ralph's list as indicated > in the following table (interrupt.h file): No, it's not unused. See the table near the documentation of function 6Ch: this flag is extended FAT32 open, it is needed to support opening files that are larger than 2GB. So it seems like Windows 2000 doesn't support FAT32, either in its LFN API or at all. Could you please set LFN=n and see if DJGPP.ENV can be read, even without removing 0x1000 from the value of BX? Anyway, thanks a lot for working on this, it seems like we can now solve this bug, after you check what happens without LFN.