public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygwin-1.5.21: cygpath -w --long-name scrambles non-existing filename
@ 2006-07-27 17:30 Matthias Bolz
  2006-07-27 21:09 ` Corinna Vinschen
  0 siblings, 1 reply; 3+ messages in thread
From: Matthias Bolz @ 2006-07-27 17:30 UTC (permalink / raw)
  To: cygwin

Hi,

after updating from cygwin 1.5.19-4 to 1.5.21-1 cygpath seems to show a bug
when called with the --long-name (or -l) option:
Assuming that the filename "12345678901234567890" does NOT exist in the
current dir, cygpath shows the following output:

$ cygpath -m -l 12345678901234567890
123456789012#

$ cygpath -w -l 12345678901234567890
123456789012xx  7890
                        ^^
                 not printable characters

$ cygpath -w 12345678901234567890
12345678901234567890

$ cygpath -u 12345678901234567890
12345678901234567890

$ touch  12345678901234567890
$ cygpath -w -l 12345678901234567890
12345678901234567890

$ rm 12345678901234567890
$ cygpath -w -l 12345678901234567890
123456789012xx  7890
                        ^^
                 not printable characters

i.e., as long as the file name does not exist and exceeds a certain length,
it gets scrambled with the -l option.
Without the -l option, in posix format, or if the file exists, the output is
fine.

Can you confirm this bug? Is there a workaround?

Matthias.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cygwin-1.5.21: cygpath -w --long-name scrambles non-existing filename
  2006-07-27 17:30 cygwin-1.5.21: cygpath -w --long-name scrambles non-existing filename Matthias Bolz
@ 2006-07-27 21:09 ` Corinna Vinschen
  0 siblings, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2006-07-27 21:09 UTC (permalink / raw)
  To: cygwin

On Jul 27 19:10, Matthias Bolz wrote:
> i.e., as long as the file name does not exist and exceeds a certain length,
> it gets scrambled with the -l option.
> Without the -l option, in posix format, or if the file exists, the output is
> fine.
> 
> Can you confirm this bug? Is there a workaround?

Thanks for the report.  I have checked in a patch to current CVS.
There's no workaround except not using the -l option or to use a cygpath
build from current CVS.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cygwin-1.5.21: cygpath -w --long-name scrambles non-existing filename
@ 2006-07-28 14:43 Matthias Bolz
  0 siblings, 0 replies; 3+ messages in thread
From: Matthias Bolz @ 2006-07-28 14:43 UTC (permalink / raw)
  To: cygwin

Hi,

cygpath.exe built from CVS works great. 
Thanks for the very fast reply and solution!

Matthias

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-28 14:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-27 17:30 cygwin-1.5.21: cygpath -w --long-name scrambles non-existing filename Matthias Bolz
2006-07-27 21:09 ` Corinna Vinschen
2006-07-28 14:43 Matthias Bolz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).