[PATCH] cygpath.cc

"Schaible, Jörg" Joerg.Schaible@gft.com
Tue May 21 00:03:00 GMT 2002


Hi,

as already announced here is the next patch for cygpath.cc supporting -l
option to convert file names to Windows long format. Unfortunately this
works not for strict mode, since functions cygwin_conv_to_win32_path and
cygwin_conv_to_full_win32_path will return an error for a Windows short
path/name.

2002-05-20  Joerg Schaible <joerg.schaible@gmx.de>

	* cygpath.cc (main): Add option l to support conversion to
	Windows long file names.  Refactured code for capital options.
	Support of options from file for capital options.
	(dowin): New function.  Refactured from main.
	(doit): Call long path conversion.
	(get_long_name): New function.
	(get_long_paths): New function.
	(get_long_path_name_w32impl): New function.  Reimplementation
	of Windows API function GetLongPathName (only 98/Me/2000/XP or 
	higher).
	(get_short_name): Call GetShortPathName only once.
	(get_short_paths): Fix calculating buffer size.
	* utils.sgml: Update cygpath section for l option.

Regards,
Jörg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygpath.diff
Type: application/octet-stream
Size: 12267 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020521/92d26d81/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: utils.diff
Type: application/octet-stream
Size: 2672 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20020521/92d26d81/attachment-0001.obj>


More information about the Cygwin-patches mailing list