This is the mail archive of the
mailing list for the Cygwin project.
cygpath bug in version 1.25
- From: "Newton, Doug" <dnewton at twacs dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Cc: "'dnewton at htc dot net'" <dnewton at htc dot net>
- Date: Mon, 10 Feb 2003 17:29:32 -0600
- Subject: cygpath bug in version 1.25
I believe I have found a bug in cygpath.exe version 1.25 (Which has been the
version included since at least cygwin version 1.3.17-1 and through cygwin
Using installations from any release since 1.3.17-1 (the earliest full
installation that I had available), cygpath does work fine if converting a
dos classpath to a unix classpath, and converting a unix classpath to a dos
classpath. BUT, if you try to convert a long unix classpath to a unix
classpath, I have had truncation occur. The following example was run with
cygwin version 1.3.17-1:
$ echo $CLASSPATH
$ cygpath --path --unix $CLASSPATH
This same behaviour with this test case exists through cygwin version
I attempted to use an older version of the cygpath.exe (1.21) and the
problem did not occur. (I didn't have an installation that included cygpath
1.21, so I took the cygpath.exe from a machine that had an older cygwin
installed, and replaced the cygpath.exe in my install with the old one.
Since cygpath.exe 1.21 worked running against the same cygwin1.dll, it would
seem that the bug is in the cygpath code.
(If you ask why I would convert unix to unix: Our build environment always
uses unix format classpaths, but the current version of ant will always run
a "cygpath --path --unix $CLASSPATH" in its execution to insure it knows the
format when on a cygwin platform).
Has anyone else seen this problem, or is it known and due to be fixed? I
looked at the cygpath.cc code in the in the online CVS history, and saw that
major changes occurred between cygpath 1.24 and 1.25, including removal of a
block of code that exits the function when no change is needed. I'm not a
cygwin developer, but that looked at least a bit suspicious.
If you wouldn't mind, please copy any replies to email@example.com, as I am
not a subscriber.
Thanks in advance for any help.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html