Possible error in cygpath

Schaible, Jorg Joerg.Schaible@gft.com
Wed May 15 04:39:00 GMT 2002


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/



More information about the Cygwin mailing list