Date: Wed, 8 Jul 1998 15:04:42 +0300 (IDT) From: Eli Zaretskii To: Endlisnis cc: djgpp AT delorie DOT com Subject: Re: Long Filenames - can they always be on? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 7 Jul 1998, Endlisnis wrote: > I made a program (under djgpp) that took 2 filenames as > commandline parameters. It opens and reads one file, then writes the 2nd > file. If I ask it to open a file and I specify a long-filename, it works, > but if I ask it to write a long-filename, it just truncates it to 8.3 > format. This is running without LFN set at all as an environmental > variable. Shouldn't it be able to make long-filenames? The file DJGPP.ENV, as shipped with DJGPP, sets LFN to N. This file is read by the startup code of every DJGPP program, so unless you set LFN=y in the environment, or edit DJGPP.ENV (not recommended), you get LFN disabled in all DJGPP programs.