gcc hints were not yet applied to gcc-4.x
[p5sagit/p5-mst-13.2.git] / ext / Cwd / Changes
CommitLineData
99f36a73 1Revision history for Perl distribution PathTools.
fb8d82a2 2
60598624 33.07 Fri May 6 07:46:45 CDT 2005
4
5 - Fixed a bug in which the special perl variable $^O would become
6 tainted under certain versions of perl. [Michael Schwern]
7
8 - File::Spec->rootdir() was returning / on Win32. Now it returns \ .
9 [Michael Schwern]
10
11 - We now avoid modifying @_ in tmpdir() when it's not strictly
12 necessary, which reportedly provides a modest performance
13 boost. [Richard Soderberg]
14
15 - Made a couple of slight changes to the Win32 code so that it works
16 (or works better) on Symbian OS phones. [Jarkko Hietaniemi]
17
183.06 Wed Apr 13 20:47:26 CDT 2005
19
20 (No changes in functionality)
21
22 - Added a note to the canonpath() docs about why it doesn't collapse
23 foo/../bar sections.
24
25 - The internal-only function bsd_realpath() in the XS file now uses
26 normal arg syntax instead of K&R syntax. [Nicholas Clark]
27
b04f6d36 283.05 Mon Feb 28 07:22:58 CST 2005
29
30 - Fixed a bug in fast_abs_path() on Win32 in which forward- and
31 backward-slashes were confusing things. [demerphq]
32
33 - Failure to load the XS code in Cwd is no longer a fatal error
34 (though failure to compile it is still a fatal error in the build
35 process). This lets Cwd work under miniperl in the core. [Rafael
36 Garcia-Suarez]
37
38 - In the t/cwd.t test, don't enforce loading from blib/ if we're
39 testing in the perl core. [Rafael Garcia-Suarez]
40
99f36a73 413.04 Sun Feb 6 17:27:38 CST 2005
42
43 - For perls older than 5.006, the HAS_GETCWD symbol is not available,
44 because it wasn't checked for in older Configure scripts when perl
45 was built. We therefore just ask the user whether the getcwd() C
46 function is defined on their platform when their perl is old.
47 Maybe in the future we'll try to automate this. [Reported by
48 several parties]
49
50 - Remove lib/ppport.h from the distribution, so that MakeMaker
51 doesn't accidentally pick it up and install it as a lib
52 file. [Jerry Hedden]
53
54 - Fixed a testing error on VMS that occurred when a user had
55 read-access to the root of the current volume. [Craig A. Berry]
56
573.03 Fri Jan 21 21:44:05 CST 2005
58
59 - Fixed a testing error if the first file we find in the root
60 directory is a symlink. [Blair Zajac]
61
62 - Added a test to make sure Cwd.pm is loaded from blib/ during
63 testing, which seems to be an issue in some people's environments
64 and makes it awfully hard to debug things on my end.
65
66 - Skip the _perl_abs_path() tests on Cygwin - they don't usually
67 pass, and this function isn't used there anyway, so I decided not
68 to push it. Let 'em use `cwd`.
69
703.02 Sun Jan 9 19:29:52 CST 2005
71
72 - Fixed a bug in which Cwd::abs_path() called on a file in the root
73 directory returned strange results. [Bob Luckin]
74
75 - Straightened out the licensing details for the portion of the Cwd
76 module that comes from BSD sources. [Hugo van der Sanden]
77
78 - Removed the prototype from _perl_abs_path() and the XS version of
79 abs_path(), since all they seemed to be doing was causing people
80 grief, and since some platforms didn't have them anyway.
81
82 - Fixed a testing bug in which sometimes the wrong version of Cwd
83 (the version already installed on the user's machine) would get
84 loaded instead of the one we're building & installing.
85
86 - Sometimes getdcwd() returns a lower-case drive letter, so don't
87 require an upper-case letter in t/win32.t. [Jan Dubois]
88
89 - Fixed a memory leak in getdcwd() on win32. [Steve Hay]
90
91 - Added a copy of ppport.h to the distribution to aid compilation on
92 older versions of perl. [Suggested by Charlie Root]
93
94 - Don't bother looking for a 'pwd' executable on MSWin32 - there
95 won't be one, and looking for it can be extremely slow when lots of
96 disks are mounted. [Several people, including Andrew Burke]
97
98 - Eliminated a multi-argument form of open() that was causing a
99 syntax error on older versions of perl. [Fixed by Michael Schwern]
100
101 - The bug-fix changes for revision 0.90 of File::Spec somehow were
102 lost when I merged it into the PathTools distribution. They're
103 restored now. [Craig A. Berry]
104
105 - File::Spec->canonpath() will now reduce paths like '[d1.-]foo.dat'
106 down to '[000000]foo.dat' instead of '[]foo.dat' or 'foo.dat'.
107 This is in better accordance with the native filename syntax
108 parser. [Craig A. Berry]
109
110 - In order to remove a recursive dependency (PathTools -> Test-Simple
111 -> Test-Harness -> PathTools), we now include a copy of Test::More in
112 the distribution. It is only used for testing, it won't be installed
113 with the rest of the stuff.
114
115 - Removed some 5.6-isms from Cwd in order to get it to build with
116 older perls like 5.005.
117
118 - abs_path() on Windows was trampling on $ENV{PWD} - fixed. [Spotted
119 by Neil MacMullen]
120
121 - Added licensing/copyright statements to the POD in each .pm
122 file. [Spotted by Radoslaw Zielinski]
123
1243.01 Mon Sep 6 22:28:06 CDT 2004
125
126 - Removed an unnecessary and confusing dependency on File::Spec from
127 the Makefile.PL and the Build.PL.
128
129 - Added a 'NAME' entry to the Makefile.PL, because otherwise it won't
130 even begin to work. [Reported by many]
131
1323.00 Thu Sep 2 22:15:07 CDT 2004
133
134 - Merged Cwd and File::Spec into a single PathTools distribution.
135 This was done because the two modules use each other fairly
136 extensively, and extracting the common stuff into another
137 distribution was deemed nigh-impossible. The code in revision 3.00
138 of PathTools should be equivalent to the code in Cwd 2.21 and
139 File::Spec 0.90.
140
141==================================================================
142Prior to revision 3.00, Cwd and File::Spec were maintained as two
143separate distributions. The revision history for Cwd is shown here.
144The revision history for File::Spec is further below.
145==================================================================
146
147Cwd 2.21 Tue Aug 31 22:50:14 CDT 2004
14815b0c 148
149 - Removed "NO_META" from the Makefile.PL, since I'm not building the
150 distribution with MakeMaker anyway. [Rohan Carly]
151
152 - Only test _perl_abs_path() on platforms where it's expected to work
153 (platforms with '/' as the directory separator). [Craig A. Berry]
154
99f36a73 155Cwd 2.20 Thu Jul 22 08:23:53 CDT 2004
275e8705 156
157 - On some implementations of perl on Win32, a memory leak (or worse?)
158 occurred when calling getdcwd(). This has been fixed. [PodMaster]
159
160 - Added tests for getdcwd() on Win32.
161
162 - Fixed a problem in the pure-perl implementation _perl_abs_path()
163 that caused a fatal error when run on plain files. [Nicholas Clark]
164 To exercise the appropriate test code on platforms that wouldn't
165 otherwise use _perl_abs_path(), run the tests with $ENV{PERL_CORE}
166 or $ENV{TEST_PERL_CWD_CODE} set.
167
99f36a73 168Cwd 2.19 Thu Jul 15 08:32:18 CDT 2004
7ada78df 169
170 - The abs_path($arg) fix from 2.18 didn't work for VMS, now it's
171 fixed there. [Craig Berry]
172
99f36a73 173Cwd 2.18 Thu Jun 24 08:22:57 CDT 2004
09122b95 174
175 - Fixed a problem in which abs_path($arg) on some platforms could
176 only be called on directories, and died when called on files. This
177 was a problem in the pure-perl implementation _perl_abs_path().
178
179 - Fixed fast_abs_path($arg) in the same way as abs_path($arg) above.
180
181 - On Win32, a function getdcwd($vol) has been added, which gets the
182 current working directory of the specified drive/volume.
183 [Steve Hay]
184
185 - Fixed a problem on perl 5.6.2 when built with the MULTIPLICITY
186 compile-time flags. [Yitzchak Scott-Thoennes]
187
188 - When looking for a `pwd` system command, we no longer assume the
189 path separator is ':'.
190
191 - On platforms where cwd() is implemented internally (like Win32),
192 don't look for a `pwd` command externally. This can greatly speed
193 up load time. [Stefan Scherer]
194
195 - The pure-perl version of abs_path() now has the same prototype as
196 the XS version (;$).
197
99f36a73 198Cwd 2.17 Wed Mar 10 07:55:36 CST 2004
ea067225 199
200 - The change in 2.16 created a testing failure when tested from
201 within a path that contains symlinks (for instance, /tmp ->
202 /private/tmp).
203
99f36a73 204Cwd 2.16 Sat Mar 6 17:56:31 CST 2004
821bf9a5 205
206 - For VMS compatibility (and to conform to Cwd's documented
207 interface), in the regression tests we now compare output results
208 to an absolute path. [Craig A. Berry]
209
99f36a73 210Cwd 2.15 Fri Jan 16 08:09:44 CST 2004
02cc4877 211
212 - Fixed a problem on static perl builds - while creating
213 Makefile.aperl, it was loading a mismatched version of Cwd from
214 blib/ . [Reported by Blair Zajac]
215
99f36a73 216Cwd 2.14 Thu Jan 8 18:51:08 CST 2004
ad78113d 217
218 - We now use File::Spec->canonpath() and properly-escaped regular
219 expressions when comparing paths in the regression tests. This
220 fixes some testing failures in 2.13 on non-Unix platforms. No
221 changes were made in the actual Cwd module code. [Steve Hay]
222
99f36a73 223Cwd 2.13 Fri Jan 2 22:29:42 CST 2004
889f7a4f 224
225 - Changed a '//' comment to a '/* */' comment in the XS code, so that
226 it'll compile properly under ANSI C rules. [Jarkko Hietaniemi]
227
228 - Fixed a 1-character buffer overrun problem in the C code. [The BSD
229 people]
230
99f36a73 231Cwd 2.12 Fri Dec 19 17:04:52 CST 2003
fb8d82a2 232
233 - Fixed a bug on Cygwin - the output of realpath() should have been
234 tainted, but wasn't. [Reported by Tom Wyant]
235
99f36a73 236Cwd 2.10 Mon Dec 15 07:50:12 CST 2003
fb8d82a2 237
238 (Note that this release was mistakenly packaged as version 2.11, even
239 though it had an internal $VERSION variable of 2.10. Not sure how
240 THAT happened...)
241
242 - There was a dependency in the Makefile.PL on Module::Build, which
243 isn't necessary. I've removed it.
244
99f36a73 245Cwd 2.09 Thu Dec 11 20:30:58 CST 2003
fb8d82a2 246
247 - The module should now build & install using version 5.6 of perl.
248
249 - We now note a build-time dependency on version 0.19 of
250 Module::Build, which is necessary because we don't use the standard
251 lib/-based file layout. No version of Module::Build is required if
252 you use the Makefile.PL, just if you use the Build.PL .
253
254 - Removed some gratuitous uses of 5.6-isms like our(), with the aim
255 of backporting this module to perl 5.005.
256
257 - Simplified all code that autoloads Carp.pm and calls
258 carp()/croak().
259
260 - Removed some redundant OS/2 code at the suggestion of Michael
261 Schwern and Ilya Zakharevich.
262
263 - Make sure the correct version of Cwd.pm is loaded in the regression
264 tests. [Sam Vilain]
265
99f36a73 266Cwd 2.08 Wed Oct 15 20:56 CDT 2003
fb8d82a2 267
268 - Code extracted from perl 5.8.1 and packaged as a separate CPAN
269 release by Ken Williams.
270
99f36a73 271==================================================================
272Prior to revision 3.00, Cwd and File::Spec were maintained as two
273separate distributions. The revision history for File::Spec is shown
274here. The revision history for Cwd is above.
275==================================================================
276
277File::Spec 0.90 Tue Aug 31 22:34:50 CDT 2004
278
279 - On VMS, directories use vmspath() and files use vmsify(), so
280 rel2abs() has to use some 'educated guessing' when dealing with
281 paths containing slashes. [Craig A. Berry]
282
283File::Spec 0.89 Sun Aug 29 19:02:32 CDT 2004
284
285 - Fixed some pathological cases on VMS which broke canonpath() and
286 splitdir(). [Richard Levitte and Craig A. Berry]
287
288 - Fixed rel2abs() on VMS when passed a unix-style relative
289 path. [Craig A. Berry]
290
291File::Spec 0.88 Thu Jul 22 23:14:32 CDT 2004
292
293 - rel2abs() on Win32 will now use the new Cwd::getdcwd() function, so
294 that things like rel2abs('D:foo.txt') work properly when the
295 current drive isn't 'D'. This requires Cwd version 2.18.
296 [Steve Hay]
297
298 - Got rid of a redundant double-backslash in a character
299 class. [Alexander Farber]
300
301 - Added much markup to pod for enhanced readability. [Andy Lester]
302
303File::Spec 0.87 Fri Dec 19 08:03:28 CST 2003
304
305 - With a one-line change in the tests, backported to perl 5.004.
306 [Issue reported by Barry Kemble]
307
308File::Spec 0.86 Fri Sep 26 10:07:39 CDT 2003
309
310 - This is the version released with perl 5.8.1. It is identical to
311 the code in the File::Spec beta 0.85_03.
312
313File::Spec 0.85_03 Mon Sep 15 09:35:53 CDT 2003
314
315 - On VMS, if catpath() receives volume specifiers in both its first
316 two arguments, it will now use the volume in the first argument
317 only. Previously it returned a non-syntactical result which
318 included both volumes. This change is the same in spirit to the
319 catpath() MacOS change from version 0.85_02.
320
321 - Fixed an abs2rel() bug on VMS - previously
322 abs2rel('[t1.t2.t3]file','[t1.t2]') returned '[t3]file', now it
323 properly returns '[.t3]file'.
324
325File::Spec 0.85_02 Fri Sep 12 17:11:13 CDT 2003
326
327 - abs2rel() now behaves more consistently across platforms with the
328 notion of a volume. If the volumes of the first and second
329 argument (the second argument may be implicit) do not agree, we do
330 not attempt to reconcile the paths, and simply return the first
331 argument. Previously the volume of the second argument was
332 (usually) ignored, resulting in sometimes-garbage output.
333
334 - catpath() on MacOS now looks for a volume element (i.e. "Macintosh HD:")
335 in its first argument, and then its second argument. The first
336 volume found will be used, and if none is found, none will be used.
337
338 - Fixed a problem in abs2rel() on Win32 in which the volume of the
339 current working directory would get added to the second argument if
340 none was specified. This might have been somewhat helpful, but it
341 was contrary to the documented behavior. For example,
342 abs2rel('C:/foo/bar', '/foo') used to return 'bar', now it returns
343 'C:/foo/bar' because there's no guarantee /foo is actually C:/foo .
344
345 - catdir('/', '../') on OS2 previously erroneously returned '//..',
346 and now it returns '/'.
347
348File::Spec 0.85_01 Thu Sep 11 16:18:54 CDT 2003
349
350 Working toward 0.86, the version that will be released with perl 5.8.1.
351
352 - The t/rel2abs2rel.t test now is a little friendlier about emitting
353 its diagnostic debugging output. [Jarkko Hietaniemi]
354
355 - We now only require() Cwd when it's needed, on demand. [Michael
356 Schwern, Tels]
357
358 - Fixed some POD errors and redundancies in OS2.pm and Cygwin.pm.
359 [Michael Schwern]
360
361 - The internal method cwd() has been renamed to _cwd(), since it was
362 never meant for public use. [Michael Schwern]
363
364 - Several methods in File::Spec::Unix that just return constant
365 strings have been sped up. catdir() has also been sped up there.
366 [Tels]
367
368 - Several canonpath() and catdir() bugs on Win32 have been fixed, and
369 tests added for them:
370 catdir('/', '../') -> '\\' (was '\..')
371 catdir('/', '..\\') -> '\\ (was '')
372 canonpath('\\../') -> '\\' (was '')
373 canonpath('\\..\\') -> '\\' (was '')
374 canonpath('/../') -> '\\' (was '\..')
375 canonpath('/..\\') -> '\\' (was '')
376 catdir('\\', 'foo') -> '\foo' (was '\\foo')
377
378 - catpath($volume, $dirs, $file) on Mac OS now ignores any volume
379 that might be part of $dirs, enabling catpath($volume,
380 catdir(rootdir(), 'foo'), '') to work portably across platforms.
381
382File::Spec 0.85 Tue Jul 22 11:31 CDT 2003
383
384 A bug-fix release relative to 0.84. I've forked development into a
385 "stable" branch (this one) and a more aggressive branch (as yet
386 unreleased), with an eye toward getting the stable features in perl
387 5.8.1.
388
389 - File::Spec::Mac->case_tolerant() returned 0 when it should have
390 returned 1.
391
392 - Many cases in File::Spec::Win32->abs2rel() were broken, because of
393 the way in which volumes were/weren't ignored. Unfortunately, part
394 of the regression tests were broken too. Now, if the $path
395 argument to abs2rel() is on a different volume than the $base
396 argument, the result will be an absolute path rather than the
397 broken relative path previous versions returned.
398
399 - Fixed a problem in File::Spec::Win32->canonpath, which was turning
400 \../foo into "foo" rather than \foo
401
402 - Greatly simplified the code in File::Spec::Unix->splitdir().
403
404File::Spec 0.84_01 Fri Jul 11 16:14:29 CDT 2003
405
406 No actual code changes, just changes in other distribution files
407
408 - Dependencies are now listed explicitly in the Makefile.PL and
409 Build.PL scripts, as well as in the META.yml file.
410
411 - The t/abs2rel2abs.t test should now be more friendly about skipping
412 on platforms where it can't run properly.
413
414File::Spec 0.84 Wed Jul 9 22:21:23 CDT 2003
415
416 I (Ken)'ve taken the changes from bleadperl and created a new CPAN release
417 from them, since they're pretty important changes. The highlights,
418 from what I can tell, are listed here.
419
420 - A huge number of changes to File::Spec::Mac in order to bring it in
421 line with the other platforms. This work was mostly/completely
422 done by Thomas Wegner.
423
424 - The Epoc and Cygwin platforms are now supported.
425
426 - Lots of generically-applicable documentation has been taken from
427 File::Spec::Unix and put in File::Spec.
428
429 - A Build.PL has been provided for people who wish to install via
430 Module::Build.
431
432 - Some spurious warnings and errors in the tests have been
433 eliminated. [Michael Schwern]
434
435 - canonpath() on File::Spec::Unix now honors a //node-name at the
436 beginning of a path.
437
438 - Cwd.pm wasn't being loaded properly on MacOS. [Chris Nandor]
439
440 - Various POD fixups
441
442 - Several testing patches for the Epoc and Cygwin platforms [Tels]
443
444 - When running under taint mode and perl >= 5.8, all the tmpdir()
445 implementations now avoid returning a tainted path.
446
447 - File::Spec::OS2 now implements canonpath(), splitpath(),
448 splitdir(), catpath(), abs2rel(), and rel2abs() directly rather
449 than inheriting them from File::Spec::Unix.
450
451 - Added 'SYS:/temp' and 'C:/temp' to the list of possible tmpdir()s
452 on Win32.
453
454 - catfile() on Win32 and VMS will now automatically call canonpath()
455 on its final argument.
456
457 - canonpath() on Win32 now does a much more extensive cleanup of the
458 path.
459
460 - abs2rel() on Win32 now defaults to using cwd() as the base of
461 relativity when no base is given.
462
463 - abs2rel() on Win32 now explicitly ignores any volume component in
464 the $path argument.
465
466 - canonpath() on VMS now does []foo ==> foo, and foo.000000] ==> foo].
467 It also fixes a bug in multiple [000000.foo ==> [foo translations.
468
469 - tmpdir() on VMS now uses 'sys$scratch:' instead of 'sys$scratch'.
470
471 - abs2rel() on VMS now uses '000000' in both the path and the base.
472
473File::Spec 0.82 Wed Jun 28 11:24:05 EDT 2000
474 - Mac.pm: file_name_is_absolute( '' ) now returns TRUE on all platforms
475 - Spec.pm: unbreak C<$VERSION = '0.xx'> to be C<$VERSION = 0.xx>, so
476 underscores can be used when I want to update CPAN without anyone
477 needing to update the perl repository.
478 - abs2rel, rel2abs doc tweaks
479 - VMS.pm: get $path =~ /\s/ checks from perl repository.
480 - Makefile.PL: added INSTALLDIRS => 'perl', since these are std. modules.
481 - Remove vestigial context prototypes from &rel2abs until some future
482 arrives where method prototypes are honored.