delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/03/05/03:35:48

Date: Sun, 5 Mar 2000 09:48:38 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Mariano Alvarez =?iso-8859-1?Q?Fern=E1ndez?= <malfer AT teleline DOT es>
cc: "djgpp-workers AT delorie DOT com" <djgpp-workers AT delorie DOT com>
Subject: Re: [Fwd: Re: short file names when using LFN]
In-Reply-To: <38BEF6F5.2C79B4A2@teleline.es>
Message-ID: <Pine.SUN.3.91.1000305094812.29735K-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, 3 Mar 2000, Mariano Alvarez =?iso-8859-1?Q?Fern=E1ndez?= wrote:

> This, your program output:
> ----
> C:\PROGDJ>pr1 longfilename1.txt
> `longfilename1.txt' -> `C:\PROGDJ\LONGFILE.TXT'
> 
> C:\PROGDJ>pr1 longfilename2.txt
> `longfilename2.txt' -> `C:\PROGDJ\LONGFILE.TXT'
> 
> And this, the output of my routine:
> ----
> C:\PROGDJ>lfngsfn longfilename1.txt
> Long:  longfilename1.txt
> Short: C:\PROGDJ\LONGFI~1.TXT
> 
> C:\PROGDJ>lfngsfn longfilename2.txt
> Long:  longfilename2.txt
> Short: C:\PROGDJ\LONGFI~2.TXT
> ----
> Do you see the difference?

Yes, you are right.  _truename uses a slightly different system call,
which is not what you want.

(On my system, numeric tails are disabled, so the results of both
programs are identical.  That's why I thought my method worked like
yours.)

- Raw text -


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