On Tue, May 31, 2011 at 02:23:28PM +0200, Michal wrote: > From http://msdn.microsoft.com/en-us/library/aa364989%28v=vs.85%29.aspx > "The short form can be longer than the specified path." > > (so using len(longname)+1 as the length of the output buffer could > end badly)
I assume that this may happen if the "long" name stem has less then 8 chars. Indeed: $ cygpath -d 'a b.tex' AB2E6D~1.TEX This can be easily taken into account. -- Enrico