delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/15/06:03:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <1264BCF4F426D611B0B00050DA782A50014C21E8@mail.gft.com>
From: "Schaible, Jorg" <Joerg DOT Schaible AT gft DOT com>
To: cygwin AT cygwin DOT com
Subject: RE: Possible error in cygpath
Date: Wed, 15 May 2002 11:44:51 +0200
MIME-Version: 1.0

Hi Mark,

>The spot where it says:
>  DWORD len = GetShortPathName (filename, NULL, 0);
>  if (len == ERROR_INVALID_PARAMETER)

Ups. 
:)

>By the way I noticed this while I was trying to add a -l 
>option to cygpath
>which is similar to the -s option but it will convert a 
>muddled 8.3 name
>like PROGRA~1 to "Program Files" and I want to know if anyone 
>else might
>have been working on that.

The reason why I just implemented -s (in 1999) was that GetLongPathName is
not available for Win95. If we have to be Win95-compatible still, you will
have to load the function yourself directly form the DLL and use
FindFirstFile (as mensioned in the MSDN docs for *GetShortPathName*) for
every part of the path if the function is not available.

Regards,
Jorg

----

Corinna,

you've seen my own patch for cygpath.cc in cygwin-apps ? Chris already
answered positivly and RH should have the assignment from late 1999 still.
My diff was against the sources from 14.5...

Regards,
Jorg

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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