os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/ChangeLog
First public contribution.
1 2007-05-24 Don Porter <dgp@users.sourceforge.net>
3 *** 8.4.15 TAGGED FOR RELEASE ***
5 * generic/tclIO.c: Backport memleak fix in TclFinalizeIOSubsystem.
7 2007-05-17 Don Porter <dgp@users.sourceforge.net>
9 * tests/fCmd.test: Backport the notNetworkFilesystem constraint.
11 2007-05-15 Don Porter <dgp@users.sourceforge.net>
13 * generic/tclNamesp.c: Plugged memory leak related to
14 [namespace delete ::]. [Bug 1716782]
16 * changes: updates for 8.4.15 release.
18 * win/tclWinReg.c: Bump to registry 1.1.5 to account
19 * library/reg/pkgIndex.tcl: for [1682211] bug fix.
21 2007-05-10 Don Porter <dgp@users.sourceforge.net>
23 * generic/tclInt.h: TclFinalizeThreadAlloc() is always defined,
24 so make sure it is also always declared.
28 * generic/tclCmdMZ.c (Trace*Proc): Update Tcl_VarTraceProcs so
29 * generic/tclLink.c (LinkTraceProc): that they call
30 * generic/tclUtil.c (TclPrecTraceProc): Tcl_InterpDeleted() for
31 themselves, and do not rely on (frequently buggy) setting of the
32 TCL_INTERP_DESTROYED flag by the trace core.
34 * generic/tclVar.c: Update callers of CallVarTraces to not
35 pass in the TCL_INTERP_DESTROYED flag. Also apply filters so that
36 public routines only pass documented flag values down to lower level
39 * generic/tclVar.c (CallVarTraces): The setting of the
40 TCL_INTERP_DESTROYED flag is now done entirely within the
41 CallVarTraces routine, the only place it can be done right.
43 2007-04-30 Daniel Steffen <das@users.sourceforge.net>
45 * unix/Makefile.in: add 'tclsh' dependency to install targets that rely
46 on tclsh, fixes parallel 'make install' from empty build dir.
48 2007-04-29 Daniel Steffen <das@users.sourceforge.net>
50 * unix/tclUnixFCmd.c: add workaround for crashing bug in fts_open()
51 * unix/tclUnixInit.c: without FTS_NOSTAT on 64bit Darwin 8 or earlier.
53 * unix/tclLoadDyld.c (TclpLoadMemory): fix (void*) arithmetic.
55 * macosx/tclMacOSXNotify.c: fix warnings.
57 * macosx/README: sync whitespace/formatting with HEAD.
58 * macosx/tclMacOSXBundle.c:
59 * macosx/tclMacOSXNotify.c:
62 * macosx/Makefile: fix/add copyright and license refs.
63 * macosx/tclMacOSXBundle.c:
64 * macosx/Tcl-Info.plist.in:
66 * unix/Makefile.in (dist): copy license.terms to dist macosx dir.
67 * unix/configure.in: install license.terms into Tcl.framework.
68 * unix/configure: autoconf-2.13
70 2007-04-21 Kevin B. Kenny <kennyb@acm.org>
72 * generic/tclClock.c: Restored Cygwin buildability [Bug 1387154]
73 * generic/tclInt.decls: Yet another round of attempting
74 * generic/tclInt.h: to get the correct type signature
75 * unix/tclUnixPort.h: for TclpLocaltime and TclpGmtime.
76 * unix/tclUnixTime.c: CONST TclpTime_t is a 'time_t *CONST'
77 * win/tclWinTime.c: and not a 'CONST time_t*' [Bug 1677275]
78 * generic/tclIntDecls.h:
79 * generic/tclIntPlatDecls.h: Regenerated.
81 2007-03-24 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
83 * win/tclWinThrd.c: Thread exit handler marks the current
84 thread as un-initialized. This allows exit handlers that
85 are registered later to re-initialize this subsystem in
86 case they need to use some sync primitives (cond variables)
89 2007-03-19 Don Porter <dgp@users.sourceforge.net>
91 * generic/tclEvent.c (Tcl_CreateThread): Replaced some calls to
92 * generic/tclPkg.c (CheckVersion): Tcl_Alloc() with calls to
93 * unix/tclUnixTime.c (SetTZIfNecessary): ckalloc(), which better
94 * win/tclAppInit.c (setargv): supports memory debugging.
96 2007-03-17 Kevin Kenny <kennykb@acm.org>
98 * win/tclWinReg.c (GetKeyNames): Size the buffer for enumerating
99 key names correctly, so that Unicode names exceeding 127 chars
100 can be retrieved without crashing. [Bug 1682211]
101 * tests/registry.test (registry-4.9): Added test case for the
104 2007-03-13 Don Porter <dgp@users.sourceforge.net>
106 * generic/tclExecute.c (INST_FOREACH_STEP4): Re-fetch pointers for
107 * tests/foreach.test (foreach-10.1): the value list each iteration
108 of the loop as defense against shimmers. [Bug 1671087]
110 * generic/tclVar.c (TclArraySet): Re-fetch pointers for the list
111 * tests/var.test (var-17.1): argument of [array set] each time
112 through the loop as defense against possible shimmer issues.
115 2007-03-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
117 * generic/tclCmdIL.c (Tcl_LsortObjCmd): Handle tricky case with loss
118 * tests/cmdIL.test (cmdIL-1.29):of list rep during sorting due
119 to shimmering. [Bug 1675116]
121 2007-03-07 Daniel Steffen <das@users.sourceforge.net>
123 * macosx/tclMacOSXNotify.c: add spinlock debugging and sanity checks.
125 * unix/tcl.m4 (Darwin): s/CFLAGS/CPPFLAGS/ in macosx-version-min check.
126 * unix/configure: autoconf-2.13
128 2007-03-01 Donal K. Fellows <donal.k.fellows@man.ac.uk>
130 * generic/tclCompCmds.c (TclCompileForeachCmd): Prevent an unexpected
131 * tests/foreach.test (foreach-9.1): infinite loop when the
132 variable list is empty and the foreach is compiled. [Bug 1671138]
134 2007-02-22 Andreas Kupries <andreask@activestate.com>
136 * tests/pkg.test: Added tests for the case of an alpha package
137 satisfying a require for the regular package, demonstrating a
138 corner case specified in TIP#280. More notes in the comments to
141 2007-02-20 Don Porter <dgp@users.sourceforge.net>
143 * doc/tcltest.n: Typo fix. [Bug 1663539]
145 2007-02-19 Jeff Hobbs <jeffh@ActiveState.com>
147 * generic/tclIOUtil.c (Tcl_FSEvalFile): safe incr of objPtr ref.
149 * unix/tcl.m4: use SHLIB_SUFFIX=".so" on HP-UX ia64 arch.
150 * unix/configure: autoconf-2.13
152 2007-02-12 Andreas Kupries <andreask@activestate.com>
154 * generic/tclEncoding.c (EscapeFromUtfProc): Applied patch
155 supplied by Mo DeJong to fix [Bug 1516109]. Backport from Tcl
156 8.5. Mo's description: Clear the TCL_ENCODING_END flag when end
157 bytes are written. This fix keep this method from writing escape
158 bytes for an encoding like iso2022-jp multiple times when the
159 escape byte overlap with the end of the IO buffer.
160 * tests/io.test: Add test case for escape byte overlap case.
162 2007-02-04 Daniel Steffen <das@users.sourceforge.net>
164 * unix/configure.in: add caching to -pipe check.
165 * unix/configure: autoconf-2.13
167 2007-01-30 Jeff Hobbs <jeffh@ActiveState.com>
169 * win/Makefile.in (install-private-headers): added target
171 2007-01-29 Don Porter <dgp@users.sourceforge.net>
173 * doc/fcopy.n: Typo fix. [Bug 1630627]
175 2007-01-25 Daniel Steffen <das@users.sourceforge.net>
177 * unix/tcl.m4: integrate CPPFLAGS into CFLAGS as late as possible
178 * unix/configure.in: and move (rather than duplicate) -isysroot flags
179 from CFLAGS to CPPFLAGS to avoid errors about multiple -isysroot flags
180 from some older gcc builds.
182 * unix/configure: autoconf-2.13
184 2007-01-22 Andreas Kupries <andreask@activestate.com>
186 * compat/memcmp.c (memcmp): Fixed the VOID / CONST typo introduced
189 2007-01-22 Donal K. Fellows <donal.k.fellows@man.ac.uk>
191 * compat/memcmp.c (memcmp): Reworked so that arithmetic is never
192 performed upon void pointers, since that is illegal. [Bug 1631017]
194 2006-01-19 Daniel Steffen <das@users.sourceforge.net>
196 * macosx/tclMacOSXNotify.c: accommodate changes to prototypes of
197 OSSpinLock(Un)Lock API.
199 * tests/env.test: add extra system env vars that need to be preserved
200 on some Mac OS X versions for testsuite to work.
202 * unix/tcl.m4: ensure CPPFLAGS env var is used when set. [Bug 1586861]
203 (Darwin): add -isysroot and -mmacosx-version-min flags to CPPFLAGS when
204 present in CFLAGS to avoid discrepancies between what headers configure
205 sees during preprocessing tests and compiling tests.
207 * unix/configure: autoconf-2.13
209 2006-12-19 Daniel Steffen <das@users.sourceforge.net>
211 * unix/tclUnixThrd.c (TclpInetNtoa): fix for 64 bit.
213 * unix/tcl.m4 (Darwin): --enable-64bit: verify linking with 64bit -arch
214 flag succeeds before enabling 64bit build.
215 * unix/configure: autoconf-2.13
217 2006-12-14 Donal K. Fellows <donal.k.fellows@man.ac.uk>
219 * doc/string.n: Fix example. [Bug 1615277]
221 2006-12-05 Andreas Kupries <andreask@activestate.com>
223 * tests/pkg.test: Backport to 8.4 (Don Porter's work):
224 * generic/tclPkg.c: When no requirements are supplied to a [package
225 require $pkg] and [package unknown] is invoked to find a satisfying
226 package, pass the requirement argument "0-" (which means all versions
227 are acceptable). This permits a registered [package unknown] command
228 to call [package vsatisfies $testVersion {*}$args] without any special
229 handling of the empty $args case. This fixes/avoids a bug in
230 [::tcl::tm::UnknownHandler] that was causing old TM versions to be
231 provided in preference to newer TM versions. Thanks to Julian Noble
232 for discovering the issue.
234 2006-12-04 Donal K. Fellows <donal.k.fellows@man.ac.uk>
236 * doc/file.n: Fix confusing wording for [file pathtype]. [Bug 1606454]
238 2006-11-28 Andreas Kupries <andreask@activestate.com>
240 * generic/tclBasic.c: TIP #280 implementation, conditional on the
241 * generic/tclCmdAH.c: define TCL_TIP280.
242 * generic/tclCmdIL.c:
243 * generic/tclCmdMZ.c:
244 * generic/tclCompCmds.c:
245 * generic/tclCompExpr.c:
246 * generic/tclCompile.c:
247 * generic/tclCompile.h:
248 * generic/tclExecute.c:
249 * generic/tclIOUtil.c:
251 * generic/tclInterp.c:
252 * generic/tclNamesp.c:
255 * tests/compile.test:
257 * tests/platform.test:
260 2006-11-27 Kevin Kenny <kennykb@acm.org>
262 * unix/tclUnixChan.c (TclUnixWaitForFile):
263 * tests/event.test (event-14.*): Corrected a bug where
264 TclUnixWaitForFile would present select() with the wrong mask on an
265 LP64 machine if a fd number exceeds 32. Thanks to Jean-Luc Fontaine
266 for reporting and diagnosing [Bug 1602208]
268 2006-11-26 Daniel Steffen <das@users.sourceforge.net>
270 * unix/tcl.m4 (Linux): --enable-64bit support. [Patch 1597389]
271 * unix/configure: autoconf-2.13 [Bug 1230558]
273 2006-11-07 Andreas Kupries <andreask@activestate.com>
275 * unix/tclUnixFCmd.c (CopyFile): Added code to fall back to a
276 hardwired default block size should the filesystem report a bogus
279 2006-11-03 Miguel Sofer <msofer@users.sf.net>
281 * generic/tclBasic.c (TEOVI): fix for possible leak of a Command in
282 the presence of execution traces that delete it.
284 * generic/tclBasic.c (TEOVI):
285 * tests/trace.test (trace-21.11): fix for [Bug 1590232], execution
286 traces may cause a second command resolution in the wrong
289 2006-11-01 Daniel Steffen <das@users.sourceforge.net>
291 * generic/tclEnv.c (Darwin): mark _environ symbol as unexported.
293 2006-10-31 Pat Thoyts <patthoyts@users.sourceforge.net>
295 * rules.vc: Fix [Bug 1582769] build with VC2003 and correct i386 arch
297 2006-10-23 Don Porter <dgp@users.sourceforge.net>
299 * README: Bump version number to 8.4.15
307 * unix/configure: autoconf-2.13
310 2006-10-18 Pat Thoyts <patthoyts@users.sourceforge.net>
312 *** 8.4.14 TAGGED FOR RELEASE ***
314 * win/nmakehlp.c: Ensure builds with VC6 without Platform SDK.
315 * win/rules.vc: Pickup MACHINE from environment.
317 2006-10-17 Don Porter <dgp@users.sourceforge.net>
319 * generic/tclIOUtil.c: Cleaned up some code flagged by a
320 * generic/tclInt.h: `make checkexports` test.
324 2006-10-16 Daniel Steffen <das@users.sourceforge.net>
326 * changes: updates for 8.4.14 release.
328 * macosx/Makefile: don't redo prebinding of non-prebound binaires.
330 2006-10-11 Andreas Kupries <andreask@activestate.com>
332 * generic/tclPkg.c (Tcl_PkgRequireEx): Corrected crash when argument
333 version==NULL passed in. Backport of the fix for the same problem in
336 2006-10-10 Don Porter <dgp@users.sourceforge.net>
338 * changes: changes updated for 8.4.14 release.
340 2006-10-06 Jeff Hobbs <jeffh@ActiveState.com>
342 * tests/http.test: update tests to handle strictness change.
344 2006-10-06 Pat Thoyts <patthoyts@users.sourceforge.net>
346 * win/rules.vc: avoid /RTCc flag with MSVC8. [Bug 1571954]
348 2006-10-05 Jeff Hobbs <jeffh@ActiveState.com>
350 * library/http/http.tcl (http::geturl): only do geturl url rfc 3986
351 validity checking if $::http::strict is true (default false for 8.4).
354 * generic/tcl.h: note limitation on changing Tcl_UniChar size
355 * generic/tclEncoding.c (UtfToUnicodeProc, UnicodeToUtfProc):
356 * tests/encoding.test (encoding-16.1): fix alignment issues in
357 unicode <> utf conversion procs. [Bug 1122671]
359 2006-10-05 Miguel Sofer <msofer@users.sf.net>
361 * generic/tclVar.c (Tcl_LappendObjCmd):
362 * tests/append.test(4.21-22): fix for longstanding [Bug 1570718],
363 lappending nothing to non-list. Reported by lvirden
365 2006-10-02 Don Porter <dgp@users.sourceforge.net>
367 * generic/tclFileName.c (TclGlob): Prevent doubling of directory
368 separators by [glob]. [Bug 1569042]
370 2006-10-01 Pat Thoyts <patthoyts@users.sourceforge.net>
372 * win/tclWinFile.c: Handle possible missing define.
373 * win/tclWinFile.c: Backported fix for [Bug 1420432] (cannot set
374 * tests/cmdAH.test: mtime for directories on windows).
376 2006-09-30 Miguel Sofer <msofer@users.sf.net>
378 * generic/tclUtil.c (Tcl_SplitList): optimisation, [Patch 1344747]
381 2006-09-26 Pat Thoyts <patthoyts@users.sourceforge.net>
383 * win/makefile.vc: Updated MSVC build to properly deal with
384 * win/nmakehlp.c: MSVC8 and AMD64 target. Backport from 8.5
386 * generic/tcl.h: Fixed stat definition for MSVC8 AMD64.
387 * win/tclWinSock.c: Casting type police.
390 2006-09-26 Don Porter <dgp@users.sourceforge.net>
392 * generic/tcl.h: As 2006-09-22 commit from Donal K. Fellows
393 demonstrates, "#define NULL 0" is just wrong, and as a quotable chat
394 figure observed, "If NULL isn't defined, we're not using a C compiler."
395 Improper fallback definition of NULL removed.
397 2006-09-25 Andreas Kupries <andreask@activestate.com>
399 * generic/tclIO.c (Tcl_StackChannel): Fixed [SF Tcl Bug 1564642], aka
400 coverity #51. Extended loop condition, added checking for NULL to
403 2006-09-25 Andreas Kupries <andreask@activestate.com>
405 * generic/tclBasic.c: Reverted exposure of patchlevel in registered
406 core version when TIP#268 features are activated. Better compatibility
407 with existing packages. Like Tk.
409 2006-09-24 Miguel Sofer <msofer@users.sf.net>
411 * generic/tclParse.c (Tcl_ParseCommand): also return an error if
412 start==NULL and numBytes<0. This is coverity's bug #20
414 * generic/tclStringObj.c (STRING_SIZE): fix allocation for 0-length
415 strings. This is coverity's bugs #54-5
417 2006-09-22 Andreas Kupries <andreask@activestate.com>
419 * generic/tclInt.h: Moved TIP#268's field 'packagePrefer' to the end
420 of the structure, for better backward compatibility.
422 2006-09-22 Andreas Kupries <andreask@activestate.com>
424 * generic/tclPkg.c (Tcl_PkgRequireEx): Changes handling of the return
425 information from 'Tcl_PkgRequireProc'. Keep the interpreter result
426 empty. Backport of fix for problem found while testing #268 under 8.5.
427 More details in the comments.
429 2006-09-22 Donal K. Fellows <donal.k.fellows@man.ac.uk>
431 * generic/tclThreadTest.c (TclCreateThread): Use NULL instead of 0 as
432 end-of-strings marker to Tcl_AppendResult; the difference matters on
433 64-bit machines. [Bug 1562528]
435 2006-09-21 Andreas Kupries <andreask@activestate.com>
437 * generic/tcl.decls: Implemented TIP #268, conditionally.
438 * generic/tclBasic.c: Define TCL_TIP268 to activate the new
439 * generic/tclDecls.h: features.
442 * generic/tclStubInit.c:
445 * library/package.tcl:
447 * tests/platform.test:
451 2006-09-15 Jeff Hobbs <jeffh@ActiveState.com>
453 * library/http/http.tcl: Change " " -> "+" url encoding mapping
454 * library/http/pkgIndex.tcl: to " " -> "%20" as per RFC 3986.
455 * tests/http.test (http-5.1): bump http to 2.5.3 for 8.4.14
457 2006-09-12 Andreas Kupries <andreask@activestate.com>
459 * unix/configure.in (HAVE_MTSAFE_GETHOST*): Modified to recognize
460 HP-UX 11.00 and beyond as having mt-safe implementations of the
462 * unix/configure: Regenerated, using autoconf 2.13
464 * unix/tclUnixCompat.c (PadBuffer): Fixed bug in calculation of the
465 increment needed to align the pointer, and added documentation
466 explaining why the macro is implemented as it is.
468 2006-09-11 Andreas Kupries <andreask@activestate.com>
470 * tests/msgcat.test: Bumped version in auxiliary files as well.
473 2006-09-11 Daniel Steffen <das@users.sourceforge.net>
475 * unix/tclUnixCompat.c: make compatLock static and only declare it
476 when it will actually be used; #ifdef parts of TSD that are not always
477 needed; adjust #ifdefs to cover all possible cases; fix whitespace.
479 2006-09-10 Don Porter <dgp@users.sourceforge.net>
481 * library/msgcat/msgcat.tcl: Bump to version msgcat 1.3.4 to account
482 * library/msgcat/pkgIndex.tcl: for modifications.
484 2006-09-10 Daniel Steffen <das@users.sourceforge.net>
486 * library/msgcat/msgcat.tcl (msgcat::Init): on Darwin, add fallback of
487 * tests/msgcat.test: default msgcat locale to
488 * unix/tclUnixInit.c (TclpSetVariables): current CFLocale
489 identifier if available (via private ::tcl::mac::locale global, set at
490 interp init when on Mac OS X 10.3 or later with CoreFoundation).
492 * unix/tcl.m4: add caching to new SC_TCL_* macros for MT-safe wrappers
493 * unix/configure: autoconf-2.13
495 2006-09-08 Andreas Kupries <andreask@activestate.com>
497 * unix/tclUnixCompat.c: Fixed conditions for CopyArray/CopyString, and
498 CopyHostent. Also fixed bad var names in TclpGetHostByName.
500 2006-09-08 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
502 * unix/tclUnixCompat.c: Added fallback to gethostbyname() and
503 gethostbyaddr() if the implementation is known to be MT-safe
504 (currently for Darwin 6 or later only).
506 * unix/configure.in: Assume gethostbyname() and gethostbyaddr() are
507 MT-safe starting with Darwin 6 (Mac OSX 10.2).
509 * unix/configure: Regenerated with autoconf V2.13
511 2006-09-07 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
513 * unix/tclUnixFCmd.c: Removed some false tests added (and left by
514 mistake) by fixing [Bug 999544]
516 * unix/tclUnixCompat.c: Added fallback to MT-unsafe library calls if
517 TCL_THREADS is not defined. Fixed alignment of arrays copied by
518 CopyArrayi() to be on the sizeof(char *) boundary.
520 2006-09-07 Andreas Kupries <andreask@activestate.com>
522 * unix/configure: Regenerated using autoconf 2.13.
524 2006-09-07 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
526 * unix/tclUnixChan.c Rewritten MT-safe wrappers to
527 * unix/tclUnixCompat.c return ptrs to TSD storage
528 * unix/tclUnixFCmd.c making them all look like their
529 * unix/tclUnixPort.h MT-unsafe pendants API-wise.
532 2006-09-06 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
534 * unix/tclUnixChan.c: Added TCL_THREADS ifdef'ed usage
535 * unix/tclUnixFCmd.c: of MT-safe calls like:
536 * unix/tclUnixSock.c: getpwuid, getpwnam, getgrgid, getgrnam,
537 * unix/tclUnixPort.h: gethostbyname and gethostbyaddr.
538 * unix/Makefile.in: See Tcl Bug: 999544
541 * unix/configure: Regenerated.
543 * unix/tclUnixCompat.c: New file containing MT-safe implementation of
546 2006-09-04 Don Porter <dgp@users.sourceforge.net>
548 * tests/main.text (Tcl_Main-4.4): Test corrected to not be
549 timing sensitive to the Bug 1481986 fix. [Bug 1550858]
551 2006-09-04 Jeff Hobbs <jeffh@ActiveState.com>
553 * doc/package.n: correct package example
555 2006-08-30 Jeff Hobbs <jeffh@ActiveState.com>
557 * win/tclWinChan.c: [Bug 819667] Improve logic for identifying COM
560 * win/tclWinFCmd.c: [Bug 1548263] Added test for NULL return
561 * generic/tclIOUtil.c: from Tcl_FSGetNormalizedPath which was
564 * generic/tclFileName.c (TclDoGlob): match incr with existing decr.
566 * unix/Makefile.in: add valgrindshell target and update default
567 VALGRINDARGS. User can override, or add to it with VALGRIND_OPTS env
570 * generic/tclBasic.c (Tcl_CreateInterp): init iPtr->threadId
572 * generic/tclIOGT.c (ExecuteCallback):
573 * generic/tclPkg.c (Tcl_PkgRequireEx): replace Tcl_GlobalEval(Obj)
574 with more efficient Tcl_Eval(Obj)Ex
576 2006-08-22 Andreas Kupries <andreask@activestate.com>
578 * unix/tclUnixNotfy.c (Tcl_WaitForEvent): Fixed broken if syntax
579 committed 2006-08-21 by Daniel. The broken syntax is visible to all
580 unix platforms, but not on OSX for machines which HAVE_COREFOUNDATION.
582 2006-08-21 Don Porter <dgp@users.sourceforge.net>
584 * generic/tclIOUtil.c: Revisions to complete the thread finalization
585 of the cwdPathPtr. [Bug 1536142]
587 2006-08-21 Daniel Steffen <das@users.sourceforge.net>
589 * macosx/tclMacOSXNotify.c (Tcl_WaitForEvent): if the run loop is
590 already running (e.g. if Tcl_WaitForEvent was called recursively),
591 re-run it in a custom run loop mode containing only the source for the
592 notifier thread, otherwise wakeups from other sources added to the
593 common run loop modes might get lost; sync panic msg changes from
596 * unix/tclUnixNotfy.c (Tcl_WaitForEvent): on 64-bit Darwin,
597 pthread_cond_timedwait() appears to have a bug that causes it to wait
598 forever when passed an absolute time which has already been exceeded
599 by the system time; as a workaround, when given a very brief timeout,
600 just do a poll on that platform. [Bug 1457797]
602 * unix/tclUnixPort.h (Darwin): override potentially faulty configure
603 detection of termios availability in all cases, since termios is known
604 to be present on all Mac OS X releases since 10.0. [Bug 497147]
606 2006-08-18 Daniel Steffen <das@users.sourceforge.net>
608 * unix/tcl.m4 (Darwin): add support for --enable-64bit on x86_64, for
609 universal builds including x86_64, for 64-bit CoreFoundation on
610 Leopard and for use of -mmacosx-version-min instead of
611 MACOSX_DEPLOYMENT_TARGET.
612 * unix/configure: autoconf-2.13
614 * generic/tcl.h: add fixes for building on Leopard and support
615 * unix/tclUnixPort.h: for 64-bit CoreFoundation on Leopard.
617 * unix/tclUnixPort.h: on Darwin x86_64, disable use of vfork as it
618 causes execve to fail intermittently. (rdar://4685553)
620 * macosx/README: updates for x86_64 support and Xcode 2.4.
622 * unix/tclUnixChan.c (TclUnixWaitForFile): with timeout < 0, if
623 select() returns early (e.g. due to a signal), call it again instead
624 of returning a timeout result. Fixes intermittent event-13.8 failures.
626 2006-08-09 Don Porter <dgp@users.sourceforge.net>
628 * generic/tclEncoding.c: Replace buffer copy in for loop with
629 call to memcpy(). Thanks to afredd. [Patch 1530262]
631 2006-08-03 Daniel Steffen <das@users.sourceforge.net>
633 * unix/tclUnixPipe.c (TclpCreateProcess): for USE_VFORK: ensure
634 standard channels are initialized before vfork() so that the child
635 doesn't potentially corrupt global state in the parent's address
638 2006-07-30 Kevin Kenny <kennykb@acm.org>
640 * tests/clock.test: Allowed UTC as a synonym for GMT in two tests that
641 indirectly invoke 'strftime' with the result of 'gmtime' to fix a
642 bogus test failure on FreeBSD systems. [Bug 1513489]
644 2006-07-30 Joe English <jenglish@users.sourceforge.net>
646 * doc/AppInit.3: Fix typo [Bug 1496886]
648 2006-07-20 Daniel Steffen <das@users.sourceforge.net>
650 * macosx/tclMacOSXNotify.c (Tcl_InitNotifier, Tcl_WaitForEvent):
651 create notifier thread lazily upon first call to Tcl_WaitForEvent()
652 rather than in Tcl_InitNotifier(). Allows calling exeve() in processes
653 where the event loop has not yet been run (Darwin's execve() fails in
654 processes with more than one thread), in particular allows embedders
655 to call fork() followed by execve(), previously the pthread_atfork()
656 child handler's call to Tcl_InitNotifier() would immediately recreate
657 the notifier thread in the child after a fork.
659 * macosx/tclMacOSXNotify.c (Tcl_InitNotifier): add support for
660 * unix/tclUnixFCmd.c (DoRenameFile, CopyFileAtts): weakly importing
661 * unix/tclUnixInit.c (TclpSetInitialEncodings): symbols not
662 available on OSX 10.2 or 10.3, enables binaires built on later OSX
663 versions to run on earlier ones.
664 * macosx/README: document how to enable weak-linking; cleanup.
665 * unix/tclUnixPort.h: add support for weak-linking; conditionalize
666 AvailabilityMacros.h inclusion; only disable realpath on 10.2 or
667 earlier when threads are enabled.
668 * unix/tclLoadDyld.c (TclpLoadMemoryGetBuffer): change runtime Darwin
669 * unix/tclUnixInit.c (TclpInitPlatform): release check to use
670 global initialized once
671 * unix/tclUnixFCmd.c (DoRenameFile, TclpObjNormalizePath): add runtime
672 Darwin release check to determine if realpath is threadsafe.
673 * unix/configure.in: add check on Darwin for compiler support of weak
674 * unix/tcl.m4: import and for AvailabilityMacros.h header; move
675 Darwin specific checks & defines that are only relevant to the tcl
676 build out of tcl.m4; restrict framework option to Darwin; cleanup
678 * unix/configure: autoconf-2.13
680 * unix/tclLoadDyld.c (TclpLoadMemory):
681 * unix/tclUnixPipe.c (TclpCreateProcess): fix signed-with-unsigned
682 comparison and other warnings from gcc4 -Wextra.
684 2006-07-13 Andreas Kupries <andreask@activestate.com>
686 * unix/tclUnixPort.h: Added the inclusion of <AvailabilityMacros.h>.
687 The missing header caused the upcoming #if conditions to wrongly
688 exclude realpath, causing file normalize to ignore symbolic links in
691 2006-07-11 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
693 * generic/tclAsync.c: Made Tcl_AsyncDelete() more tolerant when called
694 after all thread TSD has been garbage-collected.
696 2006-07-10 Jeff Hobbs <jeffh@ActiveState.com>
698 * generic/tclIO.c (Tcl_CreateChannel): allow Tcl std channel
699 inheritance to be #defined out (default remains in).
701 2006-06-15 Don Porter <dgp@users.sourceforge.net>
703 * changes: changes to start prep for an 8.4.14 release.
705 2006-06-14 Daniel Steffen <das@users.sourceforge.net>
707 * unix/tclUnixPort.h (Darwin): support for MAC_OS_X_VERSION_MAX_ALLOWED
708 define from AvailabilityMacros.h: override configure detection and only
709 use API available in the indicated OS version or earlier.
711 2006-06-14 Pat Thoyts <patthoyts@users.sourceforge.net>
713 * generic/regerror.c: Enable building Tcl with Microsoft's latest
714 * generic/tcl.h: compiler offering (VS2005). We have to handle
715 * generic/tclDate.c: a number of oddities as they have deprecated
716 * tests/env.test: most of the standard C library and now
717 * win/makefile.vc: generate manifest files to be linked into the
718 * win/nmakehlp.c: binaries. [Bug 1424909]
722 2006-06-13 Donal K. Fellows <donal.k.fellows@man.ac.uk>
724 * unix/tclLoadDl.c (TclpDlopen): Workaround for a compiler bug in Sun
725 Forte 6. [Bug 1503729]
727 2006-06-06 Don Porter <dgp@users.sourceforge.net>
729 * doc/GetStdChan.3: Added recommendation that each call to
730 Tcl_SetStdChannel() be accompanied by a call to Tcl_RegisterChannel().
732 2006-05-31 Jeff Hobbs <jeffh@ActiveState.com>
734 * generic/tclNamesp.c (NamespaceInscopeCmd): revert [Bug 1400572]
735 fix of 2006-01-09 for [namespace inscope] as it seems to mess with
736 itcl scope decoding. Leaving namespace-29.6 test failure until final
739 2006-05-29 Jeff Hobbs <jeffh@ActiveState.com>
741 * generic/tcl.h (Tcl_DecrRefCount): use if/else construct to allow
742 placement in unbraced outer if/else conditions. (jcw)
744 2006-05-27 Daniel Steffen <das@users.sourceforge.net>
746 * macosx/tclMacOSXNotify.c: implemented pthread_atfork() handler that
747 * unix/tcl.m4 (Darwin): recreates CoreFoundation state and notifier
748 thread in the child after a fork(). Note that pthread_atfork() is
749 available starting with Tiger only. Because vfork() is used by the core
750 on Darwin, [exec]/[open] are not affected by this fix, only extensions
751 or embedders that call fork() directly (such as TclX). However, this
752 only makes fork() safe from corefoundation tcl with --disable-threads;
753 as on all platforms, forked children may deadlock in threaded tcl due
754 to the potential for stale locked mutexes in the child. [Patch 923072]
755 * unix/configure: autoconf-2.59
757 2006-05-24 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
759 * unix/tcl.m4 (SC_CONFIG_SYSTEM): Fixed quoting of command script to
760 awk; it was a rarely used branch, but it was wrong. [Bug 1494160]
762 2006-05-13 Don Porter <dgp@users.sourceforge.net>
764 * generic/tclFileName.c (TclDoGlob): Disabled the partial
765 normalization done by the recursive glob routine, since changing the
766 precise string of the pathname broke [glob] on some Tcl_Filesystems.
769 * generic/tclProc.c (ProcCompileProc): When a bump of the compile
770 epoch forces the re-compile of a proc body, take care not to
771 overwrite any Proc struct that may be referred to on the active
772 call stack. This fixes [Bug 1482718]. Note that the fix will not be
773 effective for code that calls the private routine TclProcCompileProc()
776 2006-05-05 Don Porter <dgp@users.sourceforge.net>
778 * generic/tclMain.c (Tcl_Main): Corrected flaw that required
779 * tests/main.test: (Tcl_Main-4.5): processing of one interactive
780 command before passing control to the loop routine registered with
781 Tcl_SetMainLoop() [Bug 1481986]
783 2006-05-04 Don Porter <dgp@users.sourceforge.net>
785 * README: Bump version number to 8.4.14
793 * unix/configure: autoconf-2.13
796 * generic/tclExecute.c (ExprSrandFunc): Restore acceptance of wide
797 * tests/expr-old.test: integer values by srand() [Bug 1480509]
799 2006-04-12 Don Porter <dgp@users.sourceforge.net>
801 *** 8.4.13 TAGGED FOR RELEASE ***
803 * changes: updates for another RC.
805 2006-04-11 Don Porter <dgp@users.sourceforge.net>
807 * generic/tclCmdMZ.c: Stop some interference between enter traces
808 * tests/trace.test: and enterstep traces. [Bug 1458266]
810 2006-04-10 Don Porter <dgp@users.sourceforge.net>
812 * changes: updates for another RC.
814 2006-04-06 Jeff Hobbs <jeffh@ActiveState.com>
816 * generic/tclRegexp.c (FinalizeRegexp): full reset data to indicate
817 readiness for reinitialization.
819 2006-04-06 Don Porter <dgp@users.sourceforge.net>
821 * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): It seems there
822 * tests/indexObj.test: are extensions that rely on the prior behavior
823 * doc/GetIndex.3: that the empty string cannot succeed as a
824 unique prefix matcher, so I'm restoring Donal Fellows's solution.
825 Added mention of this detail to the documentation. [Bug 1464039]
827 2006-04-06 Daniel Steffen <das@users.sourceforge.net>
829 * unix/tcl.m4: removed TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING
830 define on Darwin. [Bug 1457515]
831 * unix/configure: autoconf-2.13
833 2006-04-05 Don Porter <dgp@users.sourceforge.net>
835 * library/reg/pkgIndex.tcl: Long overlooked bump to registry
836 * win/tclWinReg.c: package version 1.1.4 (should have
837 been done for the Tcl 8.4.8 release!)
839 * library/dde/pkgIndex.tcl: Long overlooked bump to dde package
840 * win/tclWinDde.c: version 1.2.4 (should have been done
841 for the Tcl 8.4.8 release!)
843 2006-04-05 Donal K. Fellows <donal.k.fellows@man.ac.uk>
845 * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Allow empty
846 strings to be matched by the Tcl_GetIndexFromObj machinery, in the
847 same manner as any other key. [Bug 1464039]
849 2006-04-04 Don Porter <dgp@users.sourceforge.net>
851 * generic/tclPkg.c: Revised Bug 1162286 fix from 2005-11-08 to be
852 * tests/pkg.test: even more forgiving of package version
853 mismatch errors in [package ifneeded] commands, not even logging any
854 warning messages. This further reduces the
855 ***POTENTIAL INCOMPATIBILITY*** noted for that change.
857 2006-04-03 Andreas Kupries <andreask@activestate.com>
859 * generic/tclIO.c (ReadChars): Added check, panic and commentary to a
860 piece of code which relies on BUFFER_PADDING to create enough space at
861 the beginning of each buffer for the insertion of partial multibyte
862 data at the beginning of a buffer. Commentary explains why this code
863 is OK, and the panic is as a precaution if someone twiddled the
864 BUFFER_PADDING into uselessness.
866 * generic/tclIO.c (ReadChars): Temporarily suppress the use of
867 TCL_ENCODING_END set when EOF was reached while the buffer we are
868 converting is not truly the last buffer in the queue. Together with
869 the Utf bug below it was possible to completely wreck the buffer data
870 structures, eventually crashing Tcl. [Bug 1462248]
872 * generic/tclEncoding.c (UtfToUtfProc): Stop accessing memory beyond
873 the end of the input buffer when TCL_ENCODING_END is set and the last
874 bytes of the buffer start a multi-byte sequence. This bug contributed
877 2006-03-28 Jeff Hobbs <jeffh@ActiveState.com>
879 * win/configure, win/tcl.m4: define MACHINE for gcc builds as well.
880 Needed by Tk for manifest generation.
882 * win/tclWinConsole.c: revert 2005-11-03 [Patch 1256872] change to add
883 win32 unicode console support as it broke the ability to modify the
884 encoding to the console.
886 2006-03-28 Daniel Steffen <das@users.sourceforge.net>
888 * unix/tclUnixFCmd.c (TclpObjNormalizePath): deal with *BSD/Darwin
889 realpath() converting relative paths into absolute paths. [Bug 1064247]
891 2006-03-28 Vince Darley <vincentdarley@sourceforge.net>
893 * generic/tclIOUtil.c: fix to nativeFilesystemRecord comparisons
894 (lesser part of [Bug 1064247])
896 2006-03-27 Pat Thoyts <patthoyts@users.sourceforge.net>
898 * win/tclWinTest.c: Fixes for [Bug 1456373] (mingw-gcc issue)
900 2006-03-23 Don Porter <dgp@users.sourceforge.net>
902 * tests/expr.test: Nan self-inquality test silenced. [Bug 761471]
904 2006-03-22 Don Porter <dgp@users.sourceforge.net>
906 * changes: updates for another RC.
908 2006-03-18 Vince Darley <vincentdarley@sourceforge.net>
914 * tests/winFCmd.test:
915 * tests/tcltest.test: Backport of [file writable] fixes for Windows
916 from HEAD. [Bug 1193497]
918 2006-03-16 Andreas Kupries <andreask@activestate.com>
920 * doc/open.n: Documented the changed behaviour of 'a'ppend mode.
922 * tests/io.test (io-43.1 io-44.[1234]): Rewritten to be
923 self-contained with regard to setup and cleanup. [Bug 681793]
925 * generic/tclIOUtil.c (TclGetOpenMode): Added the flag O_APPEND to the
926 list of POSIX modes used when opening a file for 'a'ppend. This
927 enables the proper automatic seek-to-end-on-write by the OS. See [Bug
928 680143] for longer discussion.
930 * tests/ioCmd.test (iocmd-13.7.*): Extended the testsuite to check the
933 2006-03-15 Andreas Kupries <andreask@activestate.com>
935 * tests/socket.test: Extended the timeout in socket-11.11 from 10 to
936 40 seconds to allow for really slow machines. Also extended
937 actual/expected results with value of variable 'done' to make it
938 clearer when a test fails due to a timeout. [Bug 792159]
940 2006-03-14 Andreas Kupries <andreask@activestate.com>
942 * generic/tclPipe.c (TclCreatePipeline): Modified the processing of
943 pipebars to fail if the last bar is followed only by redirections.
946 2006-03-14 Andreas Kupries <andreask@activestate.com>
948 * doc/fconfigure.n: Clarified that -translation is binary is reported
949 as lf when queried, because it is identical to lf, except for the
950 special additional behaviour when setting it. [Bug 666770]
952 2006-03-14 Andreas Kupries <andreask@activestate.com>
954 * win/tclWinPipe.c (Tcl_WaitPid): Backport of fix made to the head by
955 David Gravereaux in 2004. See ChangeLog entry 2004-01-19. [Bug 1381436]
957 Fixed a thread-safety problem with the process list. The delayed cut
958 operation after the wait was going stale by being outside the list
959 lock. It now cuts within the lock and does a locked splice for when it
960 needs to instead. [Bug 859820]
962 2006-03-13 Don Porter <dgp@users.sourceforge.net>
964 * generic/tclEncoding.c: Report error when an escape encoding
965 is missing one of its sub-encodings [Bug 506653]
967 * unix/configure.in: Revert change from 2005-07-26 that sometimes
968 * unix/configure: added $prefix/share to the tcl_pkgPath.
969 See [Patch 1231015]. autoconf-2.13.
971 2006-03-10 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
973 -- Summary of changes fixing [Bug 1437595] --
975 * generic/tclEvent.c: Cosmetic touches and identation
976 * generic/tclInt.h: Added TclpFinalizeSockets() call.
978 * generic/tclIO.c: Calls TclpFinalizeSockets() as part of the
979 TclFinalizeIOSubsystem().
981 * unix/tclUnixSock: Added no-op TclpFinalizeSockets().
985 * win/tclWinSock.c: Finalization of the sockets/pipes is now solely
986 done in TclpFinalizeSockets() and TclpFinalizePipes() and not over the
987 thread-exit handler, because the order of actions the Tcl generic core
988 will impose may result in cores/hangs if the thread exit handler tears
989 down corresponding subsystem(s) too early.
991 2006-03-10 Vince Darley <vincentdarley@sourceforge.net>
995 * win/tclWinFile.c: backported some fixes from HEAD relating to 'file
996 readable' and 'file writable', but main 'file writable' bug still
999 2006-03-07 Don Porter <dgp@users.sourceforge.net>
1001 * README: Bump version number to 8.4.13 and update
1002 * changes: changes to start prep for an 8.4.13 release.
1005 * unix/configure{.in}:
1007 * win/README.binary:
1008 * win/configure{.in}:
1010 * tests/parse.test: Missing constraint
1012 2006-03-06 Don Porter <dgp@users.sourceforge.net>
1014 * generic/tclBasic.c: Revised handling of TCL_EVAL_* flags to
1015 * tests/parse.test: simplify TclEvalObjvInternal and to correct
1016 the auto-loading of alias targets (parse-8.12). [Bug 1444291]
1018 2006-03-02 Jeff Hobbs <jeffh@ActiveState.com>
1020 * win/Makefile.in: convert _NATIVE paths to use / to avoid ".\"
1021 path-as-escape issue.
1023 * unix/tcl.m4, win/tcl.m4: []-quote ac_defun functions.
1025 2006-03-02 Pat Thoyts <patthoyts@users.sourceforge.net>
1027 * unix/tcl.m4: Fix for [Tk Bug 1334613] to sort out shared library
1028 * unix/configure: issues on NetBSD. Regenerated configure script.
1030 2006-02-28 Don Porter <dgp@users.sourceforge.net>
1032 * generic/tclBasic.c: Corrections to be sure that TCL_EVAL_GLOBAL
1033 * tests/parse.test: evaluations act the same as [uplevel #0]
1034 * tests/trace.test: evaluations, even when execution traces or
1035 invocations of [::unknown] are present. [Bug 1439836]
1037 2006-02-16 Don Porter <dgp@users.sourceforge.net>
1039 * generic/tclIndexObj.c: Disallow the "ambiguous" error message
1040 * tests/indexObj.test: when TCL_EXACT matching is requested.
1042 2006-02-15 Don Porter <dgp@users.sourceforge.net>
1044 * generic/tclIO.c: Made several routines tolerant of
1045 * generic/tclIOUtil.c: interp == NULL arguments. [Bug 1380662]
1047 2006-02-09 Don Porter <dgp@users.sourceforge.net>
1049 * tests/main.test (Tcl_Main-6.7): Improved robustness of command
1050 auto-completion test. [Bug 1422736]
1052 2006-01-25 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1054 * unix/tclUnixInit.c (TclpInitPlatform): Improved conditions on when
1055 to update the FP rounding mode on FreeBSD, taken from FreeBSD port.
1057 2006-01-23 Miguel Sofer <msofer@users.sf.net>
1059 * generic/tclStringObj.c (Tcl_GetRange):
1060 * tests/stringTest (string-12.21):fixed incorrect handling of internal
1061 rep in Tcl_GetRange. Thanks to twylite and Peter Spjuth. [Bug 1410553]
1063 2006-01-16 Reinhard Max <max@suse.de>
1065 * generic/tclPipe.c (FileForRedirect): Prevent nameString from being
1066 freed without having been initialized.
1067 * tests/exec.test: Added a test for the above.
1069 2006-01-12 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
1071 * generic/tclIOUtil.c (Tcl_FSGetInternalRep): fixed potential
1072 overwriting of already freed memory which caused all kinds of (rare
1073 but reproducible) coredumps all over the place.
1075 2006-01-11 Don Porter <dgp@users.sourceforge.net>
1077 * tests/error.test (error-7.0): Test the timing of write traces on
1078 ::errorInfo. [Bug 1397843]
1080 2006-01-10 Daniel Steffen <das@users.sourceforge.net>
1082 * unix/configure: add caching, use AC_CACHE_CHECK instead of
1083 * unix/configure.in: AC_CACHE_VAL where possible, consistent message
1084 * unix/tcl.m4: quoting, sync relevant tclconfig/tcl.m4 and HEAD
1085 changes and gratuitous formatting differences, fix SC_CONFIG_MANPAGES
1086 with default argument, Darwin improvements to SC_LOAD_*CONFIG.
1088 2006-01-09 Don Porter <dgp@users.sourceforge.net>
1090 * generic/tclNamesp.c (NamespaceInscopeCmd): [namespace inscope]
1091 * tests/namespace.test: commands were not reported by [info level].
1094 2005-12-20 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1096 * generic/tclThreadAlloc.c (Tcl_GetMemoryInfo): Format values as longs
1097 and not ints, so they are less likely to wrap on 64-bit machines.
1099 2005-12-19 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1101 * doc/Tcl.n: Clarify what is going on in variable substitution
1102 following thread on comp.lang.tcl.
1104 2005-12-14 Daniel Steffen <das@users.sourceforge.net>
1106 * generic/tclIOUtil.c: workaround gcc warning "comparison is always
1107 * generic/tclTest.c: false due to limited range of data type".
1109 * unix/configure.in: run check for fts API on all platforms, since
1110 Linux glibc2 and *BSDs also have this and using fts is more efficient
1111 than recursive opendir/readdir (sync with HEAD).
1112 * unix/configure: regen.
1114 2005-12-12 Jeff Hobbs <jeffh@ActiveState.com>
1116 * unix/tcl.m4, unix/configure: Fix sh quoting error reported in
1117 bash-3.1+ [Bug 1377619] (schafer)
1119 2005-12-12 Reinhard Max <max@suse.de>
1121 * generic/tclExecute.c (ExprAbsFunc): fixed the abs(MIN_INT) case so
1122 that it doesn't break on compilers that don't assume integers to wrap
1123 around (e.g. gcc-4.1.0).
1125 2005-12-09 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
1127 * tests/lsearch.test (lsearch-10.8..10): If the -start is off the end,
1128 * generic/tclCmdIL.c (Tcl_LsearchObjCmd): searching should find
1129 nothing at all. [Bug 1374778]
1131 2005-12-05 Daniel Steffen <das@users.sourceforge.net>
1133 *** 8.4.12 TAGGED FOR RELEASE ***
1135 * unix/tclUnixPort.h (Darwin): fix incorrect __DARWIN_UNIX03 configure
1136 overrides that were originally copied from Darwin CVS (rdar://3693001).
1138 2005-12-05 Don Porter <dgp@users.sourceforge.net>
1140 * unix/configure.in: Revised fix for [Bug 1034337] from Daniel
1141 * unix/tclUnixFCmd.c: Steffen. Uses fts_*() routines.
1142 * unix/configure: autoconf-2.13
1143 * changes: Update changes for 8.4.12 release
1145 2005-12-04 Daniel Steffen <das@users.sourceforge.net>
1147 * README: refer to macosx/README instead of mac/README.
1148 * mac/README: add note that mac classic port is no longer supported.
1150 2005-12-03 Jeff Hobbs <jeffh@ActiveState.com>
1152 * README: correct 2 urls
1154 2005-12-01 Don Porter <dgp@users.sourceforge.net>
1156 * changes: Update changes for 8.4.12 release
1158 2005-12-01 Daniel Steffen <das@users.sourceforge.net>
1160 * unix/tcl.m4 (Darwin): fixed error when MACOSX_DEPLOYMENT_TARGET unset
1161 * unix/configure: regen.
1163 2005-11-29 Jeff Hobbs <jeffh@ActiveState.com>
1165 * win/tcl.m4: Add build support for Windows-x64 builds.
1166 * win/configure: --enable-64bit now accepts =amd64|ia64 for
1167 * win/Makefile.in: Windows 64-bit build variants (default: amd64)
1168 * win/makefile.vc: [Bug 1369597]
1170 2005-11-29 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1172 * generic/tclObj.c (Tcl_GetWideIntFromObj): Add more efficient
1173 conversion to wides from normal ints. [Bug 1310081]
1175 * generic/tclCmdIL.c (Tcl_LsearchObjCmd): Allow [lsearch -regexp] to
1176 process REs that contain backreferences. This expensive mode of
1177 operation is only used if the RE would otherwise cause a compilation
1178 failure. [Bug 1366683]
1180 2005-11-28 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1182 * win/tclWinSock.c (CreateSocket): Applied [Patch 1353853] to prevent
1183 reads of uninitialized variables during cleanup.
1185 2005-11-27 Daniel Steffen <das@users.sourceforge.net>
1187 * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),
1188 add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to
1189 configure (flag can't be present twice, so can't be in both CFLAGS and
1190 LDFLAGS during configure), don't use -prebind when deploying on 10.4,
1191 define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542).
1192 (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete
1193 autoconf macros. Sync with tk/unix/tcl.m4, sync whitespace with HEAD.
1195 * unix/configure.in: fix obsolete autoconf macros, sync gratuitous
1196 formatting/ordering differences with tk/unix/configure.in.
1198 * unix/Makefile.in: add CFLAGS to tclsh/tcltest link to make
1199 executable linking the same as during configure (needed to avoid
1200 loosing any linker relevant flags in CFLAGS, in particular flags that
1201 can't be in LDFLAGS). Avoid concurrent linking of tclsh and compiling
1202 of tclTestInit.o or xtTestInit.o during parallel make.
1203 (checkstubs, checkdoc, checkexports): dependency and Darwin fixes
1205 * unix/tclLoadDyld.c (TclpDlopen): [Bug 1204237] use
1206 NSADDIMAGE_OPTION_WITH_SEARCHING on second NSAddImage only.
1207 (TclGuessPackageName): should not be MODULE_SCOPE.
1208 (TclpLoadMemory): ppc64 and endian (i386) fixes, add support for
1209 loading universal (fat) bundles from memory.
1211 * unix/tclUnixPort.h:
1212 * unix/tclUnixFCmd.c: add support for new Tiger copyfile() API to
1213 enable copying of xattrs & ACLs by [file copy].
1215 * generic/tcl.h: add Darwin specifc configure overrides for TCL_WIDE
1216 defines to support fat compiles of ppc and ppc64 at the same time,
1217 (replaces Darwin CVS fix by emoy, rdar://3693001).
1218 add/correct location of version numbers in macosx files.
1220 * generic/tclInt.h: clarify fat compile comment.
1222 * unix/tclUnixPort.h: add Darwin specifc configure overrides to
1223 support fat compiles, where configure runs only once for multiple
1224 architectures (replaces Darwin CVS fix by emoy, rdar://3693001).
1226 * macosx/tclMacOSXBundle.c:
1227 * macosx/tclMacOSXNotify.c:
1228 * unix/tclUnixNotfy.c: fix #include order to support compile time
1229 * unix/tclUnixPort.h: override of HAVE_COREFOUNDATION in
1230 tclUnixPort.h when building for ppc64
1232 * macosx/Tcl.pbproj/default.pbxuser (new file):
1233 * macosx/Tcl.pbproj/jingham.pbxuser:
1234 * macosx/Tcl.pbproj/project.pbxproj: sync with HEAD.
1236 * macosx/README: clarification/cleanup, sync with HEAD, document
1237 universal (fat) builds via CFLAGS (i.e. all of ppc ppc64 i386 at once).
1239 * macosx/Makefile: add support for reusing configure cache, build
1240 target fixes, remove GENERIC_FLAGS override now handled by tcl.m4.
1242 * generic/tclIOUtil.c:
1243 * generic/tclRegexp.c:
1244 * generic/tclVar.c: declare globals used only in own file as static
1247 * generic/rege_dfa.c (getvacant):
1248 * generic/regexec.c (cfind):
1249 * generic/tclCompExpr.c (CompileSubExpr):
1250 * unix/tclUnixChan.c (TclUnixWaitForFile): initialise variables to
1251 silence gcc 4 warnings.
1253 * generic/regguts.h: only #define NDEBUG if not already #defined.
1255 * macosx/tclMacOSXNotify.c: sync whitespace & comments with HEAD
1257 * unix/configure: regen.
1259 2005-11-20 Joe English <jenglish@users.sourceforge.net>
1261 * generic/tclStubLib.c: Don't set tclStubsPtr to 0 when
1262 Tcl_PkgRequireEx() fails [Fix for [Bug 1091431] "Tcl_InitStubs failure
1265 2005-11-18 Miguel Sofer <msofer@users.sf.net>
1267 * tests/trace.test (trace-34.5): [Bug 1047286], added a second test
1268 illustrating the role of "ns in callStack" in the ns's visibility
1269 during deletion traces.
1271 * generic/tclBasic.c (Tcl_DeleteCommandFromToken):
1272 * generic/tclCmdMZ.c (TraceCommandProc):
1273 * generic/tclInt.h (NS_KILLED):
1274 * generic/tclNamesp.c (Tcl_DeleteNamespace
1275 * tests/namespace.test (namespace-7.3-6):
1276 * tests/trace.test (trace-20.13-16): fix [Bugs 1355942/1355342].
1278 2005-11-18 Jeff Hobbs <jeffh@ActiveState.com>
1280 * generic/tclIO.c (TclFinalizeIOSubsystem): preserve statePtr until we
1281 netrieve next statePtr from it.
1283 2005-11-18 Don Porter <dgp@users.sourceforge.net>
1285 * generic/tclPkg.c: Revised Bug 1162286 fix from 2005-11-08 to be
1286 * tests/pkg.test: more forgiving of package version mismatch
1287 errors in [package ifneeded] commands. This reduces the
1288 ***POTENTIAL INCOMPATIBILITY*** noted for that change.
1290 2005-11-18 Andreas Kupries <andreask@activestate.com>
1292 * generic/tclIO.c (TclFinalizeIOSubsystem): Applied Pat Thoyts' patch
1293 for [Bug 1359094]. This moves the retrieval of the next channel state
1294 to the end of the loop, as the called closeproc may close other
1295 channels, i.e., modify the list we are iterating, invalidating any
1296 pointer retrieved earlier.
1298 2005-11-18 Donal K. Fellows <donal.k.fellows@manchester.ac.uk>
1300 * library/http/http.tcl (http::geturl): Improved syntactic validation
1301 of URLs, and better error messages in some cases. [Bug 1358369]
1303 2005-11-16 Don Porter <dgp@users.sourceforge.net>
1305 * README: Bump version number to 8.4.12
1308 * unix/configure.in:
1310 * win/README.binary:
1313 * unix/configure: autoconf-2.13
1316 2005-11-15 Don Porter <dgp@users.sourceforge.net>
1318 * changes: Update changes for 8.4.12 release
1320 2005-11-15 Kevin B. Kenny <kennykb@acm.org>
1322 * tests/cmdAH.test: Backported the fix for [Bug 926016] because of
1323 * win/tclWinFile.c: a repeated bug report in 8.4 [Bug 1353840].
1324 Windows [file mtime] will now return seconds from the Posix epoch
1325 correctly (except for FAT32 file systems after a DST change without a
1326 reboot - for which there is no help). A side effect is that file times
1327 will appear different in Tcl from the way they do in Windows Explorer
1328 or a 'dir' listing, because the Microsoft tools get the DST state
1329 wrong in the listings.
1331 2005-11-09 Kevin B. Kenny <kennykb@acm.org>
1333 * generic/tclTimer.c: Changed [after] so that it behaves correctly
1334 * tests/timer.test: with negative arguments. [Bug 1350293]
1336 2005-11-08 Jeff Hobbs <jeffh@ActiveState.com>
1338 * unix/tclUnixFCmd.c (MAX_READDIR_UNLINK_THRESHOLD): reduce to 130
1339 based on errors seen on OS X 10.3 with lots of links in a dir. [Bug
1342 2005-11-08 Don Porter <dgp@users.sourceforge.net>
1344 * tests/expr.test: Portable tests expr-46.13-18 [Bug 1341368]
1346 * generic/tclPkg.c: Corrected inconsistencies in the value returned
1347 * tests/pkg.test: by Tcl_PkgRequire(Ex) so that the returned
1348 values will always agree with what is stored in the package database.
1349 This way repeated calls to Tcl_PkgRequire(Ex) have the same results.
1350 Thanks to Hemang Lavana. [Bug 1162286]
1351 ***POTENTIAL INCOMPATIBILITY***: Incompatible with those existing
1352 packages that are accustomed to the [package] command forgiving
1355 * tests/namespace.test (25.7,8): Backport test of knownBug.
1357 2005-11-08 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1359 * generic/tclCmdMZ.c (TclTraceVariableObjCmd, TraceVarProc): Applied
1360 Miguel's fix for [Bug 1348775]. It is not quite as elegant as the one
1361 applied to the HEAD, but it is easier to use it rather than fully
1364 2005-11-07 Miguel Sofer <msofer@users.sf.net>
1366 * tests/trace.test (trace-13.2-4): added tests to detect leak, see
1369 2005-11-04 Don Porter <dgp@users.sourceforge.net>
1371 * unix/tcl.m4: Added code to enable [load] on LynxOS. Thanks to
1372 heidibr@users.sf.net for the patch. [Bug 1163896]
1374 * unix/configure: autoconf-2.13.
1376 2005-11-04 Pat Thoyts <patthoyts@users.sourceforge.net>
1378 * win/tclWinPipe.c: Applied [Patch 1267871] by Matt Newman which
1379 * win/tclWinPort.h: provides extended error code support.
1380 * tests/exec.test: Wrote some tests for this feature.
1382 2005-11-04 Kevin Kenny <kennykb@acm.org>
1384 * generic/tclGetDate.y: Added abbreviations for the Korean timezone.
1385 * generic/tclDate.c: Regenerated.
1387 * compat/strftime.c: Fixed a problem where the name of the time zone
1388 was double-converted from system encoding to UTF-8. Thanks to the
1389 anonymous submitter of [Bug 1317477] for the report and the patch.
1391 2005-11-04 Miguel Sofer <msofer@users.sf.net>
1394 * generic/tclNamesp.c:
1395 * generic/tclVar.c: fix for [Bugs 1338280/1337229]. Thanks Don.
1397 * tests/trace.test: fix duplicate test numbers
1399 2005-11-03 Don Porter <dgp@users.sourceforge.net>
1401 * generic/tclUnixInit.c (TclpSetInitialEncodings): Modified so
1402 that multiple calls can continue to atttempt to properly set the
1403 system encoding. Needed for Tclkit to properly support non-default
1404 encodings. Thanks to Yaroslav Schekin. [Bug 1201171]
1406 2005-11-03 Pat Thoyts <patthoyts@users.sourceforge.net>
1408 * win/tclWin32Dll.c: Backported Anton Kovalenko's [Patch 1256872]
1409 * win/tclWinConsole.c: to give unicode console support on
1410 * win/tclWinInt.h: suitable systems (eg: NT/XP)
1412 2005-11-01 Don Porter <dgp@users.sourceforge.net>
1414 * generic/tclCmdMZ.c (TclCheckExecutionTraces): Corrected mistaken
1415 assumption that all command traces are set at the script level.
1416 Report/fix from Jacques H. de Villiers. [Bug 1337941]
1418 * tests/expr-old.test (expr-32.52): Use int(.) to restrict result
1419 of left shift to the C long range.
1421 2005-10-29 Mo DeJong <mdejong@users.sourceforge.net>
1423 * tests/expr.test: Fix problems in new round() tests that lead to
1424 correct result only on 32 bit long systems. [Bug 1341368]
1426 2005-10-29 Miguel Sofer <msofer@users.sf.net>
1428 * generic/tclCmdMZ.c (TraceVarProc): [Bug 1337229], partial fix.
1429 Ensure that a second call with TCL_TRACE_DESTROYED does not lead to a
1430 second call to Tcl_EventuallyFree(). It is still true that that second
1431 call should not happen, so the bug is not completely fixed.
1432 * tests/trace.test (test-18.3-4): added tests for [Bugs 1337229 and
1435 2005-10-27 Mo DeJong <mdejong@users.sourceforge.net>
1437 * generic/tclExecute.c (ExprRoundFunc): Fix typo where number before
1438 rounding is compared with smallest integer instead of number after
1439 rounding. This fix does not change the results of any tests.
1440 * tests/expr.test: Add round() tests for cases near the min and max
1442 * tests/util.test: Remove pointless warning code about testobj command
1444 2005-10-23 Miguel Sofer <msofer@users.sf.net>
1446 * generic/tclBasic.c:
1447 * generic/tclBinary.c:
1448 * generic/tclCmdAH.c:
1449 * generic/tclCmdIL.c:
1450 * generic/tclCmdMZ.c:
1451 * generic/tclExecute.c:
1452 * generic/tclLink.c:
1453 * generic/tclMain.c:
1454 * generic/tclProc.c:
1455 * generic/tclScan.c:
1456 * generic/tclTest.c:
1459 * unix/tclUnixInit.c:
1460 * win/tclWinInit.c: Ensure that the core never calls TclPtrSetVar,
1461 Tcl_SetVar2Ex, Tcl_ObjSetVar2 or Tcl_SetObjErrorCode with a 0-ref new
1462 value. It is not possible to handle error returns correctly in that
1463 case [Bug 1334947], one has the choice of leaking the object in some
1464 cases, or else risk crashing in some others.
1466 2005-10-22 Miguel Sofer <msofer@users.sf.net>
1468 * generic/tclExecute.c (INST_CONCAT): disable the optimisation for
1469 wide integers. [Bug 1251791]
1471 2005-10-14 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
1473 * generic/tclIO.c (Tcl_ClearChannelHandlers): removed change dated
1474 2005-10-04 below. Look into [Bug 1323992] for detailed discussion.
1476 2005-10-13 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1478 * generic/tclCmdAH.c (Tcl_FormatObjCmd): Stop [format] from seeing
1479 the difference between ints and wides. [Bug 1284178]
1481 2005-10-13 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
1483 * generic/tclIO.c (Tcl_ClearChannelHandlers): temporary
1484 ifdef TCL_THREADS changes done to de-activate pending
1485 event processing when channel is being closed/cutted.
1487 2005-10-10 Jeff Hobbs <jeffh@ActiveState.com>
1489 * generic/tclInt.h: ensure MODULE_SCOPE decl
1491 2005-10-07 Jeff Hobbs <jeffh@ActiveState.com>
1493 * unix/tclUnixFCmd.c (TraverseUnixTree): Adjust 2004-11-11 change to
1494 * tests/fCmd.test (fCmd-20.2): account for NFS special
1495 files with a readdir rewind threshold. [Bug 1034337]
1497 2005-10-05 Andreas Kupries <andreask@activestate.com>
1499 * generic/tclPipe.c (TclCreatePipeline): Fixed [Bug 1109294]. Applied
1500 the patch provided by David Gravereaux.
1502 * doc/CrtChannel.3: Fixed [Bug 1104682], by application of David
1503 Welton's patch for it, and added a note about wideSeekProc.
1505 2005-10-05 Jeff Hobbs <jeffh@ActiveState.com>
1507 * tests/env.test (env-6.1):
1508 * win/tclWinPort.h: define USE_PUTENV_FOR_UNSET 1
1509 * generic/tclEnv.c (TclSetEnv, TclUnsetEnv): add
1510 USE_PUTENV_FOR_UNSET to existing USE_PUTENV define to account for
1511 various systems that have putenv(), but can't unset env vars with it.
1512 Note difference between Windows and Linux for actually unsetting the
1513 env var (use of '=').
1514 Correct the resizing of the environ array. We assume that we are in
1515 full ownership, but that's not correct. [Bug 979640]
1517 2005-10-04 Jeff Hobbs <jeffh@ActiveState.com>
1519 * win/tclWinSerial.c (SerialSetOptionProc): free argv [Bug 1067708]
1521 * tests/http.test: Do not URI encode -._~ according to
1522 * library/http/http.tcl (init): RFC3986. [Bug 1182373] (aho)
1524 * generic/tclIOUtil.c (TclFSNormalizeAbsolutePath): make static
1525 * generic/tclEncoding.c (TclFindEncodings): make static
1527 * unix/tclLoadShl.c (TclpDlopen): use DYNAMIC_PATH on second
1528 shl_load only. [Bug 1204237]
1530 2005-10-04 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
1532 * generic/tclIO.c (Tcl_ClearChannelHandlers): now deletes any
1533 outstanding timer for the channel. Also, prevents events still
1534 in the event queue from triggering on the current channel.
1536 * generic/tclTimer.c (Tcl_DeleteTimerHandler): bail out early
1537 if passed NULL argument.
1539 2005-09-30 Don Porter <dgp@users.sourceforge.net>
1541 * generic/tclMain.c: Separate encoding conversion of command line
1542 arguments from list formatting. [Bug 1306162]
1544 2005-09-27 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1546 * generic/tclBinary.c (FormatNumber): Factorize out copying of double
1547 values to a helper to work around ugly broken compiler problems. [Bug
1550 2005-09-15 Miguel Sofer <msofer@users.sf.net>
1552 * doc/ParseCmd.3: copy/paste fix [Bug 1292427]
1554 2005-09-15 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1556 * unix/tcl.m4 (SC_TCL_EARLY_FLAGS): Added extra hack to allow Tcl to
1557 transparently open large files on RHEL 3. [Bug 1287638]
1559 * unix/configure: autoconf-2.13
1561 2005-09-07 Don Porter <dgp@users.sourceforge.net>
1563 * generic/tclUtf.c (Tcl_UniCharToUtf): Corrected handling of negative
1564 * tests/utf.test (utf-1.5): Tcl_UniChar input value. Incorrect
1565 handling was producing byte sequences outside of Tcl's legal internal
1566 encoding. [Bug 1283976]
1568 2005-08-29 Kevin Kenny <kennykb@acm.org>
1570 * generic/tclBasic.c (ExprMathFunc): Restored "round away from zero"
1571 * tests/expr.test (expr-46.*): behaviour to the "round"
1572 function. Added test cases for the behavior, including the awkward
1573 case of a number whose fractional part is 1/2-1/2ulp. [Bug 1275043]
1575 2005-08-25 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1577 * generic/tclListObj.c (UpdateStringOfList): Stop uncontrolled and
1578 unsafe crashes from happening when working with very large string
1579 representations. [Bug 1267380]
1581 2005-08-17 Jeff Hobbs <jeffh@ActiveState.com>
1583 * generic/tclFCmd.c (TclFileMakeDirsCmd): fix to race condition in
1584 file mkdir (backport from head 2005-06-13) [Bug 1217375]
1586 2005-08-16 Kevin Kenny <kennykb@acm.org>
1588 * generic/tclEvent.c (Tcl_Finalize): Pushed Tcl_FinalizeLoad and
1589 Tcl_ResetFilesystem down after Tcl_FinalizeThreadAlloc because
1590 unloading DLLs can't happen while they still own TSD keys.
1591 (This is a backport of changes made in the HEAD on 2005-08-10.)
1593 2005-08-05 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1595 * unix/tclUnixInit.c (localeTable): Solaris uses a non-standard name
1596 for the cp1251 charset. Thanks to Victor Wagner for reporting this.
1599 2005-08-05 Kevin Kenny <kennykb@users.sourceforge.net>
1601 * generic/tclExecute.c (TclExecuteByteCode): Fixed a corner case
1602 * tests/expr.test (expr-38.1): where applying abs to
1603 MIN_INT failed to promote the result to a wide integer. [Bug 1241572]
1605 2005-08-04 Don Porter <dgp@users.sourceforge.net>
1607 * generic/tclObj.c: Simplified routines that manage the typeTable.
1609 2005-08-03 Don Porter <dgp@users.sourceforge.net>
1611 * generic/tclCompExpr.c: Untangled some dependencies in the
1612 * generic/tclEvent.c: order of finalization routines.
1613 * generic/tclInt.h: [Bug 1251399]
1616 2005-07-30 Daniel Steffen <das@users.sourceforge.net>
1618 * unix/configure, unix/tcl.m4: revert 2005-07-28 change.
1620 * unix/tclLoadDyld.c (TclpDlopen, TclpLoadMemory): workarounds for
1621 bugs/changes in behaviour in Mac OS X 10.4 Tiger, sync formatting
1624 2005-07-29 Donal K. Fellows <dkf@users.sf.net>
1626 * generic/tclCmdIL.c (InfoGlobalsCmd): Even in high-speed mode, still
1627 have to take care with non-existant variables. [Bug 1247135]
1629 2005-07-28 Mo DeJong <mdejong@users.sourceforge.net>
1631 * win/README: Update link to msys_mingw8.zip. Remove old Cygwin +
1632 Mingw info, people should just build with the msys + mingw
1635 2005-07-28 Jeff Hobbs <jeffh@ActiveState.com>
1637 * unix/configure, unix/tcl.m4: defined TCL_LOAD_FROM_MEMORY on Darwin
1638 only for SHARED_BUILD
1640 2005-07-28 Donal K. Fellows <dkf@users.sf.net>
1642 * generic/tclPipe.c (TclCreatePipeline): Arrange for POSIX systems to
1643 * unix/tclUnixPipe.c (TclpOpenFile): use the O_APPEND flag for
1644 * tests/exec.test (exec-19.1): files opened in a pipeline
1645 like ">>this". Note that Windows cannot support such access; there is
1646 no equivalent flag on the handle that can be set at the kernel-call
1647 level. The test is unix-specific in every way. [Bug 1245953]
1649 2005-07-26 Mo DeJong <mdejong@users.sourceforge.net>
1651 * unix/configure: Regen.
1652 * unix/configure.in: Check for a $prefix/share directory and add it
1653 the the package if found. This will check for Tcl packages in
1654 /usr/local/share when Tcl is configured with the default dist install.
1657 2005-07-26 Don Porter <dgp@users.sourceforge.net>
1659 * doc/tclvars.n: Improved $errorCode documentation. [RFE 776921]
1661 * generic/tclBasic.c (Tcl_CallWhenDeleted): Converted to use
1662 per-thread counter, rather than a process global one that required
1663 mutex protection. [RFE 1077194]
1665 * generic/tclNamesp.c (TclTeardownNamespace): Re-ordering so that
1666 * tests/trace.test (trace-34.4): command delete traces fire
1667 while the command still exists. [Bug 1047286]
1669 2005-07-24 Mo DeJong <mdejong@users.sourceforge.net>
1671 * unix/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH):
1672 * win/tcl.m4 (SC_PROG_TCLSH, SC_BUILD_TCLSH):
1673 Split confused search for tclsh on PATH and build and install
1674 locations into two macros. SC_PROG_TCLSH searches just the PATH.
1675 SC_BUILD_TCLSH determines the name of the tclsh executable in the Tcl
1676 build directory. [Bug 1160114], [Patch 1244153]
1678 2005-07-22 Don Porter <dgp@users.sourceforge.net>
1680 * library/auto.tcl: Updates to the Tcl script library to make
1681 * library/history.tcl: use of Tcl 8.4 feautures. Thanks to
1682 * library/init.tcl: Patrick Fradin for prompting on this.
1683 * library/package.tcl: [Patch 1237755]
1687 2005-07-07 Jeff Hobbs <jeffh@ActiveState.com>
1689 * unix/tcl.m4, unix/configure: Backported [Bug 1095909], removing
1690 * unix/tclUnixPort.h: any use of readdir_r as it is not
1691 * unix/tclUnixThrd.c: necessary and just confuses things.
1693 2005-07-05 Don Porter <dgp@users.sourceforge.net>
1695 * generic/tclCmdAH.c: New "encoding" Tcl_ObjType (not registered)
1696 * generic/tclEncoding.c: that permits longer lifetimes of the
1697 * generic/tclInt.h: Tcl_Encoding values kept as intreps of
1698 Tcl_Obj's. Reduces the need for repeated reading of encoding
1699 definition files from the filesystem. [Bug 1077262]
1701 * generic/tclNamesp.c: Allow for [namespace import] of a command
1702 * tests/namespace.test: over a previous [namespace import] of itself
1703 without throwing an error. [RFE 1230597]
1705 2005-07-01 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
1707 * unix/tclUnixNotfy.c: protect against spurious wake-ups while waiting
1708 on the condition variable when tearing down the notifier thread. [Bug
1711 2005-06-27 Don Porter <dgp@users.sourceforge.net>
1713 *** 8.4.11 TAGGED FOR RELEASE ***
1715 * library/auto.tcl: Reverted to Revision 1.12.2.3 (Tcl 8.4.9).
1716 Restores the (buggy) behavior of [auto_reset] that fails to clear
1717 away auto-loaded commands from non-global namespaces. Fixing this
1718 bug exposed an unknown number of buggy files out there (including at
1719 least portions of the Tk script library) that cannot tolerate double
1720 [source]-ing. The burden of fixing these exposed bugs will not be
1721 forced on package/extension/application authors until Tcl 8.5.
1723 2005-06-24 Kevin Kenny <kennykb@acm.org>
1725 * generic/tclEvent.c (Tcl_Finalize):
1727 * generic/tclPreserve.c (TclFinalizePreserve): Changed the
1728 finalization logic so that Tcl_Preserve finalizes after exit
1729 handlers run; a lot of code called from Tk's exit handlers
1730 presumes tha Tcl_Preserve will still work even from an exit
1731 handler. Also, made the assertion check that no exit handlers
1732 are created in Tcl_Finalize conditional on TCL_MEM_DEBUG to
1733 avoid spurious panics in the "stable" release.
1735 2005-06-24 Don Porter <dgp@users.sourceforge.net>
1737 * library/auto.tcl: Make file safe to re-[source] without
1738 destroying registered auto_mkindex_parser hooks.
1740 2005-06-23 Daniel Steffen <das@users.sourceforge.net>
1742 * tools/tcltk-man2html.tcl: fixed useversion glob pattern to accept
1743 multi-digit patchlevels.
1745 2005-06-23 Kevin Kenny <kennykb@acm.org>
1747 * win/tclWinChan.c: More rewriting of __asm__ blocks that
1748 * win/tclWinFCmd.c: implement SEH in GCC, because mingw's
1749 gcc 3.4.2 is not as forgiving of violations committed by
1750 the old code and caused panics. [Bug 1225957]
1752 2005-06-23 Daniel Steffen <das@users.sourceforge.net>
1754 * unix/Makefile.in (install-private-headers): rewrite tclPort.h when
1755 installing private headers to remove ../unix relative #include path to
1756 tclUnixPort.h (which is incorrect at the installed location).
1758 2005-06-22 Kevin Kenny <kennykb@acm.org>
1760 * generic/tclInt.h: Changed the finalization
1761 * generic/tclEvent.c (Tcl_Finalize): logic to defer the
1762 * generic/tclIO.c (TclFinalizeIOSubsystem): shutdown of the pipe
1763 * unix/tclUnixPipe.c (TclFinalizePipes): management until after
1764 * win/tclWinPipe.c (TclFinalizePipes): all channels have been
1765 closed, in order to avoid a situation where the Windows
1766 PipeCloseProc2 would re-establish the exit handler after exit
1767 handlers had already run, corrupting the heap. [Bug 1225727]
1768 Corrected a read of uninitialized memory in PipeCloseProc2, which (at
1769 least on certain configurations) caused a great number of tests to
1770 either fail or hang. [Bug 1225044]
1772 2005-06-22 Andreas Kupries <andreask@activestate.com>
1774 * generic/tclInt.h: Followup to change made on 2005-06-18 by Daniel
1775 Steffen. There are compilers (*) who error out on the redefinition of
1776 WORDS_BIGENDIAN. We have to undef the previous definition (on the
1777 command line) first to make this acceptable. (*): AIX native.
1779 2005-06-22 Don Porter <dgp@users.sourceforge.net>
1781 * win/tclWinFile.c: Potential buffer overflow. [Bug 1225571]
1782 Thanks to Pat Thoyts for discovery and fix.
1784 * tests/safe.test: Backport performance improvement from
1785 reduced $::auto_path.
1787 2005-06-21 Pat Thoyts <patthoyts@users.sourceforge.net>
1789 * tests/winDde.test: Added some waits to the dde server script to
1790 let event processing run after we create the dde server and before
1791 we exit the server process. This avoids 'server did not respond'
1794 2005-06-21 Kevin Kenny <kennykb@acm.org>
1796 * generic/tclFileName.c: Corrected a problem where a directory name
1797 containing a colon can crash the process on Windows [Bug 1194458]
1798 * tests/fileName.test: Added test for [file split] and [file join]
1799 with a name containing a colon.
1800 * win/tclWinPipe.c: Reverted davygrvy's changes of 2005-04-19;
1801 they cause multiple failures in io.test. [Bug 1225044, still open]
1803 2005-06-21 Don Porter <dgp@users.sourceforge.net>
1805 * generic/tclBasic.c: Made the walk of the active trace list aware
1806 * generic/tclCmdMZ.c: of the direction of trace scanning, so the
1807 * generic/tclInt.h: proper correction can be made. [Bug 1224585]
1808 * tests/trace.test (trace-34.2,3):
1810 * generic/tclBasic.c (Tcl_DeleteTrace): Added missing walk of the
1811 * tests/trace.test (trace-34.1): list of active traces to
1812 cleanup references to traces being deleted. [Bug 1201035]
1814 2005-06-20 Don Porter <dgp@users.sourceforge.net>
1816 * doc/FileSystem.3: added missing Tcl_GlobTypeData documentation [Bug
1819 2005-06-18 Daniel Steffen <das@users.sourceforge.net>
1821 * generic/tclInt.h: ensure WORDS_BIGENDIAN is defined correctly with
1822 fat compiles on Darwin (i.e. ppc and i386 at the same time), the
1823 configure AC_C_BIGENDIAN check is not sufficient in this case because
1824 a single run of the compiler builds for two architectures with
1825 different endianness.
1827 * unix/tcl.m4 (Darwin): add -headerpad_max_install_names to LDFLAGS to
1828 ensure we can always relocate binaries with install_name_tool.
1830 * unix/configure: autoconf-2.13
1832 2005-06-18 Don Porter <dgp@users.sourceforge.net>
1834 * changes: Update changes for 8.4.11 release
1836 * README: Bump version number to 8.4.11
1839 * unix/configure.in:
1841 * win/README.binary:
1844 * unix/configure: autoconf
1847 2005-06-18 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1849 * generic/tclCmdAH.c (Tcl_FormatObjCmd): Fix for [Bug 1154163]; only
1850 * tests/format.test: insert 'l' modifier when it is needed.
1852 2005-06-07 Donal K. Fellows <donal.k.fellows@man.ac.uk>
1854 * unix/tclUnixNotfy.c (Tcl_FinalizeNotifier): Add dummy variable
1855 so threaded build compiles.
1857 2005-06-06 Kevin B. Kenny <kennykb@acm.org>
1859 * win/tclWin32Dll.c: Corrected another buglet in the assembly code for
1860 stack probing on Win32/gcc. [Bug 1213678]
1862 2005-06-03 Daniel Steffen <das@users.sourceforge.net>
1864 *** 8.4.10 TAGGED FOR RELEASE ***
1866 * unix/tclLoadDyld.c: fixed header conflict when building this file
1869 * macosx/Makefile: fixed 'embedded' target.
1871 2005-06-02 Jeff Hobbs <jeffh@ActiveState.com>
1873 * unix/Makefile.in (html): add BUILD_HTML_FLAGS optional var
1874 * tools/tcltk-man2html.tcl: add a --useversion to prevent
1875 confusion when multiple Tcl source dirs exist.
1877 * changes: updated for 8.4.10 release (porter)
1879 2005-05-31 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
1881 * unix/tclUnixNotfy.c: the notifier thread is now created as
1882 joinable thread and it is properly joined in Tcl_FinalizeNotifier.
1883 This is an attempt to fix [Bug 1082283]
1885 2005-05-29 Jeff Hobbs <jeffh@ActiveState.com>
1887 * win/tclWinThrd.c (TclpFinalizeThreadData): move tlsKey defn
1888 to top of file and clarify name (was 'key'). [Bug 1204064]
1890 2005-05-27 Jeff Hobbs <jeffh@ActiveState.com>
1892 * README: Bumped patchlevel to 8.4.10
1895 * unix/tcl.spec, unix/configure, unix/configure.in:
1896 * win/configure, win/configure.in:
1898 2005-05-26 Daniel Steffen <das@users.sourceforge.net>
1900 * macosx/Makefile: moved & corrected EMBEDDED_BUILD check.
1902 * unix/configure.in: corrected framework finalization to softlink
1903 stub library to Versions/8.x subdir instead of Versions/Current.
1904 * unix/configure: autoconf-2.13
1906 2005-05-25 Jeff Hobbs <jeffh@ActiveState.com>
1908 * generic/tclCmdMZ.c (Tcl_TimeObjCmd): add necessary cast
1910 * unix/configure, unix/configure.in: ensure false Tcl.framework is
1911 only created with --enable-framework
1913 2005-05-24 Daniel Steffen <das@users.sourceforge.net>
1915 * tests/env.test: added DYLD_FRAMEWORK_PATH to the list of env vars
1916 that need to be handled specially.
1920 * macosx/Tcl-Info.plist.in (new file):
1922 * unix/configure.in:
1924 * unix/tclUnixInit.c: moved all Darwin framework build support from
1925 macosx/Makefile into the standard unix configure/make buildsystem, the
1926 macosx/Makefile is no longer required to build Tcl.framework (but its
1927 functionality is still available for backwards compatibility).
1928 * unix/configure: autoconf-2.13
1930 * generic/tclIOUtil.c (TclLoadFile):
1933 * unix/tclLoadDyld.c: added support for [load]ing .bundle binaries in
1934 addition to .dylib's: .bundle's can be [unload]ed (unlike .dylib's),
1935 and can be [load]ed from memory, e.g. directly from VFS without
1936 needing to be written out to a temporary location first. [Bug 1202209]
1937 * unix/configure: autoconf-2.13
1939 * generic/tclCmdMZ.c (Tcl_TimeObjCmd): change [time] called with a
1940 count > 1 to return a string with a float value instead of a rounded
1941 off integer. [Bug 1202178]
1943 2005-05-20 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
1945 * generic/tclParseExpr.c: removed unreferenced stack variable "errMsg"
1946 probably included by fixing [Bug 1201589] (see below).
1948 2005-05-20 Don Porter <dgp@users.sourceforge.net>
1950 * generic/tclParseExpr.c: Corrected parser to recognize all
1951 boolean literals accepted by Tcl_GetBoolean, including prefixes like
1952 "y" and "f", and to allow "eq" and "ne" as function names in the
1953 proper context. [Bug 1201589]
1955 2005-05-19 Daniel Steffen <das@users.sourceforge.net>
1957 * macosx/tclMacOSXNotify.c (Tcl_InitNotifier): fixed crashing
1958 CFRelease of runLoopSource in Tcl_InitNotifier (reported by Zoran):
1959 CFRunLoopAddSource doesn't CFRetain, so can only CFRelease the
1960 runLoopSource in Tcl_FinalizeNotifier.
1962 2005-05-14 Daniel Steffen <das@users.sourceforge.net>
1964 * macosx/tclMacOSXBundle.c:
1965 * unix/tclUnixInit.c:
1966 * unix/tcl.m4 (Darwin): made use of CoreFoundation API configurable
1967 and added test of CoreFoundation availablility to allow building on
1968 ppc64, replaced HAVE_CFBUNDLE by HAVE_COREFOUNDATION; test for
1969 availability of Tiger or later OSSpinLockLock API.
1971 * unix/tclUnixNotfy.c:
1973 * macosx/tclMacOSXNotify.c (new file): when CoreFoundation is
1974 available, use new CFRunLoop based notifier: allows easy integration
1975 with other event loops on Mac OS X, in particular the TkAqua Carbon
1976 event loop is now integrated via a standard tcl event source (instead
1977 of TkAqua upon loading having to finalize the exsting notifier and
1978 replace it with its custom version). [Patch 1202052]
1980 * tests/unixNotfy.test: don't run unthreaded tests on Darwin since
1981 notifier may be using threads even in unthreaded core.
1983 * unix/tclUnixPort.h:
1984 * unix/tcl.m4 (Darwin): test for thread-unsafe realpath durning
1985 configure, as Darwin 7 and later realpath is threadsafe.
1987 * macosx/tclMacOSXBundle.c:
1988 * unix/tclLoadDyld.c:
1989 * unix/tclUnixInit.c: fixed gcc 4.0 warnings.
1991 * unix/configure: autoconf-2.13
1993 2005-05-10 Jeff Hobbs <jeffh@ActiveState.com>
1995 * tests/string.test: string-10.[21-30]
1996 * generic/tclCmdMZ.c (Tcl_StringObjCmd): add extra checks to
1997 prevent possible UMR in unichar cmp function for string map.
1999 2005-05-06 Jeff Hobbs <jeffh@ActiveState.com>
2001 * unix/tcl.m4, unix/configure: correct Solaris 10 (5.10) check and
2002 add support for x86_64 Solaris cc builds.
2004 2005-04-29 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2006 * doc/FileSystem.3: Backport of doc fix. [Bug 1172401]
2008 2005-04-27 Don Porter <dgp@users.sourceforge.net>
2010 * library/init.tcl: Corrected flaw in interactive command
2011 * tests/main.test: auto-completion. [Bug 1191409]
2013 * tests/unixInit.test (7.1): Alternative fix for the
2016 2005-04-25 Daniel Steffen <das@users.sourceforge.net>
2018 * compat/string.h: fixed memchr() protoype for __APPLE__ so that we
2019 build on Mac OS X 10.1 again.
2021 * generic/tclNotify.c (TclFinalizeNotifier): fixed notifier not being
2022 finalized in unthreaded core (was testing for notifier initialization
2023 in current thread by checking thread id != 0 but thread id is always 0
2026 * unix/tclUnixNotfy.c (Tcl_WaitForEvent): sync with HEAD: only declare
2027 and use timeout var in unthreaded core.
2029 * unix/Makefile.in: added @PLAT_SRCS@ to SRCS and split out
2030 NOTIFY_SRCS from UNIX_SRCS for parity with UNIX_OBJS & NOTIFY_OBJS.
2032 * unix/configure.in: only run check for broken strstr implementation
2033 if AC_REPLACE_FUNCS(strstr) hasn't already determined that strstr is
2034 unavailable, otherwise compat/strstr.o will be used twice (resulting
2035 in duplicate symbol link errors on Mac OS X 10.1)
2037 * unix/tcl.m4 (Darwin): added configure checks for recently added
2038 linker flags -single_module and -search_paths_first to allow building
2039 with older tools (and on Mac OS X 10.1), use -single_module in
2040 SHLIB_LD and not just T{CL,K}_SHLIB_LD_EXTRAS, added unexporting from
2041 Tk of symbols from libtclstub to avoid duplicate symbol warnings,
2042 added PLAT_SRCS definition for Mac OS X.
2043 (SC_MISSING_POSIX_HEADERS): added caching of dirent.h check.
2044 (SC_TCL_64BIT_FLAGS): fixed 'checking for off64_t' message output.
2046 * unix/configure: autoconf-2.13
2048 2005-04-22 Don Porter <dgp@users.sourceforge.net>
2050 * generic/tclCmdMZ.c: Corrected intrep-dependence of
2051 * tests/string.test: [string is boolean] [Bug 1187123]
2053 2005-04-22 Daniel Steffen <das@users.sourceforge.net>
2055 * tests/unixInit.test (7.1): fixed failure when running tests with
2056 -tmpdir arg not set to working dir.
2058 2005-04-20 Don Porter <dgp@users.sourceforge.net>
2060 * generic/tclGet.c (Tcl_GetInt): Corrected error that did not
2061 * generic/tclObj.c (Tcl_GetIntFromObj): permit 0x80000000 to be
2062 recognized as an integer on TCL_WIDE_INT_IS_LONG systems [Bug 1090869]
2064 2005-04-19 Jeff Hobbs <jeffh@ActiveState.com>
2066 * tests/winPipe.test (winpipe-6.2): remove -blocking 1 as this one
2069 2005-04-19 David Gravereaux <davygrvy@pobox.com>
2071 * win/tclWinPipe.c: The pipe channel driver now respects the -blocking
2072 option when closing. The windows pipe driver now has the same behavior
2073 as the UNIX side. This change is to avoid a hung shell when exiting
2074 due to open pipes that refuse to close in a graceful manner.
2075 * doc/open.n: Added a note about -blocking 0 and lack of exit status
2076 as it had never been documented. [Bug 947693]
2078 ***POTENTIAL INCOMPATIBILITY***
2080 Scripts that use async pipes on windows, must (like the UNIX side) set
2081 -blocking to 1 before calling [close] to receive the exit status.
2083 * tests/winPipe.test (winpipe-6.1/2): added 'fconfigure $f -blocking
2084 1' so the exit status can be acquired.
2086 2005-04-13 David Gravereaux <davygrvy@pobox.com>
2088 * generic/tclIO.c (Tcl_SetChannelBufferSize): Lowest size limit
2089 * tests/io.test: changed from ten bytes to one byte. Need for
2090 * tests/iogt.test: this change was proven by Ross Cartlidge
2091 <rossc@cisco.com> where [read stdin 1] was grabbing 10 bytes followed
2092 by starting a child process that was intended to continue reading from
2093 stdin. Even with -buffersize set to one, nine chars were getting lost
2094 by the buffersize over reading for the native read() caused by [read].
2096 2005-04-12 Kevin B. Kenny <kennykb@acm.org>
2098 * compat/strstr.c: Added default definition of NULL to accommodate
2099 building on systems with badly broken headers. [Bug 1175161]
2101 2005-04-09 Daniel Steffen <das@users.sourceforge.net>
2103 * macosx/README: updated requirements for OS & developer tool versions
2104 + other small fixes/cleanup.
2106 * unix/tcl.m4 (Darwin): added -single_module linker flag to
2107 TCL_SHLIB_LD_EXTRAS and TK_SHLIB_LD_EXTRAS.
2108 * unix/configure: autoconf-2.13
2110 2005-04-05 Zoran Vasiljevic <vasiljevic@users.sourceforge.net>
2112 Set of changes correcting huge memory waste (not a leak) when a thread
2113 exits. This has been introduced in 8.4.7 within an attempt to
2114 correctly cleanup after ourselves when Tcl library is being unloaded
2115 with the Tcl_Finalize() call.
2117 This fixes the [Bug 1178445].
2119 * generic/tclInt.h: added prototypes for TclpFreeAllocCache() and
2122 * generic/tclThreadAlloc.c: modified TclFinalizeThreadAlloc() to
2123 explicitly call TclpFreeAllocCache with the NULL-ptr as argument
2124 signalling cleanup of private tsd key used only by the threading
2127 * unix/tclUnixThrd.c: fixed TclpFreeAllocCache() to recognize when
2128 being called with NULL argument. This is a signal for it to clean up
2129 the tsd key associated with the threading allocator.
2131 * win/tclWinThrd.c: renamed TclWinFreeAllocCache to TclpFreeAllocCache
2132 and fixed to recognize when being called with NULL argument. This is a
2133 signal for it to clean up the tsd key associated with the threading
2136 2005-04-05 Don Porter <dgp@users.sourceforge.net>
2138 * generic/tclExecute.c (ExprSrandFunc): Replaced incursions into the
2139 * generic/tclUtil.c (TclGetIntForIndex): intreps of numeric types with
2140 simpler calls of Tcl_GetIntFromObj and Tcl_GetLongFromObj, now that
2141 those routines are better behaved wrt shimmering. [Patch 1177129]
2143 2005-03-29 Jeff Hobbs <jeffh@ActiveState.com>
2145 * win/tcl.m4, win/configure: do not require cygpath in macros to
2146 allow msys alone as an alternative.
2148 * win/tclWinTime.c (TclpGetDate): use time_t for 'time' [Bug 1163422]
2150 2005-03-18 Don Porter <dgp@users.sourceforge.net>
2152 * generic/tclCompCmds.c (TclCompileIncrCmd): Corrected checks for
2153 immediate operand usage to permit leading space and sign characters.
2154 Restores more efficient bytecode for [incr x -1] that got lost in the
2155 CONST string reforms of Tcl 8.4. [Bug 1165671]
2157 * generic/tclBasic.c (Tcl_EvalEx,TclEvalTokensStandard):
2158 * generic/tclCmdMZ.c (Tcl_SubstObj):
2159 * tests/basic.test (basic-46.4): Restored recursion limit
2160 * tests/parse.test (parse-19.*): testing in nested command
2161 substitutions within direct script evaluation (Tcl_EvalEx) that got
2162 lost in the parser reforms of Tcl 8.1. Added tests for correct
2163 behavior. [Bug 1115904]
2165 2005-03-15 Vince Darley <vincentdarley@users.sourceforge.net>
2167 * generic/tclFileName.c:
2169 * tests/winFCMd.test: fix to 'file pathtype' and 'file norm' failures
2170 on reserved filenames like 'COM1:', etc.
2172 2005-03-15 Kevin B. Kenny <kennykb@acm.org>
2174 * generic/tclClock.c:
2175 * generic/tclDate.c:
2176 * generic/tclGetDate.y:
2177 * generic/tclInt.decls:
2178 * unix/tclUnixTime.c:
2179 * win/tclWinTime.c: Replaced 'unsigned long' variable holding
2180 times with 'Tcl_WideInt', to cope with systems on which a time_t is
2181 wider than a long (Win64) [Bug 1163422]
2182 * generic/tclIntDecls.h: Regen
2184 2005-03-15 Pat Thoyts <patthoyts@users.sourceforge.net>
2186 * unix/tcl.m4: Make it work on OpenBSD again. Imported patch
2187 from the OpenBSD ports tree.
2189 2005-03-10 Don Porter <dgp@users.sourceforge.net>
2191 * generic/tclCmdMZ.c (TclCheckInterpTraces): Corrected mistaken
2192 cast of ClientData to (TraceCommandInfo *) when not warranted. Thanks
2193 to Yuri Victorovich for the report. [Bug 1153871]
2195 2005-03-08 Jeff Hobbs <jeffh@ActiveState.com>
2197 * win/makefile.vc: clarify necessary defined vars that can come
2198 from MSVC or the Platform SDK.
2200 2005-02-24 Don Porter <dgp@users.sourceforge.net>
2202 * library/tcltest/tcltest.tcl: Better use of [glob -types] to avoid
2203 * tests/tcltest.test: failed attempts to [source] a directory, and
2204 similar matters. Thanks to "mpettigr". [Bug 1119798]
2206 * library/tcltest/pkgIndex.tcl: Bump to tcltest 2.2.8
2208 2005-02-23 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2210 * doc/CrtChannel.3 (THREADACTIONPROC): Formatting fix. [Bug 1149605]
2212 2005-02-17 Jeff Hobbs <jeffh@ActiveState.com>
2214 * win/tclWinFCmd.c (TraverseWinTree): use wcslen on wchar, not
2217 2005-02-16 Miguel Sofer <msofer@users.sf.net>
2219 * doc/variable.n: fix for [Bug 1124160], variables are detected by
2220 [info vars] but not by [info locals].
2222 2005-02-10 Jeff Hobbs <jeffh@ActiveState.com>
2224 * unix/Makefile.in: remove SHLIB_LD_FLAGS (only for AIX, inlined
2225 * unix/tcl.m4: into SHLIB_LD). Combine AIX-* and AIX-5
2226 * unix/configure: branches in SC_CONFIG_CFLAGS.
2227 Correct gcc builds for AIX-4+ and HP-UX-11.
2229 2005-02-10 Miguel Sofer <msofer@users.sf.net>
2231 * generic/tclBasic.c (Tcl_EvalObjEx):
2232 * tests/basic.test (basic-26.2): preserve the arguments passed to TEOV
2233 in the pure-list branch, in case the list shimmers away. Fix for [Bug
2234 1119369], reported by Peter MacDonald.
2236 2005-02-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2238 * doc/binary.n: Made the documentation of sign bit masking and
2239 [binary scan] consistent. [Bug 1117017]
2241 2005-02-01 Don Porter <dgp@users.sourceforge.net>
2243 * generic/tclExecute.c (TclCompEvalObj): Removed stray statement
2244 left behind in prior code reorganization.
2246 2005-01-28 Jeff Hobbs <jeffh@ActiveState.com>
2248 * unix/configure, unix/tcl.m4: add solaris 64-bit gcc build
2249 support. [Bug 1021871]
2251 2005-01-27 Jeff Hobbs <jeffh@ActiveState.com>
2253 * generic/tclBasic.c (Tcl_ExprBoolean, Tcl_ExprDouble)
2254 (Tcl_ExprLong): Fix to recognize Tcl_WideInt type. [Bug 1109484]
2256 2005-01-27 Andreas Kupries <andreask@activestate.com>
2258 TIP#218 IMPLEMENTATION
2260 * generic/tclDecls.h: Regenerated from tcl.decls.
2261 * generic/tclStubInit.c:
2263 * doc/CrtChannel.3: Documentation of extended API,
2264 * generic/tcl.decls: extended testsuite, and
2265 * generic/tcl.h: implementation. Removal of old
2266 * generic/tclIO.c: driver-specific TclpCut/Splice
2267 * generic/tclInt.h: functions. Replaced with generic
2268 * tests/io.test: thread-action calls through the
2269 * unix/tclUnixChan.c: new hooks. Update of all builtin
2270 * unix/tclUnixPipe.c: channel drivers to version 4.
2271 * unix/tclUnixSock.c: Windows drivers extended to
2272 * win/tclWinChan.c: manage thread state in a thread
2273 * win/tclWinConsole.c: action handler.
2275 * win/tclWinSerial.c:
2279 2005-01-25 Don Porter <dgp@users.sourceforge.net>
2281 * library/auto.tcl: Updated [auto_reset] to clear auto-loaded
2282 procs in namespaces other than :: [Bug 1101670].
2284 2005-01-25 Daniel Steffen <das@users.sourceforge.net>
2286 * unix/tcl.m4 (Darwin): fixed bug with static build linking to dynamic
2287 library in /usr/lib etc instead of linking to static library earlier
2288 in search path. [Bug 956908]
2289 Removed obsolete references to Rhapsody.
2290 * unix/configure: autoconf-2.13
2292 2005-01-19 Mo DeJong <mdejong@users.sourceforge.net>
2294 * win/tclWinChan.c (FileCloseProc): Invoke TclpCutFileChannel() to
2295 remove a FileInfo from the thread local list before deallocating it.
2296 This should have been done via an earlier call to Tcl_CutChannel, but
2297 I was running into a crash in the next call to Tcl_CutChannel during
2298 the IO finalization stage.
2300 2005-01-17 Vince Darley <vincentdarley@users.sourceforge.net>
2302 * tests/winFCmd.test: made test independent of current drive. [Bug
2305 2005-01-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2307 * unix/tclUnixFCmd.c (CopyFile): Convert u_int to unsigned to make
2308 clashes with types in standard C headers less of a problem. [Bug
2311 2005-01-06 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2313 * library/http/http.tcl (http::mapReply): Significant performance
2314 enhancement by using [string map] instead of [regsub]/[subst], and
2315 update version requirement to Tcl8.4. [Bug 1020491]
2317 2005-01-05 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2319 * unix/tclUnixInit.c (localeTable): Add encoding mappings for some
2320 Chinese locales. [Bug 1084595]
2322 * doc/lsearch.n: Convert to other form of emacs mode control
2323 comment to prevent problems with old versions of man. [Bug 1085127]
2325 2004-12-29 Jeff Hobbs <jeffh@ActiveState.com>
2327 * win/tcl.m4, win/configure: update MSVC CFLAGS_OPT to -O2, remove
2328 -Gs (included in -O2) and -GD (outdated). Use "link -lib" instead
2329 of "lib" binary and remove -YX for MSVC7 portability. Add
2330 -fomit-frame-pointer for gcc OPT compiles. [Bug 1092952, 1091967]
2332 2004-12-13 Kevin B. Kenny <kennykb@acm.org>
2334 * doc/clock.n: Clarify that the [clock scan] command does not accept
2335 the full range of ISO8601 point-in-time formats. [Bug 1075433]
2337 2004-12-09 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2339 * doc/Async.3: Reword for better grammar, better nroff and get the
2340 flag name right. (Reported by David Welton.)
2342 2004-12-06 Jeff Hobbs <jeffh@ActiveState.com>
2344 *** 8.4.9 TAGGED FOR RELEASE ***
2346 * unix/tclUnixNotfy.c (NotifierThreadProc): init numFdBits [Bug
2349 2004-12-02 Jeff Hobbs <jeffh@ActiveState.com>
2351 * changes: updated for 8.4.9 release
2353 2004-12-02 Vince Darley <vincentdarley@users.sourceforge.net>
2355 * generic/tclIOUtil.c: fix and new tests for [Bug 1074671] to
2356 * tests/fileSystem.test: ensure tilde paths are not returned specially
2359 2004-12-01 Don Porter <dgp@users.sourceforge.net>
2361 * library/auto.tcl (tcl_findLibrary): Disabled use of [file normalize]
2362 that caused trouble with freewrap. [Bug 1072136]
2364 2004-11-26 Don Porter <dgp@users.sourceforge.net>
2366 * tests/reg.test (reg-32.*): Added missing testregexp constraints.
2368 * library/auto.tcl (tcl_findLibrary): Made sure the uniquifying
2369 operations on the search path does not also normalize. [Bug 1072136]
2371 2004-11-26 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2373 * doc/dde.n: Resynchonized the documentation with itself and fixed
2374 some formatting errors.
2376 2004-11-25 Zoran Vasiljevic <vasiljevic@users.sf.net>
2379 * doc/Thread.3: Added doc fixes and hints from [Bug 1068077].
2381 2004-11-25 Reinhard Max <max@suse.de>
2383 * tests/tcltest.test: The order in which [glob] returns the file names
2384 * tests/fCmd.test: is undefined, so tests should not depend on it.
2386 2004-11-24 Don Porter <dgp@users.sourceforge.net>
2388 * unix/tcl.m4 (SC_ENABLE_THREADS): Corrected failure to determine
2389 the number of arguments for readdir_r on SunOS systems. [Bug 1071701]
2391 * unix/configure: autoconf-2.13
2393 2004-11-24 Jeff Hobbs <jeffh@ActiveState.com>
2395 * README: Bumped patchlevel to 8.4.9
2398 * unix/tcl.spec, unix/configure, unix/configure.in:
2399 * win/configure, win/configure.in:
2401 2004-11-24 Kevin B. Kenny <kennykb@acm.org>
2403 * unix/tcl.m4 (SC_ENABLE_THREADS): Corrected bad check for 3-argument
2404 readdir_r(). [Bug 1001325]
2405 * unix/configure: Regenerated.
2406 * unix/tclUnixNotfy.c: Corrected all uses of 'select' to manage their
2407 masks using the FD_CLR, FD_ISSET, FD_SET, and FD_ZERO macros rather
2408 than bit-whacking that failed under Solaris-Sparc-64. [Bug 1071807]
2410 2004-11-23 Don Porter <dgp@users.sourceforge.net>
2412 * generic/tclCmdIL.c (InfoVarsCmd): Corrected segfault in new
2413 * tests/info.test (info-19.6): trivial matching branch [Bug 1072654]
2415 2004-11-23 Vince Darley <vincentdarley@users.sourceforge.net>
2417 * generic/tclPathObj.c: fix and new test for [Bug 1043129] in
2418 * tests/fileSystem.test: the treatment of backslashes in file join on
2421 2004-11-22 Mo DeJong <mdejong@users.sourceforge.net>
2423 * unix/configure: Regen.
2424 * unix/tcl.m4 (SC_TCL_64BIT_FLAGS): Define HAVE_TYPE_OFF64_T only when
2425 off64_t, open64(), and lseek64() are defined. IRIX 5.3 is known to not
2426 include an open64 function. [Bug 1030465]
2428 2004-11-22 Mo DeJong <mdejong@users.sourceforge.net>
2430 * unix/configure: Regen.
2431 * unix/tcl.m4 (SC_ENABLE_THREADS): Check for a 2 argument version of
2432 readdir_r that is known to exists under IRIX 5.3.
2433 * unix/tclUnixThrd.c (TclpReaddir): Use either 2 arg or 3 arg version
2434 of readdir_r. [Bug 1001325]
2436 2004-11-19 Reinhard Max <max@suse.de>
2438 *** 8.4.8 TAGGED FOR RELEASE ***
2440 * unix/installManPage: Classic sed doesn't support | in REs.
2442 2004-11-19 Daniel Steffen <das@users.sourceforge.net>
2445 * unix/configure.in:
2446 * unix/tclUnixInit.c (MacOSXGetLibraryPath): changed detection of tcl
2447 framework build when determining tclLibPath from overloaded
2448 TCL_LIBRARY to configuration define TCL_FRAMEWORK. [Bug 1068088]
2450 * unix/configure: autoconf-2.13
2452 * tests/unixInit.test (7.1): fixed failure when running tests
2453 with -tmpdir arg not set to working dir.
2455 2004-11-18 Don Porter <dgp@users.sourceforge.net>
2457 * changes: Final updates for Tcl 8.4.8 release.
2459 2004-11-18 Reinhard Max <max@suse.de>
2461 * unix/tcl.m4 (SC_CONFIG_MANPAGES): Applied an improved version of
2462 * unix/configure.in: [Patch 996085], that introduces
2463 * unix/Makefile.in: --enable-man-suffix.
2465 * unix/installManPage: added
2466 * unix/mkLinks.tcl: removed
2467 * unix/mkLinks: removed
2469 2004-11-16 Jeff Hobbs <jeffh@ActiveState.com>
2471 * unix/tclUnixChan.c (TtySetOptionProc): fixed crash configuring
2472 -ttycontrol on a channel. [Bug 1067708]
2474 2004-11-16 Andreas Kupries <andreask@activestate.com>
2476 * win/makefile.vc: Fixed bug in installation of http 2.5.
2477 * win/makefile.bc: Was installed into directory http2.4.
2478 * win/Makefile.in: This has been corrected.
2483 2004-11-16 Don Porter <dgp@users.sourceforge.net>
2485 * library/auto.tcl: Updated [tcl_findLibrary] search path to
2486 include the $::auto_path. [RFE 695441]
2488 2004-11-16 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2490 * doc/tclvars.n: Mention global variables set by tclsh and wish so
2491 they are easier to find. [Patch 1065732]
2493 2004-11-15 Don Porter <dgp@users.sourceforge.net>
2495 * generic/tclCmdMZ.c (Tcl_TraceObjCmd): Fixed Bug 1065378 which failed
2496 * tests/trace.test (trace-33.1): to permit a variable trace
2497 created with [trace variable] to be destroyed with [trace remove].
2498 Thanks to Keith Vetter for the report.
2500 2004-11-12 Don Porter <dgp@users.sourceforge.net>
2502 * library/init.tcl: Made [unknown] robust in the case that either
2503 of the variables ::errorInfo or ::errorCode gets unset. [Bug 1063707]
2505 2004-11-12 Jeff Hobbs <jeffh@ActiveState.com>
2507 * generic/tclEncoding.c (TableFromUtfProc): correct crash
2508 condition when TCL_UTF_MAX == 6. [Bug 1004065]
2510 2004-11-12 Daniel Steffen <das@users.sourceforge.net>
2514 * doc/upvar.n: fixed *roff errors uncovered by running 'make html'.
2516 * tools/tcltk-man2html.tcl: added faked support for bullet point
2517 lists, i.e. *nroff ".IP \(bu" syntax.
2518 Synced other changes from HEAD.
2520 2004-11-11 Daniel Steffen <das@users.sourceforge.net>
2523 * unix/tclUnixFCmd.c (TraverseUnixTree): added option to rewind() the
2524 readdir() loop whenever the source hierarchy has been modified by
2525 traverseProc (e.g. by deleting files); this is required to ensure
2526 complete traversal of the source hierarchy on certain filesystems like
2527 HFS+. Added test for failing recursive delete on Mac OS X that was due
2528 to this. [Bug 1034337]
2530 * generic/tclListObj.c (Tcl_ListObjReplace): use memmove() instead of
2531 manual copy loop to shift list elements. Decreases time spent in
2532 Tcl_ListObjReplace() from 5.2% to 1.7% of overall runtime of tclbench
2533 on a ppc 7455 (i.e. 200% speed increase). [Patch 1064243]
2535 * generic/tclHash.c: hoisted some constant pointer dereferences out of
2536 loops to eliminate redundant loads that the gcc optimizer didn't deal
2537 with. Decreases time spend in Tcl_FindHashEntry() by 10% over a full
2538 run of the tcl testuite on a ppc 7455. [Patch 1064243]
2540 * tests/fileName.test:
2541 * tests/fileSystem.test:
2543 * tests/tcltest.test: fixed bugs causing failures when running tests
2544 with -tmpdir arg not set to working dir.
2546 * macosx/Makefile: corrected path to html help inside framework.
2547 Prevent parallel make from building several targets at the same time.
2549 2004-11-09 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2551 * doc/catch.n: Clarify documentation on return codes. [Bug 1062647]
2553 2004-11-02 Don Porter <dgp@users.sourceforge.net>
2555 * changes: Updates for Tcl 8.4.8 release.
2557 2004-11-02 Don Porter <dgp@users.sourceforge.net>
2559 * library/tcltest/tcltest.tcl: Corrected some misleading
2560 * tests/tcltest.test (tcltest-26.1,2): displays of ::errorInfo and
2561 ::errorCode information when the -setup, -body, and/or -cleanup scripts
2562 return an unexpected return code. Thanks to Robert Seeger for the
2565 2004-11-02 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2567 * generic/tclExecute.c (TclExecuteByteCode): NaN-equality fix from
2568 Miguel Sofer. [Bug 761471]
2570 * doc/CrtChannel.3 (Tcl_GetChannelMode): Add synopsis. [Bug 1058446]
2572 2004-10-31 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2574 * generic/tclCmdIL.c (InfoGlobalsCmd):
2575 * tests/info.test (info-8.4): Strip leading global-namespace
2576 specifiers from the pattern argument. [Bug 1057461]
2578 2004-10-30 Miguel Sofer <msofer@users.sf.net>
2580 * generic/tclCmdAH.c (Tcl_CatchObjCmd): removed erroneous comment [Bug
2583 2004-10-29 Don Porter <dgp@users.sourceforge.net>
2585 * library/tcltest/tcltest.tcl: Correct reaction to errors in the
2586 obsolete processCmdLineArgsHook. [Bug 1055673]
2587 * library/tcltest/pkgIndex.tcl: Bump to tcltest 2.2.7
2589 2004-10-28 Andreas Kupries <andreask@activestate.com>
2591 * generic/tclAlloc.c: Fixed [Bug 1030548], a threaded debug
2592 * generic/tclThreadAlloc.c: build on Windows now works again. Had to
2593 * win/tclWinThrd.c: touch Unix as well. Basic patch by Kevin,
2594 * unix/tclUnixThrd.c: with modifications by myself.
2596 2004-10-28 Don Porter <dgp@users.sourceforge.net>
2598 * README: Bumped patch level to 8.4.8 to prepare for
2599 * generic/tcl.h: next patch release.
2601 * unix/configure.in:
2603 * win/README.binary:
2606 * unix/configure: autoconf (2.13)
2609 2004-10-28 Kevin B. Kenny <kennykb@acm.org>
2611 * generic/tclInt.decls:
2612 * unix/tclUnixTime.c (TclpGmtime, TclpLocaltime):
2613 * win/tclWinTime.c (TclpGmtime, TclpLocaltime): Changed type
2614 signatures of TclpGmtime and TclpLocaltime to accept CONST TclpTime_t
2615 throughout, to avoid any possible confusion in pedantic compilers.
2617 * generic/tclIntDecls.h:
2618 * generic/tclIntPlatDecls.h: Regenerated.
2620 2004-10-27 Don Porter <dgp@users.sourceforge.net>
2622 * generic/tclCmdAH.c (Tcl_FormatObjCmd): Restored missing line
2623 from yesterday's 868489 backport that caused failed alloc's on LP64
2626 * tests/appendComp.test: Backport test suite fixes of errors
2627 * tests/autoMkindex.test: revealed by -singleproc 1 -debug 1
2628 * tests/exec.test: options to make test.
2629 * tests/execute.test:
2630 * tests/interp.test:
2632 * tests/namespace.test:
2633 * tests/regexpComp.test:
2634 * tests/stringComp.test:
2635 * tests/unixInit.test:
2636 * tests/winPipe.test:
2638 2004-10-26 Kevin B. Kenny <kennykb@acm.org>
2640 * generic/tclCmdAH.c (Tcl_FormatObjCmd): Backport a missing bit of the
2642 * generic/tclObj.c (SetBooleanFromAny): Backport fix for [Bug 1026125]
2643 * tests/format.test (format-19.1): Additional regression test for
2646 2004-10-26 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2648 * doc/*.n: Backporting of documentation updates.
2650 2004-10-26 Don Porter <dgp@users.sourceforge.net>
2652 * tests/subst.test (subst-12.3-5): More tests for [Bug 1036649]
2654 * tests/compile.test (compile-12.4): Backport test for [Bug 1001997]
2655 * tests/timer.test (timer-10.1): Backport test for [Bug 1016167]
2656 * tests/tcltest.test (tcltest-12.3,4): Backport setup corrections.
2657 * tests/error.test (error-6.3,4,7,9): Backport of some tests.
2658 * tests/basic.test (basic-49.*):
2659 * tests/namespace.test (namespace-8.7):
2660 * tests/init.test (init-2.8): Updated to not rely on http package.
2662 * generic/tclThreadTest.c (ThreadEventProc): Corrected subtle bug
2663 where the returned (char *) from Tcl_GetStringResult(interp) continued
2664 to be used without copying or refcounting, while activity on the
2667 2004-10-14 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2669 * generic/tclUtil.c (TclMatchIsTrivial): Detect degenerate cases of
2670 glob matching that let us avoid scanning through hash tables.
2671 * generic/tclCmdIL.c (InfoCommandsCmd, InfoGlobalsCmd, InfoProcsCmd):
2672 (InfoVarsCmd): Use this to speed up some [info] subcommands.
2674 2004-10-08 Jeff Hobbs <jeffh@ActiveState.com>
2676 * win/tclWinFile.c (NativeIsExec): correct result of 'file executable'
2677 to not be case sensitive. [Bug 954263]
2679 2004-10-05 Don Porter <dgp@users.sourceforge.net>
2681 * generic/tclNamesp.c (Tcl_PopCallFrame): Removed Bug 1038021
2682 workaround. That bug is now fixed.
2684 2004-09-30 Don Porter <dgp@users.sourceforge.net>
2686 * generic/tclNamespace.c (TclTeardownNamespace): Tcl_Obj-ified the
2687 * tests/namespace.test (namespace-8.5,6): save/restore of
2688 ::errorInfo and ::errorCode during global namespace teardown. Revised
2689 the comment to clarify why this is done, and added tests that will
2690 fail if this is not done.
2692 * generic/tclResult.c (TclTransferResult): Added safety checks so
2693 that unexpected undefined ::errorInfo or ::errorCode will not lead to
2696 * generic/tclVar.c (CallVarTraces): Save/restore the flag values
2697 * tests/var.test (var-16.1): that define part of the interpreter
2698 state during variable traces. [Bug 1038021]
2700 2004-09-30 Miguel Sofer <msofer@users.sf.net>
2702 * tests/subst.test (12.2): test correction.
2704 2004-09-29 Miguel Sofer <msofer@users.sf.net>
2706 * generic/tclBasic.c (Tcl_EvalEx):
2707 * tests/subst.test (12.1-2): fix for buffer overflow in [subst], [Bug
2710 2004-09-23 Mo DeJong <mdejong@users.sourceforge.net>
2712 * unix/dltest/Makefile.in (clean): Fixup make clean rule so that it
2713 does not delete all files when SHLIB_SUFFIX is set to the empty string
2714 in a static build. [Bug 1016726]
2716 2004-09-18 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2718 * generic/tclExecute.c (TEBC-INST_LSHIFT,INST_RSHIFT): Ensure that
2719 large shifts end up shifting correctly. [Bug 868467]
2721 2004-09-15 Daniel Steffen <das@users.sourceforge.net>
2723 * tests/load.test (load-2.3): adopted fix for failure on darwin from
2726 2004-09-14 Don Porter <dgp@users.sourceforge.net>
2728 * generic/tclObj.c (Tcl_GetIntFromObj): Corrected flaw in returning
2729 the int value of a wideInteger. [Bug 1027690]
2731 2004-09-10 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2733 * generic/tclObj.c (SetIntOrWideFromAny): Rewritten integral value
2734 parsing code so that values do not flip so easily between numeric
2735 representations. Thanks to KBK for this! [Bug 868489]
2737 * generic/tclIO.c (Tcl_Seek): Make sure wide seeks do not fail to set
2738 ::errorCode on error. [Bug 1025359]
2740 2004-09-10 Andreas Kupries <andreask@activestate.com>
2742 * generic/tcl.h: Micro formatting fixes.
2743 * generic/tclIOGT.c: Channel version fixed, must be 3, to have
2744 wideseekProc. Thanks to David Graveraux <davygrvy@pobox.com>.
2746 2004-09-11 Don Porter <dgp@users.sourceforge.net>
2748 * generic/tclNamespace.c (TclGetNamespaceForQualName): Resolved
2749 longstanding inconsistency in the treatment of the TCL_NAMESPACE_ONLY
2750 flag revealed by testing the 2004-09-09 commits against Itcl.
2751 TCL_NAMESPACE_ONLY now acts as specified in the pre-function
2752 comment, forcing resolution in the passed in context namespace. It has
2753 been incorrectly forcing resolution in the interp's current namespace.
2755 2004-09-10 Miguel Sofer <msofer@users.sf.net>
2757 * generic/tclExecute.c (INST_CONCAT1): added a peephole optimisation
2758 for concatting an empty string. This enables replacing the idiom 'K $x
2759 [set x {}]' by '$x[set x {}]' for fastest execution.
2761 2004-09-09 Don Porter <dgp@users.sourceforge.net>
2763 * generic/tclNamesp.c (Tcl_ForgetImport): Corrected faulty logic that
2764 * tests/namespace.test: relied exclusively on string matching and
2765 failed in the presence of [rename]s. [Bug 560297]
2766 Also corrected faulty prevention of [namespace import] cycles. [Bug
2769 2004-09-08 Kevin B. Kenny <kennykb@acm.org>
2771 * compat/strftime.c (_conv): Corrected a problem where hour 0 would
2772 format as a blank format group with %k.
2773 * tests/clock.test (clock-41.1): Added regression test case for %k at
2776 2004-09-07 Kevin B. Kenny <kennykb@acm.org>
2778 * generic/tclTimer.c: Removed a premature optimisation that attempted
2779 to store the assoc data in the client data; the optimisation caused a
2780 bug that [after] would overwrite its imports. [Bug 1016167]
2782 2004-09-02 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2784 * doc/lsearch.n: Clarified meaning of -dictionary. [Bug 759545]
2786 2004-09-01 Jeff Hobbs <jeffh@ActiveState.com>
2788 * win/tclWinReg.c (BroadcastValue): WIN64 cast corrections
2790 * win/tclWinDde.c (DdeClientWindowProc):
2791 (DdeServicesOnAck, DdeEnumWindowsCallback): WIN64 corrections
2793 * win/tclWin32Dll.c (TclWinCPUID): need _asm for WIN64 (Itanium),
2794 until we have it, just return unknown. [Bug 1020445]
2796 2004-08-30 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2798 * generic/tclCmdMZ.c (Tcl_StringObjCmd): Stop [string map] from
2799 crashing when its map and input string are the same object.
2801 2004-08-27 Daniel Steffen <das@users.sourceforge.net>
2803 * tests/env.test: macosx fixes.
2805 2004-08-19 Donal K. Fellows <donal.k.fellows@man.ac.uk>
2807 * generic/tclScan.c (Tcl_ScanObjCmd, ValidateFormat): Ensure that the
2808 %ld conversion works correctly on 64-bit platforms. [Bug 1011860]
2810 2004-08-16 Miguel Sofer <msofer@users.sf.net>
2813 * generic/tclTest.c (TestseterrorcodeCmd):
2814 * generic/tclVar.c (TclPtrSetVar):
2815 * tests/result.test (result-4.*, result-5.*): [Bug 1008314]
2816 detected and fixed by dgp.
2818 2004-08-13 Don Porter <dgp@users.sourceforge.net>
2820 * library/msgcat/msgcat.tcl: Added checks to prevent [mclocale]
2821 * tests/msgcat.test: from registering filesystem paths to possibly
2822 malicious code to be evaluated by a later [mcload].
2823 * library/msgcat/pkgIndex.tcl: Bump to msgcat 1.3.3
2825 2004-08-10 Zoran Vasiljevic <vasiljevic@users.sf.net>
2827 * unix/tclUnixThrd.c (TclpThreadCreate): changed handling of the
2828 returned thread ID since broken on 64-bit systems (Cray). Thanks to
2829 Rob Ratcliff for reporting the bug.
2831 2004-07-30 Don Porter <dgp@users.sourceforge.net>
2833 * generic/tclEvent.c (Tcl_Finalize): Re-organized Tcl_Finalize so
2834 that Tcl_ExitProc's that call Tcl_Finalize recursively do not cause
2835 deadlock. [Patch 999084, fixes Tk Bug 714956]
2837 2004-07-30 Daniel Steffen <das@users.sourceforge.net>
2840 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Darwin: instead of setting PLAT_OBJS
2841 to explict object files in tcl.m4, refer to MAC_OSX_OBJS makefile var.
2842 * unix/Makefile.in: added MAC_OSX_OBJS variable.
2844 2004-07-28 Don Porter <dgp@users.sourceforge.net>
2846 * generic/tclMain.c (Tcl_Main, StdinProc): Append newline only to
2847 * tests/basic.test (basic-46.1): incomplete scripts as part
2848 of multi-line script construction. Do not add an extra trailing
2849 newline to the complete script. [Bug 833150]
2851 2004-07-26 Jeff Hobbs <jeffh@ActiveState.com>
2853 *** 8.4.7 TAGGED FOR RELEASE ***
2855 * tests/io.test (io-61.1): create file in binary mode for x-plat.
2857 2004-07-25 Pat Thoyts <patthoyts@users.sourceforge.net>
2859 * generic/tclThreadAlloc.c: Moved the tclInt.h include to provide
2860 Tcl_Panic which is now required for non-threaded build.
2862 2004-07-22 Don Porter <dgp@users.sourceforge.net>
2864 * tests/eofchar.data (removed): Test io-61.1 now generates its own
2865 * tests/io.test: file of test data as needed.
2867 2004-07-21 Don Porter <dgp@users.sourceforge.net>
2868 * win/tclWinDde.c: Bump to dde 1.2.3 to cover changes
2869 * library/dde/pkgIndex.tcl: committed on 2004-06-14.
2871 * changes: Updated for Tcl 8.4.7 release.
2873 2004-07-20 Jeff Hobbs <jeffh@ActiveState.com>
2875 * generic/tclEvent.c: Correct threaded obj allocator to
2876 * generic/tclInt.h: fully cleanup on exit and allow for
2877 * generic/tclThreadAlloc.c: reinitialization. [Bug 736426]
2878 * unix/tclUnixThrd.c: (mistachkin, kenny)
2881 2004-07-20 Daniel Steffen <das@users.sourceforge.net>
2883 * unix/tcl.m4: fixed Darwin autoconf breakage caused by recent CFLAGS
2885 * unix/configure: regen
2887 * unix/tclConfig.sh.in: replaced EXTRA_CFLAGS with CFLAGS.
2888 * unix/dltest/Makefile.in: replaced EXTRA_CFLAGS with DEFS.
2890 * macosx/tclMacOSXBundle.c: dynamically acquire address for
2891 CFBundleOpenBundleResourceMap symbol, since it is only present in
2892 full CoreFoundation on Mac OS X and not in CFLite on pure Darwin.
2894 2004-07-19 Jeff Hobbs <jeffh@ActiveState.com>
2896 * unix/Makefile.in, unix/tcl.m4: move (C|LD)FLAGS after their
2897 * unix/configure.in, unix/configure: _DEFAULT to allow for env setting
2898 to override m4 switches.
2899 Consolidate header checks to limit redundancy in configure.
2900 (CFLAGS_WARNING): Remove -Wconversion, add -fno-strict-aliasing for
2901 gcc builds (need to suppress 3.x type puning warnings).
2902 (SC_ENABLE_THREADS): Set m4 to force threaded build when built against
2903 a threaded Tcl core.
2904 Reorder configure.in for better 64-bit build configuration, replacing
2905 EXTRA_CFLAGS with CFLAGS. [Bug 874058]
2907 2004-07-19 Zoran Vasiljevic <vasiljevic@users.sf.net>
2909 * win/tclwinThrd.c: redefined MASTER_LOCK to call TclpMasterLock.
2912 2004-07-16 Andreas Kupries <andreask@activestate.com>
2914 * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Corrected a typo in the
2915 generation of error messages and simplified by reusing data in a
2916 variable instead of retrieving the string again. Fixes [Bug 835289]
2918 * doc/OpenFileChnl.3: Added description of the behaviour of
2919 Tcl_ReadChars when its 'charsToRead' argument is set to -1. Fixes [Bug
2922 * doc/CrtCommand.3: Added note that the arguments given to the command
2923 proc of a Tcl_CreateCommand are in utf8 since Tcl 8.1. Closing [Patch
2926 * doc/ChnlStack.3: Removed the declaration that the interp argument to
2927 Tcl_(un)StackChannel can be NULL. This fixes [Bug 881220], reported by
2928 Marco Maggi <marcomaggi@users.sourceforge.net>.
2930 * tests/socket.test: Accepted two new testcases by Stuart Casoff
2931 <stwo@users.sourceforge.net> checking that -server and -async don't go
2932 together [Bug 796534]
2934 * unix/tclUnixNotfy.c (NotifierThreadProc): Accepted Joe Mistachkin's
2935 patch for [Bug 990500], properly closing the notifier thread when its
2938 2004-07-15 Andreas Kupries <andreask@activestate.com>
2940 * unix/tclUnixThrd.c (TclpFinalizeMutex): Accepted Joe Mistachkin's
2941 patch for [Bug 990453], closing leakage of mutexes. They were not
2942 destroyed properly upon finalization.
2944 2004-07-15 Zoran Vasiljevic <vasiljevic@users.sf.net>
2946 * generic/tclEvent.c (NewThreadProc): Backout of changes to fix [Bug
2947 770053]. See SF bugreport for more info.
2949 * generic/tclNotify.c (TclFinalizeNotifier): Added conditional
2950 notifier finalization based on the fact that an TclInitNotifier has
2951 been called for the current thread. This fixes [Bug 770053] again.
2952 Hopefully this time w/o unwanted side-effects.
2954 2004-07-14 Andreas Kupries <andreask@activestate.com>
2956 * generic/tclIO.h (CHANNEL_INCLOSE): New flag. Set in Tcl_Close
2957 * generic/tclIO.c (Tcl_UnregisterChannel): while the close callbacks
2958 * generic/tclIO.c (Tcl_Close): are run. Checked in
2959 Tcl_Close and Tcl_Unregister to prevent recursive call of [close] in
2960 the close-callbacks. This is a possible error made by implementors of
2961 virtual filesystems based on 'tclvfs', thinking that they have to
2962 close the channel in the close handler for the filesystem.
2964 2004-07-14 Andreas Kupries <andreask@activestate.com>
2968 Not reverting, but #ifdef'ing the changes from May 19, 2004 out of the
2969 core. This removes the ***POTENTIAL INCOMPATIBILITY*** for channel
2970 drivers it introduced. This has become possible due to Expect gaining
2971 a BlockModeProc and now handling blockingg and non-blocking modes
2972 correctly. Thus [Bug 943274] is still fixed if a recent enough version
2975 * doc/CrtChannel.3: Added warning about usage of a channel without a
2978 2004-07-15 Andreas Kupries <andreask@pliers.activestate.com>
2980 * generic/tclIOCmd.c (Tcl_PutsObjCmd): Added length check to the old
2981 depreceated newline syntax, to ensure that only "nonewline" is
2982 accepted. [Bug 985869] (mistachkin)
2984 2004-07-13 Jeff Hobbs <jeffh@ActiveState.com>
2986 * README, generic/tcl.h, tools/tcl.wse.in: bumped to
2987 * unix/configure, unix/configure.in, unix/tcl.spec: patchlevel
2988 * win/README.binary, win/configure, win/configure.in: 8.4.7
2990 2004-07-13 Zoran Vasiljevic <vasiljevic@users.sf.net>
2992 * generic/tclEvent.c (NewThreadProc): Fixed broken build on Windows
2993 caused by missing TCL_THREAD_CREATE_RETURN. This is backported from
2994 HEAD. Thnx to Kevin Kenny for spotting this.
2996 2004-07-03 Miguel Sofer <msofer@users.sf.net>
2998 * generic/tclExecute.c (ExprRoundFunc):
2999 * tests/expr-old.test (39.1): added support for wide integers to
3000 round(); [Bug 908375], reported by Hemang Lavana.
3002 2004-07-02 Jeff Hobbs <jeffh@ActiveState.com>
3004 * generic/regcomp.c (stid): correct minor pointer size error
3006 * generic/tclPipe.c (TclCreatePipeline): Add 2>@1 as a special
3007 * tests/exec.test: case redir of stderr to the result output.
3009 2004-07-02 Vince Darley <vincentdarley@users.sourceforge.net>
3011 * tests/fileSystem.test: new tests backported
3012 * win/tclWin32Dll.c: compilation fix for VC++5.2
3014 2004-06-29 Donal K. Fellows <donal.k.fellows@man.ac.uk>
3016 * library/safe.tcl: Make sure that the temporary variable is
3017 local to the namespace and not inadvertently global. [Bug 981733]
3019 2004-06-22 Zoran Vasiljevic <vasiljevic@users.sf.net>
3021 * generic/tclEvent.c:
3023 * unix/tclUnixNotfy.c:
3024 * unix/tclUnixThrd.c:
3025 * win/tclWinThrd.c: See bug report for more information about what it
3028 * tests/unixNotfy.test: rewritten to use tcltest::threadReap to
3029 gracefully wait for the test thread to exit. Otherwise we got a race
3030 condition with main thread exiting before the test thread. This
3031 exposed the long-standing Tcl lib issue with resource
3032 garbage-collection on application exit.
3034 2004-06-21 Mo DeJong <mdejong@users.sourceforge.net>
3036 * win/tclWin32Dll.c (DllMain, _except_dllmain_detach_handler)
3037 (TclpCheckStackSpace, _except_checkstackspace_handler, TclWinCPUID)
3038 (_except_TclWinCPUID_detach_handler):
3039 * win/tclWinChan.c (Tcl_MakeFileChannel)
3040 (_except_makefilechannel_handler):
3041 * win/tclWinFCmd.c (DoRenameFile, _except_dorenamefile_handler)
3042 (DoCopyFile, _except_docopyfile_handler):
3043 Rework pushing of exception handler function pointer so that compiling
3044 with gcc -O3 works. Remove empty function call to avoid compiler
3045 warning. Mark the DllMain function as noinline to avoid compiler error
3046 from duplicated asm labels in generated code.
3048 2004-06-14 Pat Thoyts <patthoyts@users.sourceforge.net>
3050 * tests/winDde.test: Fixed -async test
3051 * win/tclWinDde.c: Backported the fix from 8.5 to avoid hanging in the
3052 presence of applications that do not process Window messages.
3054 2004-06-10 Andreas Kupries <andreask@activestate.com>
3056 * generic/tclDecls.h: Regenerated on a unix box. The Win/DOS
3057 * generic/tclIntDecls.h: EOLs from the last regen screwed up
3058 * generic/tclIntPlatDecls.h: compilation with an older gcc.
3059 * generic/tclPlatDecls.h:
3060 * generic/tclStubInit.c:
3062 2004-06-10 Zoran Vasiljevic <vasiljevic@users.sf.net>
3064 * generic/tclIOUtil.c: partially corrected [Bug 932314]. Also,
3065 corrected return values of Tcl_FSChdir() to reflect those of the
3066 underlying platform-specific call. Originally, return codes were mixed
3069 2004-06-08 Miguel Sofer <msofer@users.sf.net>
3071 * generic/tclCompile.c: handle warning [Bug 969066]
3073 2004-06-05 Kevin B. Kenny <kennykb@acm.org>
3075 * generic/tcl.h: Corrected Tcl_WideInt declarations so that the mingw
3077 * generic/tclDecls.h: Changes to the tests for
3078 * generic/tclInt.decls: clock frequency in Tcl_WinTime
3079 * generic/tclIntDecls.h: so that any clock frequency is
3080 * generic/tclIntPlatDecls.h: accepted provided that all
3081 * generic/tclPlatDecls.h: CPU's in the system share a
3082 * generic/tclStubInit.c: common chip, and hence,
3083 * tests/platform.test (platform-1.3): presumably, a common clock.
3084 * win/tclWin32Dll.c (TclWinCPUID): This change necessitated a
3085 * win/tclWinTest.c (TestwincpuidCmd) small burst of assembly code
3086 * win/tclWinTime.c (Tcl_GetTime): to read CPU ID information,
3087 which was added as TclWinCPUID in the internal Stubs. To test this
3088 code in the common case of a single-processor machine, a
3089 'testwincpuid' command was added to tclWinTest.c, and a test case in
3090 platform.test. Thanks to Jeff Godfrey and Richard Suchenwirth for
3091 reporting this bug. [Bug 976722]
3093 2004-05-27 Kevin B. Kenny <kennykb@acm.org>
3095 * tests/clock.test: Added a single test for the presence of %G in
3096 [clock format], and conditioned out the clock-10.x series if they're
3097 all going to fail because of a broken strftime() call. [Bug 961714]
3099 2004-05-27 Reinhard Max <max@suse.de>
3101 * generic/tclEncoding.c:
3102 * tests/encoding.test: added support and tests for translating
3103 embedded null characters between real nullbytes and the internal
3104 representation on input/output. [Bug 949905]
3106 2004-05-26 Don Porter <dgp@users.sourceforge.net>
3108 * library/tcltest/tcltest.tcl: Correction to debug prints and testing
3109 * library/tcltest/pkgIndex.tcl: if TCLTEST_OPTIONS value. Corrected
3110 * tests/tcltest.test: double increment of numTestFiles in
3111 -singleproc 1 configurations. Updated tcltest-19.1 to tcltest 2.1
3112 behavior. Corrected tcltest-25.3 to not falsely report a failure in
3113 tcltest.test. Bumped to tcltest 2.2.6. [Bugs 960560, 960926]
3115 2004-05-25 Jeff Hobbs <jeffh@ActiveState.com>
3117 * doc/http.n (http::config): add -urlencoding option (default utf-8)
3118 * library/http/http.tcl: that specifies encoding conversion of
3119 * library/http/pkgIndex.tcl: args for http::formatQuery. Previously
3120 * tests/http.test: undefined, RFC 2718 says it should be
3121 utf-8. 'http::config -urlencoding {}' returns previous behavior,
3122 which will throw errors processing non-latin-1 chars. Bumped http
3125 2004-05-25 Kevin Kenny <kennykb@acm.org>
3127 * tests/winFCmd.test: Correct test for the presence of a CD-ROM so
3128 that it doesn't misdetect some other sort of filesystem with a
3129 write-protected root as being a CD-ROM drive. [Bug 918267]
3131 2004-05-24 Jeff Hobbs <jeffh@ActiveState.com>
3133 * generic/tclExecute.c (VerifyExprObjType): use GET_WIDE_OR_INT to
3134 properly have tclIntType used for smaller values. This corrects TclX
3135 bug 896727 and any other 3rd party extension that created math
3136 functions but was not yet WIDE_INT aware in them.
3138 2004-05-24 Miguel Sofer <msofer@users.sf.net>
3140 * doc/set.n: accurate description of name resolution process,
3141 referring to namespace.n for details [Bug 959180]
3143 2004-05-22 Miguel Sofer <msofer@users.sf.net>
3145 * generic/tclVar.c (TclObjUnsetVar2): backported fix [Bug 735335] and
3146 new (in tcl8.4) exteriorisations of [Bug 736729] due to the use of
3147 tclNsVarNameType obj types. The consequences of [Bug 736729] should be
3148 the same as in tcl8.3 and previous versions. The use of
3149 tclNsVarNameType objs is still disabled, pending a decision by the
3152 2004-05-19 Donal K. Fellows <donal.k.fellows@man.ac.uk>
3154 * win/tclWinFile.c (TclpMatchInDirectory): fix for an issue where
3155 there was a sneak path from Tcl_DStringFree to SetErrorCode(0). The
3156 result was that the error code could be reset between a call to
3157 FindFirstFile and the check of its status return, leading to a bizarre
3158 error return of {POSIX unknown {No error}}. (Found in unplanned test -
3159 no incident logged at SourceForge.)
3161 2004-05-19 Andreas Kupries <andreask@activestate.com>
3163 * generic/tclIO.c: Fixed [SF Tcl Bug 943274]. This is the same problem
3164 * generic/tclIO.h: as [SF Tcl Bug 462317], see ChangeLog entry
3165 2001-09-26. The fix done at that time is incomplete. It is possible to
3166 get around it if the actual read operation is defered and not executed
3167 in the event handler itself. Instead of tracking if we are in an read
3168 caused by a synthesized fileevent we now track if the OS has delivered
3169 a true event = actual data and bypass the driver if a read finds that
3170 there is no actual data waiting. The flag is cleared by a short or
3171 full read. [[this bug amended 2004-07-14]]
3173 2004-05-18 Kevin B. Kenny <kennykb@acm.org>
3175 * compat/strftime.c (_fmt, ISO8601Week):
3177 * tests/clock.test: Major rework to the handling of ISO8601 week
3178 numbers. Now passes all the %G and %V test cases on Windows, Linux and
3179 Solaris [Bugs 500285, 500389, and 852944]
3181 2004-05-17 Kevin B. Kenny <kennykb.@acm.org>
3183 * generic/tclInt.decls: Restored TclpTime_t kludge to all places
3184 * generic/tclIntPlatDecls.h: where it appeared before the changes of
3185 * unix/tclUnixPort.h 14 May, because use of native time_t in
3186 * unix/tclUnixTime.h its place requires the 8.5 header
3187 * win/tclWinTime.h: reforms. [Bug 955146]
3189 2004-05-17 Donal K. Fellows <donal.k.fellows@man.ac.uk>
3191 * doc/OpenFileChnl.3: Documented type of 'offset' argument to Tcl_Seek
3192 was wrong. [Bug 953374]
3194 2004-05-14 Kevin B. Kenny <kennykb@acm.org>
3196 * generic/tclInt.decls: Promoted TclpLocaltime and TclpGmtime
3197 * generic/tclIntDecls.h: from Unix-specific stubs to the generic
3198 * generic/tclIntPlatDecls.h: internal Stubs table. Reran 'genstubs'
3199 * generic/tclStubInit.c:
3200 * unix/tclUnixPort.h:
3202 * generic/tclClock.c: Changed a buggy 'GMT' timezone specification to
3203 the correct 'GMT0'. [Bug 922848]
3205 * unix/tclUnixThrd.c: Moved TclpGmtime and TclpLocaltime to
3206 unix/tclUnixTime.c where they belong.
3208 * unix/tclUnixTime.c (TclpGmtime, TclpLocaltime, TclpGetTimeZone,
3209 (ThreadSafeGMTime[removed], ThreadSafeLocalTime[removed],
3210 (SetTZIfNecessary, CleanupMemory): Restructured to make sure that the
3211 same mutex protects all calls to localtime, gmtime, and tzset. Added a
3212 check in front of those calls to make sure that the TZ env var hasn't
3213 changed since the last call to tzset, and repeat tzset if necessary.
3214 [Bug 940278] Removed a buggy test of the Daylight Saving Time
3215 information in 'gettimeofday' in favor of applying 'localtime' to a
3216 known value. [Bug 922848]
3218 * tests/clock.test (clock-3.14): Added test to make sure that changes
3219 to $env(TZ) take effect immediately.
3221 * win/tclWinTime.c (TclpLocaltime, TclpGmtime): Added porting layer
3222 for 'localtime' and 'gmtime' calls.
3224 2004-05-10 David Gravereaux <davygrvy@pobox.com>
3226 * win/tclWinPipe.c (BuildCommandLine): Append a space when the path
3228 (TclpCreateProcess): When under NT, with no console, and executing a
3229 DOS application, the path priming does not need an ending space as
3230 BuildCommandLine() will append one for us.
3232 2004-05-07 Miguel Sofer <msofer@users.sf.net>
3234 * doc/unset.n: added upvar.n to the "see also" list
3236 2004-05-05 David Gravereaux <davygrvy@pobox.com>
3238 * generic/tclEvent.c: TclSetLibraryPath's use of caching the stringrep
3239 of the pathPtr object to TclGetLibraryPath called from another thread
3240 was ineffective if the original's stringrep had been invalidated as
3241 what happens when it gets muted to a list.
3243 * generic/tclEncoding.c: Added FreeEncoding(systemEncoding) in
3244 TclFinalizeEncodingSubsystem because its ref count was incremented in
3245 TclInitEncodingSubsystem.
3247 * win/tclWin32Dll.c: Structured Exception Handling added around
3248 Tcl_Finalize called from DllMain's DLL_PROCESS_DETACH. We can't be
3249 100% assured that Tcl is being unloaded by the OS in a stable
3250 condition and we need to protect the exit handlers should the stack be
3251 in a hosed state. AT&T style assembly for SEH under MinGW included,
3254 Also added DisableThreadLibraryCalls() for the DLL_PROCESS_ATTACH
3255 case. We're not interested in knowing about DLL_THREAD_ATTACH, so
3256 disable the notices.
3259 * generic/tclThread.c:
3260 * generic/tclEvent.c:
3261 * unix/tclUnixThrd.c:
3262 * win/tclWinThrd.c: Provisions made so masterLock, initLock,
3263 allocLock and joinLock mutexes can be recovered during Tcl_Finalize.
3266 (SocketThreadExitHandler): Don't call TerminateThread when
3267 WaitForSingleObject returns a timeout. Tcl_Finalize called from
3268 DllMain will pause all threads. Trust that the thread will get the
3269 close notice at a later time if it does ever wake up before being
3270 cleaned up by the system anyway.
3271 (SocketEventProc): connect errors should fire both the readable and
3272 writable handlers because this is how it works on UNIX. [Bug 794839]
3274 * win/coffbase.txt: Added the tls extension to the list of preferred
3277 2004-05-05 Don Porter <dgp@users.sourceforge.net>
3279 * tests/unixInit.test (unixInit-2.10): Test correction for Mac OSX.
3280 Be sure to consistently compare normalized path names. Thanks to
3281 Steven Abner (tauvan). [Bug 948177]
3283 2004-05-05 Donal K. Fellows <donal.k.fellows@man.ac.uk>
3285 * doc/CrtObjCmd.3: Remove reference to Tcl_RenameCommand; there is no
3286 such API. [Bug 848440]
3288 2004-05-04 Jeff Hobbs <jeffh@ActiveState.com>
3290 * generic/tclIOUtil.c (Tcl_FSChdir): Work-around crash condition
3291 * tests/winFCmd.test (winFCmd-16.12): triggered when $HOME is
3292 volumerelative (ie 'C:').
3294 * tests/fileName.test (filename-12.9): use C:/ instead of the first
3295 item in file volumes - that's usually A:/, which for most will have
3298 2004-05-04 Don Porter <dgp@users.sourceforge.net>
3300 * tests/tcltest.test: Test corrections for Mac OSX. Thanks to Steven
3301 Abner (tauvan). [Bug 947440]
3303 2004-05-03 Andreas Kupries <andreask@activestate.com>
3305 Applied [SF Tcl Patch 868853], fixing a mem leak in TtySetOptionProc.
3306 Report and Patch provided by Stuart Cassoff <stwo@users.sf.net>.
3308 2004-05-03 Kevin Kenny <kennykb@acm.org>
3310 * win/tclWin32Dll.c (TclpCheckStackSpace):
3311 * tests/stack.test (stack-3.1): Fix for undetected stack overflow in
3312 TclReExec on Windows. [Bug 947070]
3314 2004-05-03 Don Porter <dgp@users.sourceforge.net>
3316 * library/init.tcl: Corrected unique prefix matching of
3317 interactive command completion in [unknown]. [Bug 946952]
3319 2004-05-02 Miguel Sofer <msofer@users.sf.net>
3321 * generic/tclProc.c (TclObjInvokeProc):
3322 * tests/proc.test (proc-3.6): fix for bad quoting of multi-word proc
3323 names in error messages [Bug 942757]
3325 2004-04-23 Andreas Kupries <andreask@activestate.com>
3327 * generic/tclIO.c (Tcl_SetChannelOption): Fixed [Bug 930851]. When
3328 changing the eofchar we have to zap the related flags to prevent them
3329 from prematurely aborting the next read.
3331 2004-04-07 Jeff Hobbs <jeffh@ActiveState.com>
3334 * win/configure.in: define TCL_LIB_FLAG, TCL_BUILD_LIB_SPEC,
3335 TCL_LIB_SPEC and TCL_PACKAGE_PATH in tclConfig.sh.
3337 2004-04-06 Don Porter <dgp@users.sourceforge.net>
3339 * tests/unixInit.test (unixInit-3.1): Default encoding on Darwin
3340 systems is utf-8. Thanks to Steven Abner (tauvan). [Bug 928808]
3342 2004-04-06 Donal K. Fellows <donal.k.fellows@man.ac.uk>
3344 * tests/cmdAH.test (cmdAH-18.2): Added constraint because
3345 access(...,X_OK) is defined to be permitted to be meaningless when
3346 running as root, and OSX exhibits this. [Bug 929892]
3348 2004-04-02 Don Porter <dgp@users.sourceforge.net>
3350 * tests/tcltest.test: Corrected constraint typos: "nonRoot" ->
3351 "notRoot". Thanks to Steven Abner (tauvan). [Bug 928353]
3353 2004-03-31 Don Porter <dgp@users.sourceforge.net>
3355 * doc/msgcat.n: Clarified message catalog file encodings. [Bug 811457]
3356 * library/msgcat/msgcat.tcl ([mcset], [ConvertLocale], [Init]):
3357 Corrected [mcset] to be able to successfully set a translation to
3358 the empty string. [mcset $loc $src {}] was incorrectly set the $loc
3359 translation of $src back to $src. Also changed [ConvertLocale] to
3360 minimally require a non-empty "language" part in the locale value. If
3361 not, an error raised prompts [Init] to keep looking for a valid locale
3362 value, or ultimately fall back on the "C" locale. [Bug 811461]
3363 * library/msgcat/pkgIndex.tcl: Bump to msgcat 1.3.2.
3365 2004-03-31 Donal K. Fellows <donal.k.fellows@man.ac.uk>
3367 * generic/tclObj.c (HashObjKey): Make sure this hashes the whole
3368 string rep of the object, instead of missing the last character.
3370 2004-03-29 Jeff Hobbs <jeffh@ActiveState.com>
3373 * generic/tclEncoding.c (TclFindEncodings, Tcl_FindExecutable):
3374 * mac/tclMacInit.c (TclpInitLibraryPath): Correct handling of UTF
3375 * unix/tclUnixInit.c (TclpInitLibraryPath): data that is actually
3376 * win/tclWinFile.c (TclpFindExecutable): "clean", allowing the
3377 * win/tclWinInit.c (TclpInitLibraryPath): loading of Tcl from paths
3378 that contain multi-byte chars on Windows [Bug 920667]
3380 2004-03-28 Miguel Sofer <msofer@users.sf.net>
3382 * generic/tclCompile.c (TclCompileScript): corrected possible segfault
3383 when a compilation returns TCL_OUTLINE_COMPILE after having grown the
3384 compile environment. [Bug 925121]
3386 2004-03-21 Jeff Hobbs <jeffh@ActiveState.com>
3388 * win/tclWinInt.h: define VER_PLATFORM_WIN32_CE if not already set.
3389 * win/tclWinInit.c (TclpSetInitialEncodings): recognize WIN32_CE
3390 as a unicode (WCHAR) platform.
3392 2004-03-15 Miguel Sofer <msofer@users.sf.net>
3394 * generic/tclCompile.c (TclCompileScript):
3395 * tests/compile.test (compile-3.5): corrected wrong test and behaviour
3396 in the earlier fix for [Bug 705406]; Don Porter reported this as [Bug
3397 735055], and provided the solution. Fixed in HEAD on 2003-05-09, but
3398 backport to 8-4-branch was wrongly omitted; re-reported as [Bug
3399 916795] by Roy Terry, diagnosed by dgp.
3401 2004-03-08 Vince Darley <vincentdarley@users.sourceforge.net>
3403 * generic/tclFileName.c: Fix to 'glob -path' near the root
3404 * tests/fileName.test: of the filesystem. [Bug 910525]
3406 2004-03-01 Don Porter <dgp@users.sourceforge.net>
3408 *** 8.4.6 TAGGED FOR RELEASE ***
3410 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Allow 64-bit enabling on
3411 IRIX64-6.5* systems. [Bug 218561]
3412 * unix/configure: autoconf-2.13
3414 * generic/tclCmdMZ.c (TclCheckInterpTraces): The TIP 62
3415 * generic/tclTest.c (TestcmdtraceCmd): implementation introduced a
3416 * tests/basic.test (basic-39.10): bug by testing the CallFrame
3417 level instead of the iPtr->numLevels level when deciding what traces
3418 created by Tcl_Create(Obj)Trace to call. Added test to expose the
3419 error, and made fix. [Request 462580]
3421 2004-02-26 Daniel Steffen <das@users.sourceforge.net>
3423 * macosx/Makefile: fixed copyright year in Tcl.framework Info.plist
3425 2004-02-25 Don Porter <dgp@users.sourceforge.net>
3427 * tests/basic.test: Made several tests more robust to the
3428 * tests/cmdMZ.test: list-quoting of path names that might
3429 * tests/exec.test: contain Tcl-special chars like { or [.
3430 * tests/io.test: Should help us sort out Tcl Bug 554068.
3432 * tests/socket.test:
3433 * tests/source.test:
3434 * tests/unixInit.test:
3436 2004-02-25 Donal K. Fellows <donal.k.fellows@man.ac.uk>
3438 * unix/tclUnixChan.c (TcpGetOptionProc): Stop memory leak with very
3439 long hostnames. [Bug 888777]
3441 2004-02-25 David Gravereaux <davygrvy@pobox.com>
3443 * tests/winPipe.test:
3444 * win/tclWinPipe.c: backport of BuildCommandLine changes to mirror
3445 msvcrt's parse_cmdline() rules of quoting.
3447 2004-02-19 Mo DeJong <mdejong@users.sourceforge.net>
3449 * win/tclWinInit.c (AppendEnvironment): Use the tail component of the
3450 passed in lib path instead of just blindly using lib+4. That worked
3451 when lib was "lib/..." but fails for other values. Thanks go to
3452 Patrick Samson for pointing this out.
3454 2004-02-17 Don Porter <dgp@users.sourceforge.net>
3457 * library/tcltest/tcltest.tcl: Changed -verbose default value to
3458 {body error} so that detailed information on unexpected errors in
3459 tests is provided by default, even after the fix for [Bug 725253]
3461 2004-02-17 Jeff Hobbs <jeffh@ActiveState.com>
3463 (reverted due to test failures on Solaris, but not Win/Lin :/)
3464 * generic/tclIOUtil.c: backport of rewrite of generic file
3465 normalization code to cope with links followed by '..'. [Bug 849514],
3466 and parts of [859251]
3468 * tests/unixInit.test: unixInit-7.1
3469 * unix/tclUnixInit.c (TclpInitPlatform): ensure the std fds exist to
3470 prevent crash condition [Bug 772288]
3472 2004-02-16 Jeff Hobbs <jeffh@ActiveState.com>
3474 * generic/tclCmdMZ.c (TclTraceExecutionObjCmd)
3475 (TclTraceCommandObjCmd): fix possible mem leak in trace info.
3477 2004-02-12 Jeff Hobbs <jeffh@ActiveState.com>
3479 * README: update patchlevel to 8.4.6
3482 * unix/configure, unix/configure.in, unix/tcl.spec:
3483 * win/README.binary, win/configure, win/configure.in:
3485 * unix/tcl.m4: update HP-11 build libs setup
3487 2004-02-06 Don Porter <dgp@users.sourceforge.net>
3489 * doc/clock.n: Removed reference to non-existent [file ctime].
3491 2004-02-04 Don Porter <dgp@users.sourceforge.net>
3493 * library/tcltest/tcltest.tcl: Corrected references to
3494 non-existent $name variable in [cleanupTests]. [Bug 833637]
3496 2004-02-03 Don Porter <dgp@users.sourceforge.net>
3498 * library/tcltest/tcltest.tcl: Corrected parsing of single
3499 command line argument (option with missing value) [Bug 833910]
3500 * library/tcltest/pkgIndex.tcl: Bump to version 2.2.5.
3502 2004-02-02 David Gravereaux <davygrvy@pobox.com>
3504 * generic/tclIO.c (Tcl_Ungets): fixes improper filling of the channel
3505 buffer. [Bug 405995]
3507 2004-01-13 Don Porter <dgp@users.sourceforge.net>
3509 * generic/tclFileName.c (Tcl_GlobObjCmd): Latest changes to
3510 management of the interp result by Tcl_GetIndexFromObj() exposed
3511 improper interp result management in the [glob] command procedure.
3512 Corrected by adopting the Tcl_SetObjResult(Tcl_NewStringObj) pattern.
3513 This stopped a segfault in test filename-11.36.
3515 2004-01-13 Donal K. Fellows <donal.k.fellows@man.ac.uk>
3517 * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct, Tcl_WrongNumArgs):
3518 Create fresh objects instead of using the one currently in the
3519 interpreter, which isn't guaranteed to be fresh and unshared. The
3520 cost for the core will be minimal because of the object cache, and
3521 this fixes. [Bug 875395]
3523 2004-01-09 Vince Darley <vincentdarley@users.sourceforge.net>
3525 * generic/tclIOUtil.c: fix to infinite loop in TclFinalizeFilesystem.
3528 2003-12-17 Daniel Steffen <das@users.sourceforge.net>
3530 * generic/tclBinary.c (DeleteScanNumberCache): fixed crashing bug when
3531 numeric scan-value cache contains NULL value.
3533 2003-12-17 Zoran Vasiljevic <zv@archiware.com>
3535 * generic/tclIOUtil.c: fixed 2 memory (object) leaks. This fixes [Bug
3538 2003-12-12 Vince Darley <vincentdarley@users.sourceforge.net>
3540 * generic/tclCmdAH.c: fix to normalization of non-existent user name
3541 ('file normalize ~nobody') [Bug 858937]
3543 2003-12-09 Donal K. Fellows <donal.k.fellows@man.ac.uk>
3545 * unix/tclUnixPort.h: #ifdef'd out declarations of errno which
3546 * tools/man2tcl.c: are known to cause problems with recent
3549 2003-12-03 Don Porter <dgp@users.sourceforge.net>
3551 * generic/tcl.h: Bumped patch level to 8.4.5.1 to distinguish
3552 * unix/configure.in: CVS snapshots from 8.4.5 release.
3556 * unix/configure: autoconf (2.13)
3559 2003-12-02 Donal K. Fellows <donal.k.fellows@man.ac.uk>
3561 * generic/tclBinary.c (DeleteScanNumberCache, ScanNumber): Made
3562 the numeric scan-value cache have proper references to the objects
3563 within it so strange patterns of writes won't cause references to
3564 freed objects. Thanks to Paul Obermeier for the report. [Bug 851747]
3566 2003-12-01 Miguel Sofer <msofer@users.sf.net>
3568 * doc/lset.n: fix typo [Bug 852224]
3570 2003-11-21 Don Porter <dgp@users.sourceforge.net>
3572 *** 8.4.5 TAGGED FOR RELEASE ***
3574 * tests/windFCmd.test (winFCmd-16.10): Corrected failure to
3575 initialize variable $dd that caused test suite failure.
3577 2003-11-20 Miguel Sofer <msofer@users.sf.net>
3579 * generic/tclVar.c: fix flag bit collision between LOOKUP_FOR_UPVAR
3580 and TCL_PARSE_PART1 (deprecated) [Bug 835020]
3582 2003-11-20 Vince Darley <vincentdarley@users.sourceforge.net>
3584 * generic/tclIOUtil.c:
3585 * tests/winFCmd.test: fix to [Bug 845778] - Infinite recursion on [cd]
3588 2003-11-18 Jeff Hobbs <jeffh@ActiveState.com>
3590 * changes: updated for 8.4.5 release
3592 2003-11-17 Don Porter <dgp@users.sourceforge.net>
3594 * generic/regcomp.c: Backported regexp bug fixes and tests. Thanks
3595 * generic/tclTest.c: to Pavel Goran and Vince Darley.
3596 * tests/reg.test: [Bugs 230589, 504785, 505048, 703709, 840258]
3598 2003-11-12 Jeff Hobbs <jeffh@ActiveState.com>
3600 * tests/cmdMZ.test (cmdMZ-1.4): change to nonPortable as more
3601 systems are using permissions caching, and this isn't really a Tcl
3604 2003-11-11 Jeff Hobbs <jeffh@ActiveState.com>
3607 * unix/tcl.m4: improve AIX --enable-64bit handling
3609 2003-11-10 Don Porter <dgp@users.sourceforge.net>
3611 * tests/unixInit.test (unixInit-2.10): re-enabled.
3612 * unix/tclUnixInit.c (TclpInitLibraryPath): Alternative fix
3613 * win/tclWinInit.c (TclpInitLibraryPath): for [Bug 832657]
3614 that should not run afoul of startup constraints.
3616 * library/dde/pkgIndex.tcl: Added safeguards so that registry
3617 * library/reg/pkgIndex.tcl: and dde packages are not offered
3618 * win/tclWinDde.c: on non-Windows platforms. Bumped to
3619 * win/tclWinReg.c: registry 1.1.3 and dde 1.2.2.
3621 2003-11-06 Jeff Hobbs <jeffh@ActiveState.com>
3623 * tests/unixInit.test (unixInit-2.10): mark as knownBug
3624 * generic/tclEncoding.c (TclFindEncodings): revert patch from
3625 2003-11-05. It wasn't valid in the sensitive startup init phase
3626 and broke Windows from working at all.
3628 2003-11-07 Daniel Steffen <das@users.sourceforge.net>
3630 * macosx/Makefile: optimized builds define NDEBUG to turn off
3631 ThreadAlloc range checking.
3633 2003-11-05 Don Porter <dgp@users.sourceforge.net>
3635 * generic/tclEncoding.c (TclFindEncodings): Normalize the path
3636 of the executable before passing to TclpInitLibraryPath() to avoid
3637 buggy handling of paths containing "..". [Bug 832657]
3638 * tests/unixInit.test (unixInit-2.10): New test for fixed bug.
3640 2003-11-04 Daniel Steffen <das@users.sourceforge.net>
3642 * macosx/Makefile: added 'test' target.
3644 2003-10-31 Vince Darley <vincentdarley@users.sourceforge.net>
3646 * generic/tclTest.c: fix test suite memory leak (backport error)
3647 * unix/tclUnixFile.c: ensure translated path (required for correct
3648 error messages) is freed in both code paths.
3650 2003-10-23 Andreas Kupries <andreask@activestate.com>
3652 * unix/tclUnixChan.c (Tcl_MakeFileChannel): Applied [Patch 813606]
3653 fixing [Bug 813087]. Detection of sockets was off for Mac OS X which
3654 implements pipes as local sockets. The new code ensures that only IP
3655 sockets are detected as such.
3657 2003-10-22 Andreas Kupries <andreask@activestate.com>
3659 * win/tclWinSock.c (TcpWatchProc): Watch for FD_CLOSE too when asked
3660 for writable events by the generic layer.
3661 (SocketEventProc): Generate a writable event too when a close is
3664 Together the changes fix [Bug 599468].
3666 2003-10-22 Andreas Kupries <andreask@activestate.com>
3668 * generic/tclIOUtil.c (FsListMounts, FsAddMountsToGlobResult): New
3669 functions. See below for context.
3670 (Tcl_FSMatchInDirectory): Modified to call on the new functions
3671 (above) to handle the mountpoints in the glob'bed directory correctly.
3672 Part of the patch by Vincent Darley to solve the [Bug 800106] for the
3675 * generic/tcl.h (TCL_GLOB_TYPE_MOUNT): New definition. Part of the
3676 patch by Vincent Darley to solve [Bug 800106] for the 8.4.x series.
3678 2003-10-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3680 * generic/tclCmdAH.c (Tcl_FileObjCmd): Changed FILE_ prefix for option
3681 enumeration to FCMD_ to prevent collision with symbols defined by
3682 Cygwin/Mingw32 on NT. [Bug 822528]
3684 2003-10-21 Daniel Steffen <das@users.sourceforge.net>
3686 * tools/tcltk-man2html.tcl: fixed incorrect html generated for .IP/.TP
3687 lists, now use <DL><DT>...<DD>...<P><DT>...<DD>...</DL> instead of
3688 illegal <DL><P><DT>...<DD>...<P><DT>...<DD>...</DL>. Added skipping of
3689 directives directly after .TP to avoid them being used as item
3690 descriptions, e.g. .TP\n.VS in clock.n.
3692 2003-10-21 Andreas Kupries <andreask@activestate.com>
3694 * win/tclWinPipe.c (BuildCommandLine): Applied the patch coming with
3695 [Bug 805605] to the code, fixing the incorrect use of ispace noted by
3696 Ronald Dauster <ronaldd@users.sourceforge.net>.
3698 2003-10-14 David Gravereaux <davygrvy@pobox.com>
3700 * win/tclAppInit.c (sigHandler): Punt gracefully if exitToken has
3701 already been destroyed.
3703 2003-10-13 Vince Darley <vincentdarley@users.sourceforge.net>
3705 * generic/tclCmdMZ.c:
3706 * tests/regexp.test: fix to [Bug 823524] in regsub; added three new
3709 2003-10-12 Jeff Hobbs <jeffh@ActiveState.com>
3711 * unix/tclUnixTest.c (TestalarmCmd): don't bother checking return
3712 value of alarm. [Bug 664755] (english)
3714 2003-10-08 Don Porter <dgp@users.sourceforge.net>
3716 * generic/tclBasic.c: Save and restore the iPtr->flag bits that
3717 control the state of errorCode and errorInfo management when calling
3718 "leave" execution traces, so that all error information of the traced
3719 command is still available whether traced or not. Thanks to Yahalom
3722 2003-10-08 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3724 * generic/tclTest.c (TestNumUtfCharsCmd): Command to allow finer
3725 access to Tcl_NumUtfChars for testing.
3726 * generic/tclUtf.c (Tcl_NumUtfChars): Corrected string length
3727 determining when the length parameter is negative; the terminator is a
3728 zero byte, not (necessarily) a \u0000 character. [Bug 769812]
3730 2003-10-07 Don Porter <dgp@users.sourceforge.net>
3732 * tests/exec.test: Corrected temporary file management
3733 * tests/fileSystem.test: issues uncovered by -debug 1 test
3734 * tests/io.test: operations. Also backported some
3735 * tests/ioCmd.test: other fixes from the HEAD.
3736 * tests/pid.test: [Bugs 675605, 675655, 675659]
3737 * tests/socket.test:
3738 * tests/source.test:
3740 * tests/fCmd.test: Run tests with the [temporaryDirectory] as
3741 the current directory, so that tests can depend on ability to write
3744 * doc/OpenFileChnl.3: Updated Tcl_Tell and Tcl_Seek documentation
3745 to reflect that they now return Tcl_WideInt (TIP 72) [Bug 787537]
3747 * tests/io.test: Corrected several tests that failed when paths
3748 * tests/ioCmd.test: included regexp-special chars. [Bug 775394]
3750 2003-10-06 Don Porter <dgp@users.sourceforge.net>
3752 * tests/regexp.test: Matched [makeFile] with [removeFile].
3753 * tests/regexpComp.test: [Bug 675652]
3755 * tests/fCmd.test (fCmd-8.2): Test only that tilde-substitution
3756 happens, not for any particular result. [Bug 685991]
3758 * unix/tcl.m4 (SC_PATH_TCLCONFIG): Corrected search path so
3759 that alpha and beta releases of Tcl are not favored. [Bug 608698]
3761 * tests/reg.test: Corrected duplicate test names.
3762 * tests/resource.test: [Bugs 710370, 710358]
3764 * tests/cmdMZ.test: Updated [package require tcltest] lines to
3765 * tests/fileSystem.test: indiciate that these test files
3766 * tests/notify.test: use features of tcltest 2. [Bug 706114]
3767 * tests/parseExpr.test:
3768 * tests/unixNotfy.test:
3770 2003-10-06 Vince Darley <vincentdarley@users.sourceforge.net>
3772 * generic/tclFileName.c:
3773 * generic/tclIOUtil.c: backport of volumerelative file normalization
3774 and 'file join' inconsistency fixes [Bug 767834, 813273].
3776 2003-10-04 Chengye Mao <chengye.geo@yahoo.com>
3778 * win/tclWinPipe.c: fixed a bug in BuildCommandLine.
3779 This bug built a command line with a missing space between
3780 tclpipe.dll and the following arguments. It caused error
3781 in Windows 98 when exec command.com (e.g. dir) [Bug 789040]
3783 2003-10-03 Don Porter <dgp@users.sourceforge.net>
3785 * generic/tclBasic.c: Fixed error in ref count management of command
3786 * generic/tclCmdMZ.c: and execution traces that caused access to
3787 freed memory in trace-32.1. [Bug 811483]
3789 2003-10-03 Vince Darley <vincentdarley@users.sourceforge.net>
3791 * tests/fileName.test:
3792 * tests/winFCmd.test:
3793 * doc/FileSystem.3: backported various test and documentation changes
3794 from HEAD. Backport of actual code fixes to follow.
3796 2003-10-02 Don Porter <dgp@users.sourceforge.net>
3798 * README: Bumped patch level to 8.4.5 to prepare
3799 * generic/tcl.h: for next patch release.
3801 * unix/configure.in:
3803 * win/README.binary:
3806 * unix/configure: autoconf (2.13)
3809 * library/http/http.tcl: Bumped to http 2.4.5
3810 * library/http/pkgIndex.tcl:
3812 2003-10-01 Daniel Steffen <das@users.sourceforge.net>
3814 * macosx/Makefile: fixed redo prebinding bug when DESTDIR="".
3815 * mac/tclMacResource.c: fixed possible NULL dereference (bdesgraupes).
3817 2003-09-29 Don Porter <dgp@users.sourceforge.net>
3819 * generic/tclBasic.c (CallCommandTraces): Added safety bit
3820 * tests/trace.test: masking to prevent any of the bit values
3821 TCL_TRACE_*_EXEC from leaking into the flags field of any Command
3822 struct. This does not fix [Bug 811483] but helps to contain some of
3823 its worst symptoms. Also backported the corrections to test trace-28.4
3826 2003-09-29 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3828 * library/http/http.tcl (geturl): Correctly check the type of
3829 boolean-valued options. [Bug 811170]
3831 * unix/tcl.m4 (SC_ENABLE_FRAMEWORK): Added note to make it clearer
3832 that this is an OSX feature, not a general Unix feature. [Bug 619440]
3834 2003-09-28 David Gravereaux <davygrvy@pobox.com>
3836 * win/tclWinPipe.c: The windows port of expect can call
3837 TclWinAddProcess before any of the other pipe functions. Added a
3838 missing PipeInit() call to make sure the initialization happens.
3840 2003-09-25 Daniel Steffen <das@users.sourceforge.net>
3842 * macosx/Makefile: ensure SYMROOT exists if OBJROOT is overridden on
3843 command line. Replaced explict use of /usr/bin by ${BINDIR}.
3845 2003-09-23 Don Porter <dgp@users.sourceforge.net>
3847 * generic/tclCmdMZ.c: Fixed [Bug 807243] where
3848 * tests/trace.test (trace-31,32.*): the introspection results
3849 of both [trace info command] and [trace info execution] were getting
3850 co-mingled. Thanks to Mark Saye for the report.
3852 * library/init.tcl (auto_load, auto_import): Expanded Eric Melski's
3853 2000-01-28 fix for [Bug 218871] to all potentially troubled uses of
3854 [info commands] on input data, where glob-special characters could
3857 2003-09-19 Miguel Sofer <msofer@users.sf.net>
3859 * generic/tclExecute.c: adding (DE)CACHE_STACK_INFO() pairs to protect
3860 all calls that may cause traces on ::errorInfo or ::errorCode to
3861 corrupt the stack [Bug 804681]
3863 2003-09-10 Don Porter <dgp@users.sourceforge.net>
3865 * library/opt/optparse.tcl: Overlooked dependence of opt 0.4.4
3866 * library/opt/pkgIndex.tcl: on Tcl 8.2. Bumped to opt 0.4.4.1.
3868 2003-09-01 Zoran Vasiljevic <zoran@archiware.com>
3870 * generic/tclIOUtil.c: backported fix from HEAD [Bug 788780]
3872 2003-08-27 Don Porter <dgp@users.sourceforge.net>
3874 * generic/tclUtil.c: Corrected [Bug 411825] and other bugs in
3875 TclNeedSpace() where non-breaking space (\u00A0) and backslash-escaped
3876 spaces were handled incorrectly.
3877 * tests/util.test: Added new tests util-8.[2-6].
3879 2003-08-06 Jeff Hobbs <jeffh@ActiveState.com>
3881 * win/tclWinInit.c: recognize amd64 and ia32_on_win64 cpus and
3882 Windows CE platform.
3884 2003-08-06 Don Porter <dgp@users.sourceforge.net>
3886 * library/msgcat/msgcat.tcl: Added escape so that non-Windows
3887 * library/msgcat/pkgIndex.tcl: platforms do not try to use the
3888 registry package. This can save a costly and pointless package
3889 search. Bumped to 1.3.1. Thanks to Dave Bodenstab. [Bug 781609]
3891 2003-08-05 Miguel Sofer <msofer@users.sf.net>
3893 * generic/tclExecute.c (INST_INVOKE, INST_EVAL, INST_PUSH_RESULT):
3894 added a Tcl_ResetResult(interp) at each point where the interp's
3895 result is pushed onto the stack, to avoid keeping an extra reference
3896 that may cause costly Tcl_Obj duplication. Detected by Franco Violi,
3897 analyzed by Peter Spjuth and Donal Fellows. [Bug 781585]
3899 2003-07-24 Reinhard Max <max@suse.de>
3901 * library/package.tcl: Fixed a typo that broke pkg_mkIndex -verbose.
3903 * tests/pkgMkIndex.test: Added a test for [pkg_mkIndex -verbose].
3905 2003-07-23 Daniel Steffen <das@users.sourceforge.net>
3907 * unix/Makefile.in: changes to html-tcl & html-tk targets for
3908 compatibility with non-gnu makes.
3910 * unix/Makefile.in: added macosx/README to dist target.
3912 2003-07-23 Pat Thoyts <patthoyts@users.sourceforge.net>
3914 * win/tclWinReg.c (OpenSubKey): Backported fix for [Bug 775976] which
3915 causes the registry set command to fail when built with VC7.
3916 * library/reg/pkgIndex.tcl: Incremented the version to 1.1.2.
3918 2003-07-21 Jeff Hobbs <jeffh@ActiveState.com>
3920 *** 8.4.4 TAGGED FOR RELEASE ***
3922 * changes: updated for 8.4.4 release
3924 2003-07-18 Daniel Steffen <das@users.sourceforge.net>
3926 * macosx/Makefile: added option to allow installing manpages in
3927 addition to default html help.
3929 2003-07-18 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3931 * doc/Utf.3: Tightened up documentation of Tcl_UtfNext and Tcl_UtfPrev
3932 to better match the behaviour. [Bug 769895]
3934 2003-07-18 Jeff Hobbs <jeffh@ActiveState.com>
3936 * generic/tclIOUtil.c: correct MT-safety issues with filesystem
3937 records. [Bug 753315] (vasiljevic)
3939 * library/http/pkgIndex.tcl: merged to v2.4.4 from head
3940 * library/http/http.tcl: add support for user:pass info in URL.
3941 * tests/http.test: [Bug 759888] (shiobara)
3943 2003-07-18 Don Porter <dgp@users.sourceforge.net>
3945 * generic/tclBasic.c: Corrected several instances of unsafe
3946 * generic/tclCompile.c: truncation of UTF-8 strings that might break
3947 * generic/tclProc.c: apart a multi-byte character. [Bug 760872]
3951 * doc/tcltest.n: Restored the [Eval] proc to replace
3952 * library/tcltest/tcltest.tcl: the [::puts] command when either the
3953 -output or -error option for [test] is in use, in order to capture
3954 data written to the output or error channels for comparison against
3955 what is expected. This is easier to document and agrees better with
3956 most user expectations than the previous attempt to replace [puts]
3957 only in the caller's namespace. Documentation made more precise on the
3958 subject. [Bug 706359]
3960 * doc/AddErrInfo.3: Improved consistency of documentation by using
3961 * doc/CrtTrace.3: "null" everywhere to refer to the character
3962 * doc/Encoding.3: '\0', and using "NULL" everywhere to refer to
3963 * doc/Eval.3: the value of a pointer that points to nowhere.
3964 * doc/GetIndex.3: Also dropped references to ASCII that are no
3965 * doc/Hash.3: longer true, and standardized on the
3966 * doc/LinkVar.3: hyphenated spelling of "null-terminated".
3968 * doc/OpenFileChnl.3:
3973 * doc/CrtSlave.3 (Tcl_MakeSafe): Removed warning about possible
3974 deprecation (no TIP on that).
3976 2003-07-17 Daniel Steffen <das@users.sourceforge.net>
3978 * macosx/Makefile: added var to allow overriding of tclsh used during
3979 html help building (Landon Fuller).
3981 2003-07-16 Mumit Khan <khan@nanotech.wisc.edu>
3983 * generic/tclIOUtil.c (SetFsPathFromAny): Add Cygwin specific code to
3984 convert POSIX filename to native format.
3985 * generic/tclFileName.c (Tcl_TranslateFileName): And remove from here.
3986 (TclDoGlob): Adjust for cygwin and append / for dirs instead of \
3987 * win/tclWinFile.c (TclpObjChdir): Use chdir on Cygwin. [Patch 679315]
3989 2003-07-16 Jeff Hobbs <jeffh@ActiveState.com>
3991 * library/safe.tcl (FileInAccessPath): normalize paths before
3992 comparison. [Bug 759607] (myers)
3994 * unix/tclUnixNotfy.c (NotifierThreadProc): correct size of found and
3995 word vars from int to long. [Bug 767578] (hgo)
3997 2003-07-16 Donal K. Fellows <fellowsd@cs.man.ac.uk>
3999 * doc/CrtSlave.3 (Tcl_MakeSafe): Updated documentation to strongly
4000 discourage use. IMHO code outside the core that uses this function is
4001 a bug... [Bug 655300]
4003 2003-07-16 Jeff Hobbs <jeffh@ActiveState.com>
4005 * generic/tcl.h: Add recognition of -DTCL_UTF_MAX=6 on the
4006 * generic/regcustom.h: make line to support UCS-4 mode. No config arg
4007 at this time, as it is not the recommended build mode.
4009 * generic/tclPreserve.c: In Result and Preserve'd routines, do not
4010 * generic/tclUtil.c: assume that ckfree == free, as that is not
4011 * generic/tclResult.c: always true. [Bug 756791] (fuller)
4013 2003-07-16 Mo DeJong <mdejong@users.sourceforge.net>
4015 * win/Makefile.in: Don't define TCL_DBGX symbol for every compile.
4016 Instead, define TCL_PIPE_DLL only when compiling tclWinPipe.c. This
4017 will break other build systems, so they will need to remove the
4018 TCL_DBGX define and replace it with a define for TCL_PIPE_DLL.
4019 * win/makefile.vc: Ditto.
4020 * win/tclWinPipe.c (TclpCreateProcess): Remove PREFIX_IDENT and
4021 DEBUG_IDENT from top of file. Use TCL_PIPE_DLL passed in from build
4022 env instead of trying to construct the dll name from already defined
4023 symbols. This approach is more flexible and better in the long run.
4025 2003-07-16 Don Porter <dgp@users.sourceforge.net>
4027 * generic/tclFileName.c (Tcl_GlobObjCmd): [Bug 771840]
4028 * generic/tclIOUtil.c (Tcl_FSConvertToPathType):[Bug 771947]
4029 * unix/tclUnixFCmd.c (GetModeFromPermString): [Bug 771949]
4030 Silence compiler warnings about unreached lines.
4032 * library/tcltest/tcltest.tcl (ProcessFlags): Corrected broken call
4033 * library/tcltest/pkgIndex.tcl: to [lrange]. Bumped to
4034 version 2.2.4. [Bug 772333]
4036 2003-07-15 Mo DeJong <mdejong@users.sourceforge.net>
4038 * unix/dltest/pkga.c (Pkga_EqObjCmd): Fix typo that was causing a
4041 2003-07-15 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4043 * doc/array.n: Added some examples from David Welton [Patch 763312]
4045 2003-07-15 Don Porter <dgp@users.sourceforge.net>
4047 * doc/http.n: Updated SYNOPSIS to match actual syntax of commands.
4050 * unix/dltest/pkga.c: Updated to not use Tcl_UtfNcmp and counted
4051 strings instead of strcmp (not defined in any #include'd header) and
4052 presumed NULL-terminated strings.
4054 * README: Bumped patch level to 8.4.4 in anticipation
4055 * generic/tcl.h: of another patch release.
4057 * unix/configure.in:
4059 * win/README.binary:
4062 * unix/configure: autoconf (2.13)
4065 * generic/tclCompCmds.c (TclCompileIfCmd): Prior fix of Bug 711371
4066 on 2003-04-07 introduced a buffer overflow. Corrected. [Bug 771613]
4068 2003-07-15 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4070 * generic/tclCmdIL.c (SortCompare): Cleared up confusing error
4071 message. [Bug 771539]
4073 2003-07-15 Daniel Steffen <das@users.sourceforge.net>
4075 * macosx/Makefile: Rewrote buildsystem for Mac OS X framework build to
4076 be purely make driven; in order to become independent of Apple's
4077 closed-source IDE and build tool. The changes are intended to be
4078 transparent to the Makefile user, all existing make targets and cmd
4079 line variable overrides should continue to work. Changed build to only
4080 include tcl specific html help in Tcl.framework, the tk specific html
4081 help is now included in Tk.framework.
4083 * macosx/Tcl.pbproj/project.pbxproj:
4084 * macosx/Tcl.pbproj/jingham.pbxuser: Changed to purely call through to
4085 the make driven buildsystem; Tcl.framework is no longer assembled by
4086 ProjectBuilder. Set default SYMROOT in target options to simplify
4087 setting up PB (manually setting common build folder for tcl & tk no
4090 * tools/tcltk-man2html.tcl: Added options to allow building only the
4091 tcl or tk html help files; the default behaviour with none of the new
4092 options is to build both, as before.
4094 * unix/Makefile.in: Added targets for building only the tcl or tk help.
4096 * macosx/README (new): Tcl specific excerpts of tk/macosx/README.
4098 * generic/tcl.h: Updated reminder comment about editing
4099 macosx/Tcl.pbproj/project.pbxproj when version number changes.
4101 2003-07-11 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4103 * tests/binary.test (binary-46.*): Tests to help enforce the current
4105 * doc/binary.n: Documented that [binary format a] and [binary scan a]
4106 do encoding conversion by dropping high bytes, unlike the rest of
4107 the core. [Bug 735364]
4109 2003-07-11 Don Porter <dgp@users.sourceforge.net>
4111 * library/package.tcl: Corrected [pkg_mkIndex] bug reported on
4112 comp.lang.tcl. The indexer was searching for newly indexed packages
4113 instead of newly provided packages.
4115 2003-07-04 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4117 * doc/expr.n: Tighten up the wording of some operations. [Bug 758488]
4119 * tests/cmdAH.test: Made tests of [file mtime] work better on FAT
4120 filesystems. [Patch 760768] Also a little general cleanup.
4122 2003-06-25 Mo DeJong <mdejong@users.sourceforge.net>
4124 * unix/configure: Regen.
4125 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Add -ieee when compiling with cc and
4126 add -mieee when compiling with gcc under OSF1-V5 "Tru64" systems. [Bug
4129 2003-06-24 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4131 * doc/encoding.n: Corrected the docs to say that [source] uses the
4132 system encoding, which it always did anyway (since 8.1) [Bug 742100]
4134 2003-06-23 Vince Darley <vincentdarley@users.sourceforge.net>
4136 * generic/tclFCmd.c: fix to bad error message when trying to do 'file
4137 copy foo ""'. [Bug 756951]
4138 * tests/fCmd.test: added two new tests for the bug.
4140 * doc/FileSystem.3: documentation fix [Bug 720634]
4142 2003-06-18 Miguel Sofer <msofer@users.sf.net>
4144 * generic/tclNamesp.c (Tcl_Export): removed erroneous comments [Bug
4147 2003-06-17 Vince Darley <vincentdarley@users.sourceforge.net>
4149 * generic/tclCmdMZ.c:
4150 * tests/regexp.test: fixing of bugs related to regexp and regsub
4151 matching of empty strings. Addition of a number of new tests.
4153 2003-06-10 Miguel Sofer <msofer@users.sf.net>
4155 * generic/tclBasic.c:
4156 * generic/tclExecute.c: let TclEvalObjvInternal call TclInterpReady
4157 instead of relying on its callers to do so; fix for the part of [Bug
4158 495830] that is new in 8.4.
4159 * tests/interp.test: Added tests 18.9 (knownbug) and 18.10
4161 2003-06-09 Don Porter <dgp@users.sourceforge.net>
4163 * tests/string.test (string-4.15): Added test for [string first] bug
4164 reported in Tcl 8.3, where test for all-single-byte-encoded strings
4167 2003-06-04 Joe Mistachkin <joe@mistachkin.com>
4169 * tools/man2help.tcl: Added duplicate help section checking and
4170 * tools/index.tcl: corrected a comment typo for the getTopics proc
4171 in index.tcl. [Bug 748700]
4173 2003-05-23 Don Porter <dgp@users.sourceforge.net>
4175 * generic/tclObj.c (tclCmdNameType): Converted internal rep
4176 management of the cmdName Tcl_ObjType the opposite way, to always use
4177 the twoPtrValue instead of always using the otherValuePtr. Previous
4178 fix on 2003-05-12 broke several extensions that wanted to poke around
4179 with the twoPtrValue.ptr2 value of a cmdName Tcl_Obj, like TclBlend
4180 and e4graph. [Bug 726018] Thanks to George Petasis for the bug report
4181 and Jacob Levy for testing assistance.
4183 2003-05-22 Daniel Steffen <das@users.sourceforge.net>
4185 *** 8.4.3 TAGGED FOR RELEASE ***
4187 * macosx/tclMacOSXBundle.c: fixed a problem that caused only the first
4188 call to Tcl_MacOSXOpenVersionedBundleResources() for a given bundle
4189 identifier to succeed. This caused the tcl runtime library not to be
4190 found in all interps created after the inital one.
4192 2003-05-20 Jeff Hobbs <jeffh@ActiveState.com>
4194 * changes: updated for 8.4.3
4196 * unix/Makefile.in: do not run autoconf during 'make dist' as the
4197 configure is now a CVS-maintained file and should be up-to-date.
4199 2003-05-19 Daniel Steffen <das@users.sourceforge.net>
4201 * macosx/Tcl.pbproj/project.pbxproj: changed tclConfig.sh location in
4202 versioned framework subdirectories to be identical to location in
4203 framework toplevel; fixed stub library symbolic links to be Tcl
4206 2003-05-16 Daniel Steffen <das@users.sourceforge.net>
4208 * macosx/Tcl.pbproj/project.pbxproj: updated copyright year.
4210 2003-05-15 Jeff Hobbs <jeffh@ActiveState.com>
4212 * win/tclWinFile.c (TclpMatchInDirectory): revert glob code to r1.44
4213 as 2003-04-14 optimizations broke Windows98 glob'ing.
4215 * README: bumped version to 8.4.3
4217 * macosx/Tcl.pbproj/project.pbxproj:
4220 * unix/configure.in:
4222 * win/README.binary:
4226 * doc/socket.n: nroff font handling correction.
4228 * library/encoding/gb2312-raw.enc (new): This is the original
4229 gb2312.enc renamed to allow for it to still be used. This is needed by
4230 Tk (unix) because X fonts with gb2312* charsets really do want the
4231 original gb2312 encoding. [Bug 557030]
4233 2003-05-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4235 * generic/tclCmdAH.c (Tcl_FormatObjCmd): Values which can't be
4236 anything but wide shouldn't be demoted to long. [consequence of HEAD
4237 fixes for Bug 699060]
4239 2003-05-14 Jeff Hobbs <jeffh@ActiveState.com>
4241 * library/encoding/gb2312.enc: copy euc-cn.enc over original
4242 gb2312.enc. gb2312.enc appeared to not work as expected, and most uses
4243 of gb2312 really mean euc-cn (which may be the cause of the problem).
4246 * generic/tclEnv.c (TclUnsetEnv): Another putenv() copy behavior
4247 problem repaired when compiling on windows and using microsoft's
4248 runtime. [Bug 736421] (gravereaux)
4250 2003-05-13 Jeff Hobbs <jeffh@ActiveState.com>
4252 * generic/tclIOUtil.c: add decl for FsThrExitProc to suppress warnings
4254 2003-05-13 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4256 * generic/tclEvent.c (Tcl_Finalize): Removed unused variable to reduce
4257 compiler warnings. [Bug 664745]
4259 2003-05-13 Joe Mistachkin <joe@mistachkin.com>
4261 * generic/tcl.decls: Changed Tcl_JoinThread parameter name from "id"
4262 * generic/tclDecls.h: to "threadId". [Bug 732477]
4263 * unix/tclUnixThrd.c:
4267 2003-05-13 Daniel Steffen <das@users.sourceforge.net>
4269 * generic/tcl.decls:
4270 * macosx/tclMacOSXBundle.c: added extended version of the
4271 Tcl_MacOSXOpenBundleResources() API taking an extra version number
4272 argument: Tcl_MacOSXOpenVersionedBundleResources(). This is needed to
4273 be able to access bundle resources in versioned frameworks such as Tcl
4274 and Tk, otherwise if multiple versions were installed, only the latest
4275 version's resources could be accessed. [Bug 736774]
4277 * unix/tclUnixInit.c (Tcl_MacOSXGetLibraryPath): use new versioned
4278 bundle resource API to get tcl runtime library for TCL_VERSION.
4281 * generic/tclPlatDecls.h:
4282 * generic/tclStubInit.c: regen.
4284 * unix/tclUnixPort.h: worked around the issue of realpath() not being
4285 thread-safe on Mac OS X by defining NO_REALPATH for threaded builds on
4286 Mac OS X. [Bug 711232]
4288 2003-05-12 Don Porter <dgp@users.sourceforge.net>
4290 * generic/tclInterp.c: (AliasObjCmd): Added refCounting of the words
4291 * tests/interp.test (interp-33.1): of the target of an interp
4292 alias during its execution. Also added test. [Bug 730244].
4294 * generic/tclBasic.c (TclInvokeObjectCommand): objv[argc] is no
4295 longer set to NULL (Tcl_CreateObjCommand docs already say that it
4296 should not be accessed).
4298 * generic/tclObj.c (tclCmdNameType): Corrected variable use of the
4299 otherValuePtr or the twoPtrValue.ptr1 fields to store a
4300 (ResolvedCmdName *) as the internal rep. [Bug 726018].
4302 * doc/Eval.3: Corrected prototype for Tcl_GlobalEvalObj [Bug 727622].
4304 2003-05-12 Miguel Sofer <msofer@users.sf.net>
4306 * generic/tclVar.c (TclObjLookupVar): [Bug 735335] temporary fix,
4307 disabling usage of tclNsVarNameType.
4308 * tests/var.test (var-15.1): test for [Bug 735335]
4310 2003-05-10 Zoran Vasiljevic <zoran@archiware.com>
4312 * unix/tclUnixThrd.c: corrected [Bug 723502]
4314 2003-05-10 Jeff Hobbs <jeffh@ActiveState.com>
4316 * generic/tclIOUtil.c: ensure cd is thread-safe.
4317 [Bug 710642] (vasiljevic)
4319 * win/tclWinSerial.c (SerialCloseProc): correct mem leak on closing a
4320 Windows serial port [Bug 718002] (schroedter)
4322 * generic/tclCmdMZ.c (Tcl_StringObjCmd): prevent string repeat crash
4323 when overflow sizes were given (throws error). [Bug 714106]
4325 2003-05-09 Joe Mistachkin <joe@mistachkin.com>
4327 * generic/tclThreadAlloc.c (TclFreeAllocCache): Fixed memory leak
4328 caused by treating cachePtr as a TLS index [Bug 731754].
4330 * win/tclAppInit.c (Tcl_AppInit): Fixed memory leaks caused by not
4331 freeing the memory allocated by setargv and the async handler created
4332 by Tcl_AppInit. An exit handler has been created that takes care of
4333 both leaks. In addition, Tcl_AppInit now uses ckalloc instead of
4334 Tcl_Alloc to allow for easier leak tracking and to be more consistent
4335 with the rest of the Tcl core [Bugs 733156, 733221].
4337 * tools/encoding/txt2enc.c (main): Fixed memory leak caused by failing
4338 to free the memory used by the toUnicode array of strings [Bug 733221]
4340 2003-05-05 Don Porter <dgp@users.sourceforge.net>
4342 * library/tcltest/tcltest.tcl: The -returnCodes option to [test]
4343 failed to recognize the symbolic name "ok" for return code 0.
4345 2003-05-05 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4347 * generic/tclBasic.c (Tcl_HideCommand): Fixed error message grammar
4350 2003-04-29 Vince Darley <vincentdarley@users.sourceforge.net>
4352 * generic/tclFileName.c: fix to bug reported privately by Jeff where,
4353 for example, 'glob -path {[tcl]} *' gets confused by the leading
4354 special character (which is escaped internally), and instead lists
4355 files in '/'. Bug only occurs on Windows where '\' is also a
4356 directory separator. (Bug has been around at least since Tcl 8.3.)
4357 * tests/fileName.test: added test for the above bug.
4359 2003-04-25 Don Porter <dgp@users.sourceforge.net>
4361 * generic/tclBasic.c: Tcl_EvalObjv() failed to honor the
4362 TCL_EVAL_GLOBAL flag when resolving command names. Tcl_EvalEx passed a
4363 string rep including leading whitespace and comments to
4364 TclEvalObjvInternal().
4366 2003-04-25 Andreas Kupries <andreask@activestate.com>
4368 * win/tclWinThrd.c: Applied [Patch 727271]. This patch changes the
4369 code to catch any errors returned by the windows functions handling
4370 TLS ASAP instead of waiting to get some mysterious crash later on due
4371 to bogus pointers. Patch provided by Joe Mistachkin.
4373 This is a stop-gap measure to deal with the low number of ?TLS slots
4374 provided by some of the variants of Windows (60-80).
4376 2003-04-21 Don Porter <dgp@users.sourceforge.net>
4378 * library/tcltest/tcltest.tcl: When the return code of a test does
4379 not meet expectations, report that as the reason for test failure,
4380 and do not attempt to check the test result for correctness. [Bug
4383 2003-04-18 Jeff Hobbs <jeffh@ActiveState.com>
4385 * generic/tclExecute.c (ExprCallMathFunc): remove incorrect
4386 extraneous cast from Tcl_WideAsDouble.
4388 2003-04-18 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4390 * doc/open.n: Moved serial port options from [fconfigure]
4391 * doc/fconfigure.n: to [open] as it is up to the creator of a
4392 channel to describe the channel's special
4393 config options. [Bug 679010]
4395 2003-04-16 Don Porter <dgp@users.sourceforge.net>
4397 * generic/tcl.h Made changes so that the "wideInt" Tcl_ObjType
4398 * generic/tclObj.c is defined on all platforms, even those where
4399 * generic/tclPort.h TCL_WIDE_INT_IS_LONG is defined. Also made
4400 the Tcl_Value struct have a wideValue field on all platforms. This is
4401 a ***POTENTIAL INCOMPATIBILITY*** for TCL_WIDE_INT_IS_LONG platforms
4402 because that struct changes size. This is the same TIP 72
4403 incompatibility that was seen on other platforms at the 8.4.0 release,
4404 when this change should have happened as well. [Bug 713562]
4406 * generic/tclInt.h: New internal macros TclGetWide() and
4407 TclGetLongFromWide() to deal with both forms of the "wideInt"
4408 Tcl_ObjType, so that conditional TCL_WIDE_INT_IS_LONG code
4409 is confined to the header file.
4411 * generic/tclCmdAH.c: Replaced most coding that was conditional
4412 * generic/tclCmdIL.c: on TCL_WIDE_INT_IS_LONG with code that
4413 * generic/tclExecute.c: works across platforms, sometimes using
4414 * generic/tclTest.c: the new macros above to do it.
4415 * generic/tclUtil.c:
4418 2003-04-17 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4420 * doc/socket.n: Added a paragraph to remind people to specify
4421 their encodings when using sockets. [Bug 630621]
4423 2003-04-16 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4425 * doc/CrtMathFnc.3: Functions also have to deal with wide ints,
4426 but this was not documented. [Bug 709720]
4428 2003-04-15 Kevin Kenny <kennykb@acm.org>
4430 * win/tclWinTime.c: Corrected use of types to make compilation
4431 compatible with VC++5.
4433 2003-04-14 Kevin Kenny <kennykb@acm.org>
4435 * win/tclWinFile.c: added conditionals to restore compilation on
4436 VC++6, which was broken by recent changes.
4438 2003-04-14 Vince Darley <vincentdarley@users.sourceforge.net>
4440 Merged various bug fixes from current cvs head:
4442 * tests/cmdAH.test: better fix to test suite problem if /home is a
4443 symlink [Bug 703264]
4445 * generic/tclIOUtil.c: fix bad error message with 'cd ""' [Bug 704917]
4447 * win/tclWin32Dll.c:
4448 * win/tclWinInt.h: allow Tcl to differentiate between reparse points
4449 which are symlinks and mounted volumes, and correctly handle the
4450 latter. This involves some elaborate code to find the actual drive
4451 letter (if possible) corresponding to a mounted volume. [Bug 697862]
4452 * tests/fileSystem.test: add constraints to stop tests running in
4453 ordinary tcl interpreter. [Bug 705675]
4454 * generic/tclIOUtil.c: Some re-arrangement of code to bring it closer
4455 to CVS HEAD. No functional changes.
4458 * win/tclWinFile.c: added some filesystem optimisation to the
4459 'glob' implementation, and some new tests.
4461 * tests/winFile.test:
4462 * tests/ioUtil.test:
4463 * tests/unixFCmd.test: renumbered tests with duplicate numbers. [Bug
4466 2003-04-12 Kevin Kenny <kennykb@acm.org>
4468 * tests/clock.test: Renumbered test cases to avoid duplicates [Bug
4470 * tests/winTime.test:
4471 * win/tclWinTest.c (TestwinclockCmd, TestwinsleepCmd):
4472 * win/tclWinTime.c (Tcl_WinTime, UpdateTimeEachSecond,
4473 (ResetCounterSamples, AccumulateSample, SAMPLES, TimeInfo): Made
4474 substantial changes to the phase-locked loop (replaced an IIR filter
4475 with an FIR one) in a quest for improved loop stability (Bug not
4476 logged at SF, but cited in private communication from Jeff Hobbs).
4478 2003-04-11 Don Porter <dgp@users.sourceforge.net>
4480 * generic/tclCmdMZ.c (Tcl_StringObjCmd,STR_IS_INT): Corrected
4481 inconsistent results of [string is integer] observed on systems
4482 where sizeof(long) != sizeof(int). [Bug 718878]
4483 * tests/string.test: Added tests for Bug 718878.
4484 * doc/string.n: Clarified that [string is integer] accepts
4487 2003-04-11 Andreas Kupries <andreask@activestate.com>
4489 * generic/tclIO.c (UpdateInterest): When dropping interest in
4490 TCL_READABLE now dropping interest in TCL_EXCEPTION too. This fixes a
4491 bug where Expect detects eof on a file prematurely on Solaris 2.6 and
4492 higher. A much more complete explanation is in the code itself (40
4493 lines of comments for a one-line change :)
4495 2003-04-10 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4497 * doc/binary.n: Fixed typo in [binary format w] desc. [Bug 718543]
4499 2003-04-08 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4501 * generic/tclCmdAH.c (Tcl_ErrorObjCmd): Strings are only empty if they
4502 have zero length, not if their first byte is zero, so fix test
4503 guarding Tcl_AddObjErrorInfo to take this into account. [Bug reported
4504 by Don Porter; no bug-id.]
4506 2003-04-07 Don Porter <dgp@users.sourceforge.net>
4508 * generic/tclCompCmds.c (TclCompileIfCmd): Corrected string limits of
4509 arguments interpolated in error messages. [Bug 711371]
4511 * generic/tclCmdMZ.c (TraceExecutionProc): Added missing
4512 Tcl_DiscardResult() call to avoid memory leak.
4514 2003-04-07 Donal K. Fellows <zzcgudf@ernie.mvc.mcc.ac.uk>
4516 * generic/tclObj.c (tclWideIntType, TclInitObjSubsystem):
4517 (SetBooleanFromAny): Make sure that tclWideIntType is defined and
4518 somewhat sensible everywhere. [Bug 713562]
4520 2003-04-02 Mo DeJong <mdejong@users.sourceforge.net>
4522 * win/configure: Regen.
4523 * win/configure.in: Set stub lib flag based on new LIBFLAGSUFFIX
4525 * win/tcl.m4 (SC_CONFIG_CFLAGS): Set new LIBFLAGSUFFIX that works like
4526 LIBSUFFIX, it is used when creating library names. The previous
4527 implementation would generate -ltclstub85 instead of -ltclstub85s when
4528 configured with --disable-shared.
4530 2003-04-01 Don Porter <dgp@users.sourceforge.net>
4532 * tests/README: Direct [source] of *.test files is no longer
4533 recommended. The tests/*.test files should only be evaluated under the
4534 control of the [runAllTests] command in tests/all.tcl.
4536 2003-03-27 Miguel Sofer <msofer@users.sf.net>
4538 * tests/encoding.test:
4539 * tests/proc-old.test:
4540 * tests/set-old.test: Altered test numers to eliminate duplicates,
4541 [Bugs 710313, 710320, 710352]
4543 2003-03-27 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4545 * tests/parseOld.test: Altered test numers to eliminate duplicates.
4546 * tests/parse.test: [Bugs 710365, 710369]
4547 * tests/expr-old.test:
4550 * tests/utf.test: Altered test numers to eliminate duplicates.
4551 * tests/trace.test: [Bugs 710322, 710327, 710349, 710363]
4552 * tests/lsearch.test:
4555 * tests/incr-old.test:
4556 * tests/if-old.test:
4557 * tests/format.test:
4558 * tests/foreach.test:
4560 2003-03-26 Don Porter <dgp@users.sourceforge.net>
4563 * library/tcltest/tcltest.tcl: Added reporting during [configure
4564 -debug 1] operations to warn about multiple uses of the same test
4565 name. [FR 576693] Replaced [regexp] and [regsub] with [string map]
4566 where possible. Thanks to David Welton. [Bugs 667456,667558]
4567 * library/tcltest/pkgIndex.tcl: Bumped to tcltest 2.2.3
4569 * tests/msgcat.test (msgcat-2.2.1): changed test name to avoid
4570 duplication. [Bug 710356]
4572 * unix/dltest/pkg?.c: Changed all Tcl_InitStubs calls to pass argument
4573 exact = 0, so that rebuilds are not required when Tcl bumps to a new
4574 version. [Bug 701926]
4576 2003-03-24 Miguel Sofer <msofer@users.sf.net>
4579 * tests/var.test: fixing ObjMakeUpvar's lookup algorithm for the
4580 created local variable, [Bugs 631741] (Chris Darroch) and [696893]
4583 2003-03-22 Kevin Kenny <kennykb@acm.org>
4585 * library/dde/pkgIndex.tcl:
4586 * library/reg/pkgIndex.tcl: Fixed a bug where [package require dde] or
4587 [package require registry] attempted to load the release version of
4588 the DLL into a debug build. [Bug 708218] Thanks to Joe Mistachkin for
4590 * win/makefile.vc: Added quoting around the script name in the 'test'
4591 target; Joe Mistachkin insists that he has a configuration that fails
4592 to launch tcltest without it, and it appears harmless otherwise.
4594 2003-03-20 Don Porter <dgp@users.sourceforge.net>
4596 * generic/tclInt.h (tclOriginalNotifier):
4597 * generic/tclStubInit.c (tclOriginalNotifier):
4598 * mac/tclMacNotify.c (Tcl_SetTimer,Tcl_WaitForEvent):
4599 * unix/tclUnixNotfy.c (Tcl_SetTimer,Tcl_WaitForEvent,
4600 (Tcl_CreateFileHandler,Tcl_DeleteFileHandler):
4601 * win/tclWinNotify.c (Tcl_SetTimer,Tcl_WaitForEvent): Some linkers
4602 apparently use a different representation for a pointer to a function
4603 within the same compilation unit and a pointer to a function in a
4604 different compilation unit. This causes checks like those in the
4605 original notifier procedures to fall into infinite loops. The fix is
4606 to store pointers to the original notifier procedures in a struct
4607 defined in the same compilation unit as the stubs tables, and compare
4608 against those values. [Bug 707174]
4610 * generic/tclInt.h: Removed definition of ParseValue struct that is no
4613 2003-03-19 Miguel Sofer <msofer@users.sf.net>
4615 * generic/tclCompile.c:
4616 * tests/compile.test: bad command count on TCL_OUT_LINE_COMPILE
4617 [Bug 705406] (Don Porter).
4619 2003-03-19 Don Porter <dgp@users.sourceforge.net>
4621 * doc/Eval.3 (Tcl_EvalObjEx): Corrected CONST and
4622 * doc/ParseCmd.3 (Tcl_EvalTokensStandard): return type errors in
4623 documentation. [Bug 683994]
4625 2003-03-18 Kevin Kenny <kennykb@users.sourceforge.net>
4627 * tests/registry.test: Changed the conditionals to avoid an abort if
4628 [testlocale] is missing, as when running the test in tclsh rather than
4629 tcltest. [Bug 705677]
4631 2003-03-18 Daniel Steffen <das@users.sourceforge.net>
4633 * tools/tcltk-man2html.tcl: added support for building 'make html'
4634 from inside distribution directories named with 8.x.x version numbers.
4635 tcltk-man2html now uses the latest tcl8.x.x resp. tk8.x.x directories
4636 found inside its --srcdir argument.
4638 2003-03-18 Vince Darley <vincentdarley@users.sourceforge.net>
4640 * tests/cmdAH.test: fix test suite problem if /home is a symlink
4641 * generic/tclIOUtil.c: fix bad error message with 'cd ""'
4642 * win/tclWinFile.c: allow Tcl to differentiate between reparse points
4643 which are symlinks and mounted drives.
4645 These changes fix [Bugs 703264, 704917, 697862] respectively.
4647 2003-03-17 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4649 * doc/lsearch.n: Altered documentation of -ascii options so
4650 * doc/lsort.n: they don't specify that they operate on
4651 ASCII strings, which they never did
4652 anyway. [Bug 703807]
4654 2003-03-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4656 * generic/tclCmdAH.c (Tcl_FileObjCmd): Remove assumption that file
4657 times and longs are the same size. [Bug 698146]
4658 (Tcl_FormatObjCmd): Stop surprising type conversions from
4659 happening when working with integer and wide values. [Bug 699060]
4661 * generic/tclCmdAH.c (Tcl_FormatObjCmd): Only add the modifier that
4662 indicates we've got a wide int when we're formatting in an integer
4663 style. Stops some libc's from going mad. [Bug 702622]
4664 Also tidied whitespace.
4666 2003-03-13 Kevin Kenny <kennykb@users.sourceforge.net>
4668 * win/makefile.vc: Backed the version to 8.4 on the 8.4 branch. (I
4669 just loathe sticky tags).
4671 2003-03-12 Don Porter <dgp@users.sourceforge.net>
4673 * generic/tcl.h: Removed TCL_PREFIX_IDENT and TCL_DEBUG_IDENT
4674 * win/tclWinPipe.c: from tcl.h -- they are not part of Tcl's
4675 public interface. Put them in win/tclWinPipe.c where they are used.
4677 * generic/tclCmdMZ.c (Tcl_SubstObj): Corrected and added test for
4678 * tests/subst.test (subst-2.4): Tcl_SubstObj's incorrect
4679 halting of substitution at the first \x00 byte. [Bug 685106]
4681 * generic/tclInterp.c (Tcl_InterpObjCmd): Corrected and added
4682 * tests/interp.test (interp-2.13): test for option
4683 parsing beyond objc for [interp create --]. Thanks to Marco Maggi.
4686 2003-03-11 Kevin Kenny <kennykb@users.sourceforge.net>
4688 * win/makefile.vc: Added two missing uses of $(DBGX) so that
4689 tclpip8x.dll loads without panicking on Win9x.
4691 2003-03-08 Don Porter <dgp@users.sourceforge.net>
4693 * doc/tcltest.n: Added missing "-body" to example. Thanks to
4694 Helmut Giese. [Bug 700011]
4696 2003-03-06 Don Porter <dgp@users.sourceforge.net>
4698 * generic/TclUtf.c (Tcl_UniCharNcasecmp): Corrected failure to
4699 * tests/utf.test (utf-25.*): properly compare Unicode strings of
4700 different case in a case insensitive manner. [Bug 699042]
4702 2003-03-03 Jeff Hobbs <jeffh@ActiveState.com>
4704 *** 8.4.2 TAGGED FOR RELEASE ***
4706 2003-03-03 Daniel Steffen <das@users.sourceforge.net>
4708 Mac OS Classic specific fixes:
4709 * generic/tclIOUtil.c (TclNewFSPathObj): on TCL_PLATFORM_MAC,
4710 skip potential directory separator at the beginning of addStrRep.
4711 * mac/tclMacChan.c (OpenFileChannel, CommonWatch): followup
4712 fixes to cut and splice implementation for file channels.
4713 * mac/tclMacFile.c (TclpUtime): pass native path to utime().
4714 * mac/tclMacFile.c (TclpObjLink): correctly implemented creation
4715 of alias files via new static proc CreateAliasFile().
4716 * mac/tclMacPort.h: define S_ISLNK macro to fix stat'ing of links.
4717 * mac/tclMacUtil.c (FSpLocationFromPathAlias): fix to enable
4718 stat'ing of broken links.
4720 2003-03-03 Kevin Kenny <kennykb@users.sourceforge.net>
4722 * win/Makefile.vc: corrected bug introduced by 'g' for debug builds.
4724 2003-03-03 Don Porter <dgp@users.sourceforge.net>
4726 * library/dde/pkgIndex.tcl: dde bumped to version 1.2.1 for
4727 * win/tclWinDde.c: bundled release with Tcl 8.4.2
4729 * library/reg/pkgIndex.tcl: registry bumped to version 1.1.1 for
4730 * win/tclWinReg.c: bundled release with Tcl 8.4.2
4732 * library/opt/pkgIndex.tcl: updated package index to version 0.4.4
4734 2003-02-28 Jeff Hobbs <jeffh@ActiveState.com>
4737 * win/configure.in: check for 'g' for debug build type, not 'd'.
4738 * win/rules.vc (DBGX): correct to use 'g' for nmake win makefile
4739 to match the cygwin makefile for debug builds. [Bug 635107]
4741 2003-02-28 Vince Darley <vincentdarley@users.sourceforge.net>
4743 * doc/file.n: subcommand is 'file volumes' not 'file volume'
4745 2003-02-27 Jeff Hobbs <jeffh@ActiveState.com>
4747 * generic/tclIOUtil.c (MakeFsPathFromRelative): removed dead code
4748 check of typePtr (darley).
4750 * tests/winTime.test: added note about PCI hardware dependency
4751 issues with high performance clock.
4753 2003-02-27 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4755 * tests/lsearch.test (lsearch-10.7):
4756 * generic/tclCmdIL.c (Tcl_LsearchObjCmd): Stopped -start option from
4757 causing an option when used with an empty list. [Bug 694232]
4759 2003-02-26 Chengye Mao <chengye.geo@yahoo.com>
4761 * win/tclWinInit.c: fixed a bug in TclpSetVariables by initializing
4762 dwUserNameLen with the sizeof(szUserName) before calling GetUserName.
4763 Don't know if this bug has been recorded: it caused crash in starting
4764 Tcl or wish in Windows.
4766 2003-02-26 Jeff Hobbs <jeffh@ActiveState.com>
4768 * generic/tclCmdMZ.c (TraceCommandProc): Fix mem leak when
4769 deleting a command that had trace on it. [Bug 693564] (sofer)
4771 2003-02-25 Don Porter <dgp@users.sourceforge.net>
4773 * doc/pkgMkIndex.n: Modified [pkg_mkIndex] to use -nocase matching
4774 * library/package.tcl: of -load patterns, to better accomodate
4775 common user errors due to confusion between [package names] names
4776 and [info loaded] names.
4778 2003-02-25 Andreas Kupries <andreask@activestate.com>
4780 * tests/pid.test: See below [Bug 678412].
4781 * tests/io.test: Made more robust against spaces in paths [Bug 678400]
4783 2003-02-25 Miguel Sofer <msofer@users.sf.net>
4785 * tests/execute.test: cleaning up testobj's at the end, to avoid leak
4786 warning by valgrind.
4788 2003-02-22 Zoran Vasiljevic <zoran@archiwrae.com>
4790 * generic/tclEvent.c (Tcl_FinalizeThread): Fix [Bug 571002]
4792 2003-02-21 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4794 * tests/binary.test (binary-44.[34]):
4795 * generic/tclBinary.c (ScanNumber): Fixed problem with unwanted
4796 sign-bit propagation when scanning wide ints. [Bug 690774]
4798 2003-02-21 Daniel Steffen <das@users.sourceforge.net>
4800 * mac/tclMacChan.c (TclpCutFileChannel, TclpSpliceFileChannel):
4801 Implemented missing cut and splice procs for file channels.
4803 2003-02-21 Don Porter <dgp@users.sourceforge.net>
4805 * library/package.tcl (tclPkgUnknown): Minor performance tweaks to
4806 reduce the number of [file] invocations. Meant to improve startup
4807 times, at least a little bit. [Patch 687906]
4809 2003-02-20 Daniel Steffen <das@users.sourceforge.net>
4812 * unix/tclUnixPipe.c: (macosx) use vfork() instead of fork() to create
4813 new processes, as recommended by Apple (vfork can be up to 100 times
4814 faster thank fork on macosx).
4815 * unix/configure: regen.
4817 2003-02-20 Jeff Hobbs <jeffh@ActiveState.com>
4819 * generic/tclEncoding.c (LoadTableEncoding):
4820 * library/encoding/cp932.enc: Correct jis round-trip encoding
4821 * library/encoding/euc-jp.enc: by adding 'R' type to .enc files.
4822 * library/encoding/iso2022-jp.enc: [Patch 689341] (koboyasi, taguchi)
4823 * library/encoding/jis0208.enc:
4824 * library/encoding/shiftjis.enc:
4825 * tests/encoding.test:
4827 * unix/tclUnixChan.c (Tcl_MakeTcpClientChannel): add
4828 MakeTcpClientChannelMode that takes actual mode flags to avoid
4829 hang on OS X (may be OS X bug, but patch works x-plat).
4830 [Bug 689835] (steffen)
4832 2003-02-20 Donal K. Fellows <fellowsd@cs.man.ac.uk>
4834 * doc/regsub.n: Typo fix [Bug 688943]
4836 2003-02-19 Jeff Hobbs <jeffh@ActiveState.com>
4838 * unix/tclUnixThrd.c (TclpReaddir):
4839 * unix/tclUnixPort.h: update to Bug 689100 patch to ensure that
4840 there is a defined value of MAXNAMLEN (aka NAME_MAX in POSIX) and
4841 that we have some buffer allocated.
4843 2003-02-19 Daniel Steffen <das@users.sourceforge.net>
4845 * generic/tclStringObj.c: restored Tcl_SetObjLength() side-effect of
4846 always invalidating unicode rep (if the obj has a string rep). Added
4847 hasUnicode flag to String struct, allows decoupling of validity of
4848 unicode rep from buffer size allocated to it (improves memory
4849 allocation efficiency). [Bugs 686782, 671138, 635200]
4851 * macosx/Tcl.pbproj/project.pbxproj:
4852 * macosx/Makefile: reworked embedded build to no longer require
4853 relinking but to use install_name_tool instead to change the
4854 install_names for embedded frameworks. [Bug 644510]
4856 * macosx/Tcl.pbproj/project.pbxproj: preserve mod dates when running
4857 'make install' to build framework (avoids bogus rebuilds of dependent
4858 frameworks because tcl headers appear changed).
4860 * tests/ioCmd.test (iocmd-1.8): fix failure when system encoding is
4861 utf-8: use iso8859-1 encoding explicitly.
4863 2003-02-18 Miguel Sofer <msofer@users.sf.net>
4865 * generic/tclCompile.c (TclCompileExprWords): remove unused variable
4866 "range" [Bug 664743]
4867 * generic/tclExecute.c (ExprSrandFunc): remove unused variable
4868 "result" [Bug 664743]
4869 * generic/tclStringObj.c (UpdateStringOfString): remove unused
4870 variable "length" [Bug 664751]
4871 * tests/execute.test (execute-7.30): fix for [Bug 664775]
4873 2003-02-18 Andreas Kupries <andreask@activestate.com>
4875 * unix/tcl.m4: [Bug 651811] Added definition of _XOPEN_SOURCE and
4876 linkage of 'xnet' library to HP 11 branch. This kills a lot of
4877 socket-related failures in the testsuite when Tcl was compiled in 64
4878 bit mode (both PA-RISC 2.0W, and IA 64).
4880 * unix/configure: Regenerated.
4882 2003-02-18 Jeff Hobbs <jeffh@ActiveState.com>
4884 * generic/tclIO.c (HaveVersion): correctly decl static
4886 * unix/tclUnixThrd.c (TclpReaddir): reduce size of name string in
4887 tsd to NAME_MAX instead of PATH_MAX. [Bug 689100] (waters)
4889 2003-02-18 Mo DeJong <mdejong@users.sourceforge.net>
4891 * unix/configure: Regen.
4892 * unix/tcl.m4 (SC_ENABLE_THREADS): Make sure -lpthread gets passed on
4893 the link line when checking for the pthread_attr_setstacksize symbol.
4895 2003-02-18 Vince Darley <vincentdarley@users.sourceforge.net>
4897 * generic/tclTest.c: cleanup of new 'simplefs' test code, and better
4900 2003-02-17 Miguel Sofer <msofer@users.sf.net>
4902 * generic/tclBasic.c (TclRenameCommand): fixing error in previous
4905 2003-02-17 Jeff Hobbs <jeffh@ActiveState.com>
4907 * generic/tclExecute.c (TclExecuteByteCode INST_STR_MATCH):
4908 * generic/tclCmdMZ.c (Tcl_StringObjCmd STR_MATCH):
4909 * generic/tclUtf.c (TclUniCharMatch):
4910 * generic/tclInt.decls: add private TclUniCharMatch function that
4911 * generic/tclIntDecls.h: does string match on counted unicode
4912 * generic/tclStubInit.c: strings. Tcl_UniCharCaseMatch has the
4913 * tests/string.test: failing that it can't handle strings or
4914 * tests/stringComp.test: patterns with embedded NULLs. Added
4915 tests that actually try strings/pats with NULLs. TclUniCharMatch
4916 should be TIPed and made public in the next minor version rev.
4918 2003-02-17 Miguel Sofer <msofer@users.sf.net>
4920 * generic/tclBasic.c (TclRenameCommand): 'oldFullName' object was not
4921 being freed on all function exits, causing a memory leak. [Bug 684756]
4923 2003-02-17 Mo DeJong <mdejong@users.sourceforge.net>
4925 * generic/tclIO.c (Tcl_GetsObj): Minor change so that eol is only
4926 assigned at the top of the TCL_TRANSLATE_AUTO case block. The other
4927 cases assign eol so this does not change any functionality.
4929 2003-02-17 Kevin Kenny <kennykb@users.sourceforge.net>
4931 * tests/notify.test: Removed Windows line terminators. [Bug 687913].
4933 2003-02-15 Miguel Sofer <msofer@users.sf.net>
4935 * generic/tclBasic.c (Tcl_EvalEx):
4936 * generic/tclCompExpr.c (CompileSubExpr):
4937 * generic/tclCompile.c (TclCompileScript):
4938 * generic/tclParse.c (Tcl_ParseCommand, ParseTokens):
4939 * generic/tclParseExpr.c (ParsePrimaryExpr):
4940 * tests/basic.test (47.1):
4941 * tests/main.test (3.4):
4942 * tests/misc.test (1.2):
4943 * tests/parse.test (6.18):
4944 * tests/parseExpr.test (15.35):
4945 * tests/subst.test (8.6): Don Porter's fix for bad parsing of
4946 nested scripts [Bug 681841].
4948 2003-02-15 Kevin Kenny <kennykb@users.sourceforge.net>
4950 * tests/notify.test (new-file):
4951 * generic/tclTest.c (TclTest_Init, EventtestObjCmd, EventtestProc,
4952 (EventTestDeleteProc):
4953 * generic/tclNotify.c (Tcl_DeleteEvents): Fixed Tcl_DeleteEvents
4954 not to get a pointer smash when deleting the last event in the
4955 queue. Added test code in 'tcltest' and a new file of test cases
4956 'notify.test' to exercise this functionality; several of the new
4957 test cases fail for the original code and pass for the corrected
4960 * unix/tclUnixTest.c (TestfilehandlerCmd): Corrected a couple
4961 of typos in error messages. [Bug 596027]
4963 2003-02-14 Jeff Hobbs <jeffh@ActiveState.com>
4965 * README: Bumped to version 8.4.2.
4969 * unix/configure.in:
4972 * win/README.binary:
4975 * macosx/Tcl.pbproj/project.pbxproj:
4977 * generic/tclStringObj.c (Tcl_GetCharLength): perf tweak
4979 * unix/tcl.m4: correct HP-UX ia64 --enable-64bit build flags
4981 2003-02-14 Kevin Kenny <kennykb@users.sourceforge.net>
4983 * win/tclWinTime.c: Added code to test and compensate for forward
4984 leaps of the performance counter. See the MSDN Knowledge Base article
4985 Q274323 for the hardware problem that makes this necessary on certain
4987 * tests/winTime.test: Revised winTime-2.1 - it had a tolerance of
4988 thousands of seconds, rather than milliseconds. (What's six orders of
4989 magnitude among friends?
4991 Both the above changes are triggered by a problem reported at
4992 http://aspn.activestate.com/ASPN/Mail/Message/ActiveTcl/1536811
4993 although the developers find it difficult to believe that it accounts
4994 for the observed behavior and suspect a fault in the RTC chip.
4996 2003-02-13 Kevin Kenny <kennykb@users.sourceforge.net>
4998 * win/tclWinInit.c: Added conversion from the system encoding to
4999 tcl_platform(user), so that it works with non-ASCII7 user names. [Bug
5002 * doc/tclsh.1: Added language to describe the handling of the
5003 end-of-file character \u001a embedded in a script file. [Bug 685485]
5005 2003-02-11 Vince Darley <vincentdarley@users.sourceforge.net>
5007 * tests/fileName.test:
5008 * unix/tclUnixFile.c: fix for [Bug 685445] when using 'glob -l' on
5009 broken symbolic links. Added two new tests for this bug.
5011 2003-02-11 Kevin Kenny <kennykb@users.sourceforge.net>
5013 * tests/http.test: Corrected a problem where http-4.14 would fail when
5014 run in an environment with a proxy server. Replaced references to
5015 scriptics.com by tcl.tk.
5017 2003-02-11 Jeff Hobbs <jeffh@ActiveState.com>
5019 * tests/lsearch.test:
5020 * generic/tclCmdIL.c (Tcl_LsearchObjCmd): protect against the case
5021 that lsearch -regepx list and pattern objects are equal.
5023 * tests/stringObj.test:
5024 * generic/tclStringObj.c (Tcl_GetCharLength): correct ascii char
5025 opt of 2002-11-11 to not stop early on \x00. [Bug 684699]
5027 * tests.parse.test: remove excess EOF whitespace
5029 * generic/tclParse.c (CommandComplete): more paranoid check to
5030 break on (p >= end) instead of just (p == end).
5032 2003-02-11 Miguel Sofer <msofer@users.sf.net>
5034 * generic/tclParse.c (CommandComplete):
5035 * tests/parse.test: fix for [Bug 684744], by Don Porter.
5037 2003-02-11 Jeff Hobbs <jeffh@ActiveState.com>
5039 * generic/tclIOUtil.c (Tcl_FSJoinPath, Tcl_FSGetNormalizedPath):
5040 (UpdateStringOfFsPath): revert the cwdLen == 0 check and instead
5041 follow a different code path in Tcl_FSJoinPath.
5042 (Tcl_FSConvertToPathType, Tcl_FSGetNormalizedPath):
5043 (Tcl_FSGetFileSystemForPath): Update string rep of path objects
5044 before freeing the internal object. (darley)
5046 * tests/fileSystem.test: added test 8.3
5047 * generic/tclIOUtil.c (Tcl_FSGetNormalizedPath):
5048 (UpdateStringOfFsPath): handle the cwdLen == 0 case
5050 * unix/tclUnixFile.c (TclpMatchInDirectory): simplify the hidden
5053 2003-02-10 Mo DeJong <mdejong@users.sourceforge.net>
5056 * win/configure.in: Generate error when attempting to build under
5057 Cygwin. The Cygwin port of Tcl/Tk does not build and people are filing
5058 bug reports under the mistaken impression that someone is actually
5059 maintaining the Cygwin port. A post to comp.lang.tcl asking someone to
5060 volunteer as an area maintainer has generated no results. Closing
5061 [Bugs 680840, 630199, 634772] and marking as "Won't fix".
5063 2003-02-10 Donal K. Fellows <fellowsd@cs.man.ac.uk>
5065 * doc/append.n: Return value was not documented. [Bug 683188]
5067 2003-02-10 Vince Darley <vincentdarley@users.sourceforge.net>
5070 * generic/tclIOUtil.c:
5072 * tests/fileSystem.test:
5073 * unix/tclUnixFCmd.c:
5074 * unix/tclUnixFile.c:
5075 * win/tclWinFile.c: further filesystem optimization, applying
5076 [Patch 682500]. In particular, these code examples are faster now:
5077 foreach f $flist { if {[file exists $f]} {file stat $f arr;...}}
5078 foreach f [glob -dir $dir *] { # action and/or recursion on $f }
5080 foreach f [glob *] { # action and/or recursion on $f }
5083 * generic/tclTest.c: Fix for [Bug 683181] where test suite left files
5086 2003-02-08 Jeff Hobbs <jeffh@ActiveState.com>
5088 * library/safe.tcl: code cleanup of eval and string comp use.
5090 2003-02-07 Vince Darley <vincentdarley@users.sourceforge.net>
5092 * win/tclWinFCmd.c: cleanup long lines
5093 * win/tclWinFile.c: sped up pure 'glob' by a factor of 2.5 ('foreach f
5094 [glob *] { file exists $f }' is still slow)
5095 * tests/fileSystem.text:
5096 * tests/fileName.test: added new tests to ensure correct behaviour in
5097 optimized filesystem code.
5099 2003-02-07 Vince Darley <vincentdarley@users.sourceforge.net>
5101 * generic/tclTest.c:
5102 * tests/fileSystem.text: fixed test 7.2 to avoid a possible crash, and
5105 * tests/http.text: added comment to test 4.15, that it may fail if you
5108 2003-02-06 Mo DeJong <mdejong@users.sourceforge.net>
5110 * generic/tclCompCmds.c (TclCompileIncrCmd):
5111 * tests/incr.test: Don't include the text "(increment expression)" in
5112 the errorInfo generated by the compiled version of the incr command
5113 since it does not match the message generated by the non-compiled
5114 version of incr. It is also not possible to match this error output
5115 under Jacl, which does not support a compiler.
5117 2003-02-06 Mo DeJong <mdejong@users.sourceforge.net>
5119 * generic/tclExecute.c (TclExecuteByteCode): When an error is
5120 encountered reading the increment value during a compiled call to
5121 incr, add a "(reading increment)" error string to the errorInfo
5122 variable. This makes the errorInfo variable set by the compiled incr
5123 command match the value set by the non-compiled version.
5124 * tests/incr-old.test: Change errorInfo result for the compiled incr
5125 command case to match the modified implementation.
5126 * tests/incr.test: Add tests to make sure the compiled and
5127 non-compiled errorInfo messages are the same.
5129 2003-02-06 Don Porter <dgp@users.sourceforge.net>
5131 * library/tcltest/tcltest.tcl: Filename arguments to [outputChannel]
5132 and [errorChannel] (also -outfile and -errfile) were [open]ed but
5133 never [closed]. Also, [cleanupTests] could remove output or error
5134 files. [Bug 676978].
5135 * library/tcltest/pkgIndex.tcl: Bumped to version 2.2.2.
5137 2003-02-05 Mo DeJong <mdejong@users.sourceforge.net>
5139 * tests/interp.test:
5140 * tests/set-old.test: Run test cases that depend on hash order through
5141 lsort so that the tests also pass under Jacl. Does not change test
5144 2003-02-04 Vince Darley <vincentdarley@users.sourceforge.net>
5146 * generic/tclIOUtil.c:
5147 * generic/tclEvent.c:
5150 * unix/tclUnixFCmd.c:
5151 * win/tclWin32Dll.c:
5155 * tests/fileSystem.test: fix to finalization/unloading/encoding issues
5156 to make filesystem much less dependent on encodings for its cleanup,
5157 and therefore allow it to be finalized later in the exit process. This
5158 fixes fileSystem.test-7.1. Also fixed one more bug in setting of
5159 modification dates of files which have undergone cross-platform
5160 copies. [Patch 676271]
5164 * tests/fileName.test:
5165 * tests/io.test: fixed some test failures when tests are run from a
5166 directory containing spaces.
5168 * tests/fileSystem.test:
5169 * generic/tclTest.c: added regression test for the modification
5170 date setting of cross-platform file copies.
5172 2003-02-03 Kevin Kenny <kennykb@users.sourceforge.net>
5174 * generic/tclBasic.c: Changed [trace add command] so that 'rename'
5175 callbacks get fully qualified names of the command. [Bug 651271].
5176 ***POTENTIAL INCOMPATIBILITY***
5177 * tests/trace.test: Modified the test cases for [trace add command] to
5178 expect fully qualified names on the 'rename' callbacks. Added a case
5179 for renaming a proc within a namespace.
5180 * doc/trace.n: Added language about use of fully qualified names in
5183 2003-02-01 Kevin Kenny <kennykb@users.sourceforge.net>
5185 * generic/tclCompCmds.c: Removed an unused variable that caused
5186 compiler warnings on SGI. [Bug 664379]
5188 * generic/tclLoad.c: Changed the code so that if Tcl_StaticPackage is
5189 called to report the same package as being loaded in two interps, it
5190 shows up in [info loaded {}] in both of them (previously, it didn't
5191 appear in the static package list in the second.
5193 * tests/load.test Added regression test for the above bug. [Bug
5196 * generic/tclClock.c: Fixed a bug that incorrectly allowed [clock
5197 clicks {}] and [clock clicks -] to be accepted as if they were [clock
5198 clicks -milliseconds].
5200 * tests/clock.test: Added regression tests for the above bug. [Bug
5203 * tests/unixNotfy.test: Added cleanup of working files [Bug 675609]
5205 * doc/Tcl.n: Added headings to the eleven paragraphs, to improve
5206 formatting in the tools that attempt to extract tables of contents
5207 from the manual pages. [Bug 627455]
5209 * generic/tclClock.c: Expanded mutex protection around the setting of
5210 env(TZ) and the thread-unsafe call to tzset(). [Bug 656660]
5212 2003-01-31 Don Porter <dgp@users.sourceforge.net>
5214 * tests/tcltest.test: Cleaned up management of file/directory
5215 creation/deletion to improve "-debug 1" output. [Bug 675614] The
5216 utility [slave] command failed to properly [list]-quote a constructed
5217 [open] command, causing failure when the pathname contained
5218 whitespace. [Bug 678415]
5220 * tests/main.test: Stopped main.test from deleting existing file.
5221 Test suite should not delete files that already exist. [Bug 675660]
5223 2003-01-28 Don Porter <dgp@users.sourceforge.net>
5225 * tests/main.test: Constrain tests that do not work on Windows. [Bug
5228 2003-01-28 Vince Darley <vincentdarley@users.sourceforge.net>
5230 * generic/tclIOUtil.c: fix to setting modification date in
5231 TclCrossFilesystemCopy. Also added 'panic' in
5232 Tcl_FSGetFileSystemForPath under illegal calling circumstances which
5233 lead to hard-to-track-down bugs.
5235 * generic/tclTest.c: added test suite code to allow exercising a
5236 vfs-crash-on-exit bug in Tcl's finalization caused by the encodings
5237 being cleaned up before unloading occurs.
5238 * tests/fileSystem.test: added new 'knownBug' test 7.1 to demonstrate
5241 2003-01-28 Mo DeJong <mdejong@users.sourceforge.net>
5243 * generic/tcl.h: Add TCL_PREFIX_IDENT and TCL_DEBUG_IDENT, used only
5244 by TclpCreateProcess.
5245 * unix/Makefile.in: Define TCL_DBGX.
5246 * win/Makefile.in: Define TCL_DBGX.
5247 * win/tclWinPipe.c (TclpCreateProcess): Check that the Tcl pipe dll
5248 actually exists in the Tcl bin directory and panic if it is not
5249 found. Incorporate TCL_DBGX into the Tcl pipe dll name. This fixes a
5250 really mysterious error that would show up when exec'ing a 16 bit
5251 application under Win95 or Win98 when Tcl was compiled with symbols.
5252 The error seemed to indicate that the executable could not be found,
5253 but it was actually the Tcl pipe dll that could not be found.
5255 2003-01-26 Mo DeJong <mdejong@users.sourceforge.net>
5257 * win/README: Update msys+mingw URL to release 6. This version bundles
5260 2003-01-26 Mo DeJong <mdejong@users.sourceforge.net>
5262 * win/configure: Regen.
5263 * win/configure.in: Add test that checks to see if the compiler can
5264 cast to a union type.
5265 * win/tclWinTime.c: Squelch compiler warning about union initializer
5266 by casting to union type when compiling with gcc.
5268 2003-01-25 Mo DeJong <mdejong@users.sourceforge.net>
5270 * generic/tclIO.c (Tcl_CutChannel, Tcl_SpliceChannel): Invoke
5271 TclpCutFileChannel and TclpSpliceFileChannel.
5272 * generic/tclInt.h: Declare TclpCutFileChannel and
5273 TclpSpliceFileChannel.
5274 * unix/tclUnixChan.c (FileCloseProc, TclpOpenFileChannel,
5275 (Tcl_MakeFileChannel, TclpCutFileChannel,
5276 (TclpSpliceFileChannel): Implement thread load data cut and splice for
5277 file channels. This avoids an invalid memory ref when compiled with
5279 * win/tclWinChan.c (FileCloseProc, TclpCutFileChannel,
5280 (TclpSpliceFileChannel): Implement thread load data cut and splice for
5281 file channels. This avoids an invalid memory ref that was showing up
5282 in the thread extension.
5284 2003-01-25 Mo DeJong <mdejong@users.sourceforge.net>
5286 * win/tclWin32Dll.c (TclpCheckStackSpace, squelch_warnings):
5287 * win/tclWinChan.c (Tcl_MakeFileChannel, squelch_warnings):
5288 * win/tclWinFCmd.c (DoRenameFile, DoCopyFile, squelch_warnings):
5289 Re-implement inline ASM SEH handlers for gcc. The esp and ebp
5290 registers are now saved on the stack instead of in global variables so
5291 that the code is thread safe. Add additional checks when TCL_MEM_DEBUG
5292 is defined to be sure the values were recovered from the stack
5293 properly. Remove squelch_warnings functions and add a dummy call in
5294 the handler methods to squelch compiler warnings.
5296 2003-01-25 Mo DeJong <mdejong@users.sourceforge.net>
5299 * win/configure.in: Define HAVE_ALLOCA_GCC_INLINE when we detect that
5300 no alloca function is found in malloc.h and we are compiling with
5301 GCC. Remove HAVE_NO_ALLOC_DECL define.
5302 * win/tclWin32Dll.c (TclpCheckStackSpace): Don't define alloca as a
5303 cdecl function. Doing this caused a tricky runtime bug because the
5304 _alloca function expects the size argument to be passed in a register
5305 and not on the stack. To fix this problem, we use inline ASM when
5306 compiling with gcc to invoke _alloca with the size argument loaded
5309 2003-01-24 Jeff Hobbs <jeffh@ActiveState.com>
5311 * win/tclWinDde.c (Dde_Init): clarified use of tsdPtr.
5312 (DdeServerProc): better refcount handling of returnPackagePtr.
5314 * generic/tclEvent.c (Tcl_Finalize): revert finalize change on
5315 2002-12-04 to correct the issue with extensions that have TSD needing
5316 to finalize that before they are unloaded. This issue needs further
5319 * tests/unixFCmd.test: only do groups check on unix
5321 2003-01-24 Vince Darley <vincentdarley@users.sourceforge.net>
5323 * generic/tclStringObj.c: proper fixes for Tcl_SetObjLength and
5324 Tcl_AttemptSetObjectLength dealing with string objects with both
5325 pure-unicode and normal internal representations. Previous fix didn't
5326 handle all cases correctly.
5327 * generic/tclIO.c: Add 'Tcl_GetString()' to ensure the object has a
5328 valid 'objPtr->bytes' field before manipulating it directly.
5330 This fixes [Bug 635200] and [Bug 671138], but may reduce performance
5331 of Unicode string handling in some cases. A further patch will be
5332 applied to address this, once the code is known to be correct.
5334 2003-01-24 Mo DeJong <mdejong@users.sourceforge.net>
5336 * win/configure: Regen.
5337 * win/configure.in: Add test to see if alloca is undefined in
5339 * win/tclWin32Dll.c (TclpCheckStackSpace): Rework the SEH exception
5340 handler logic to avoid using the stack since alloca will modify the
5341 stack. This was causing a nasty bug that would set the exception
5342 handler to 0 because it tried to pop the previous exception handler
5343 off the top of the stack.
5345 2003-01-23 Donal K. Fellows <fellowsd@cs.man.ac.uk>
5347 * doc/lset.n: Fixed fault in return values from lset in documentation
5348 examples [Bug 658463] and tidied up a bit at the same time.
5350 2003-01-21 Joe English <jenglish@users.sourceforge.net>
5351 * doc/namespace.n (namespace inscope): Clarified documentation
5354 2003-01-21 Mo DeJong <mdejong@users.sourceforge.net>
5356 * win/configure: Regen.
5357 * win/tcl.m4 (SC_CONFIG_CFLAGS): Set SHLIB_SUFFIX so that
5358 TCL_SHLIB_SUFFIX will be set to a useful value in the generated
5359 tclConfig.sh. Set SHLIB_LD_LIBS to "" or '${LIBS}' based on the
5360 --enable-shared flag. This matches the UNIX implementation.
5362 2003-01-18 Jeff Hobbs <jeffh@ActiveState.com>
5364 * generic/tclCkalloc.c: change %ud to %u as appropriate.
5366 2003-01-17 Mo DeJong <mdejong@users.sourceforge.net>
5368 * win/tclWinDde.c (DdeServerProc): Deallocate the Tcl_Obj returned by
5369 ExecuteRemoteObject if it was not saved in a connection object.
5371 2003-01-17 Mo DeJong <mdejong@users.sourceforge.net>
5373 * generic/tcl.h: Revert earlier change that defined TCL_WIDE_INT_TYPE
5374 as long long and TCL_LL_MODIFIER as L when compiling with mingw. This
5375 change ended up causing some test case failures when compiling with
5377 * generic/tclObj.c (UpdateStringOfWideInt): Describe the warning
5378 generated by mingw and why it needs to be ignored so that someone is
5379 not tempted to "fix" this problem again in the future.
5381 2003-01-16 Vince Darley <vincentdarley@users.sourceforge.net>
5383 * generic/tclStringObj.c: Tcl_SetObjLength fix for when the object has
5384 a unicode string rep. Fixes [Bug 635200]
5385 * tests/stringObj.test: removed 'knownBug' constraint from test 14.1
5386 now that this bug is fixed.
5389 * generic/tclBasic.c:
5390 * generic/tclCmdMZ.z:
5391 * tests/trace.test: execution and command tracing bug fixes and
5392 cleanup. In particular fixed [Bugs 655645, 615043, 571385]
5393 - fixed some subtle cleanup problems with tracing. This required
5394 replacing Tcl_Preserve/Tcl_Release with a more robust refCount
5395 approach. Solves at least one known crash caused by memory
5397 - fixed some confusion in the code between new style traces (Tcl
5398 8.4) and the very limited 'Tcl_CreateTrace' which existed before.
5399 - made behaviour consistent with documentation (several tests even
5400 contradicted the documentation before).
5401 - fixed some minor error message details
5402 - added a number of new tests
5404 2003-01-16 Jeff Hobbs <jeffh@ActiveState.com>
5406 * win/tclWinSerial.c (SerialOutputProc): add casts for bytesWritten to
5407 allow strict compilation (no warnings).
5409 * tests/winDde.test:
5410 * win/tclWinDde.c (Tcl_DdeObjCmd): Prevent crash when empty service
5411 name is passed to 'dde eval' and goto errorNoResult in request and
5412 poke error cases to free up any allocated data.
5414 2003-01-16 Mo DeJong <mdejong@users.sourceforge.net>
5416 * win/tclWin32Dll.c (squelch_warnings): Squelch compiler warnings from
5418 * win/tclWinChan.c (squelch_warnings): Squelch compiler warnings from
5420 * win/tclWinDde.c: Add casts to avoid compiler warnings. Pass pointer
5421 to DWORD instead of int to avoid compiler warnings.
5422 * win/tclWinFCmd.c (squelch_warnings): Add casts and fixup decls to
5423 avoid compiler warnings. Squelch compiler warnings from SEH ASM code.
5424 * win/tclWinFile.c: Add casts and fixup decls to avoid compiler
5425 warnings. Remove unused variable.
5426 * win/tclWinNotify.c: Declare as DWORD instead of int to avoid
5428 * win/tclWinReg.c: Add casts to avoid compiler warning. Fix assignment
5429 in if expression bug.
5430 * win/tclWinSerial.c: Add casts to avoid compiler warnings. Remove
5432 * win/tclWinSock.c: Add casts and fixup decls to avoid compiler
5435 2003-01-14 Jeff Hobbs <jeffh@ActiveState.com>
5437 * generic/tclClock.c (FormatClock): corrected typo that incorrectly
5438 conditionally defined savedTZEnv and savedTimeZone.
5440 2003-01-13 Mo DeJong <mdejong@users.sourceforge.net>
5442 Fix mingw build problems and compiler warnings.
5444 * generic/tcl.h: Add if defined(__MINGW32__) check to code that sets
5445 the TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER.
5446 * generic/tclClock.c (FormatClock): Don't define savedTimeZone and
5447 savedTZEnv if we are not going to use them.
5448 * generic/tclEnv.c: Add cast to avoid warning.
5449 * win/tclWinChan.c: Use DWORD instead of int to avoid compiler warning
5450 * win/tclWinThrd.c: Only define allocLock, allocLockPtr, and dataKey
5451 when TCL_THREADS is defined. This avoid a compiler warning about
5454 2003-01-12 Mo DeJong <mdejong@users.sourceforge.net>
5456 * win/README: Update msys + mingw URL, the new release includes the
5457 released 1.0.8 version of msys which includes a number of bug fixes.
5459 2003-01-12 Mo DeJong <mdejong@users.sourceforge.net>
5461 * win/configure: Regen.
5462 * win/tcl.m4 (SC_CONFIG_CFLAGS): Pull in addition of shell32.lib to
5463 LIBS_GUI that was added to the Tk tcl.m4 but never made it back into
5466 2003-01-12 Mo DeJong <mdejong@users.sourceforge.net>
5468 * generic/tcl.h: Skip Tcl's define of CHAR, SHORT, and LONG when
5469 HAVE_WINNT_IGNORE_VOID is defined. This avoids a bunch of compiler
5470 warnings when building with Cygwin or Mingw.
5471 * win/configure: Regen.
5472 * win/configure.in: Define HAVE_WINNT_IGNORE_VOID when we detect a
5473 winnt.h that still defines CHAR, SHORT, and LONG when VOID has already
5475 * win/tcl.m4 (SC_LOAD_TCLCONFIG): Subst the TCL_DEFS loaded from
5476 tclConfig.sh so that Tcl defines can make it into the Tk Makefile.
5478 2003-01-12 Mo DeJong <mdejong@users.sourceforge.net>
5480 * win/configure: Regen.
5481 * win/configure.in: Check for typedefs like LPFN_ACCEPT in winsock2.h
5482 and define HAVE_NO_LPFN_DECLS if not found.
5483 * win/tclWinSock.c: Define LPFN_* typedefs if HAVE_NO_LPFN_DECLS is
5484 defined. This fixes the build under Mingw and Cygwin, it was broken by
5485 the changes made on 2002-11-26.
5487 2003-01-10 Vince Darley <vincentdarley@users.sourceforge.net>
5489 * generic/tclIOUtil.c:
5491 * win/tclWinInit.c: fix to new WinTcl crash on exit with vfs,
5492 introduced on 2002-12-06. Encodings must be cleaned up after the
5495 * win/makefile.vc: fix to minor VC++ 5.2 syntax problem
5497 2003-01-09 Don Porter <dgp@users.sourceforge.net>
5499 * generic/tclCompCmds.c (TclCompilerReturnCmd): Corrected off-by-one
5500 problem with recent commit. [Bug 633204]
5502 2003-01-09 Vince Darley <vincentdarley@users.sourceforge.net>
5504 * generic/tclFileName.c: remove unused variable 'macSpecialCase' [Bug
5507 * generic/tclIOUtil.c:
5509 * unix/tclUnixFile.c:
5513 * win/tclWin32Dll.c:
5514 * tests/cmdAH.test: fix to non-ascii chars in paths when setting mtime
5515 and atime through 'file (a|m)time $path $time'. [Bug 634151]
5517 2003-01-08 Don Porter <dgp@users.sourceforge.net>
5519 * generic/tclExecute.c (TclExprFloatError): Use the IS_NAN macro for
5520 greater clarity of code.
5522 2003-01-07 Don Porter <dgp@users.sourceforge.net>
5524 * generic/tclCompCmds.c (TclCompileReturnCmd):
5525 * tests/compile.test: Corrects failure of bytecompiled [catch
5526 {return}] to have result TCL_RETURN (not TCL_OK) [Bug 633204]. This
5527 patch is a workaround for 8.4.X. A new opcode INST_RETURN is a better
5528 long term solution for 8.5 and later.
5530 2003-01-04 David Gravereaux <davygrvy@pobox.com>
5533 * win/rules.vc: Fixed INSTALLDIR macro problem that blanked itself by
5534 accident causing the install target to put the tree at the root of the
5535 drive built on. Whoops..
5537 Renamed the 'linkexten' option to be 'staticpkg'. Added 'thrdalloc' to
5538 allow the switching _on_ of the thread allocator. Under testing, I
5539 found it not to be benificial under windows for the purpose of the
5540 application I was using it for. It was more important for this app
5541 that resources for tcl threads be returned to the system rather than
5542 saved/moved to the global recycler. Be extra clean or extra fast for
5543 the default threaded build? Let's move to clean and allow it to be
5544 switched on for users who find it benificial for their use of threads.
5546 2002-12-18 David Gravereaux <davygrvy@pobox.com>
5548 * win/makefile.vc: some uses of xcopy swapped to the @$(CPY) macro.
5549 Reported by Joe Mistachkin <joe@mistachkin.com>.
5551 2002-12-17 Jeff Hobbs <jeffh@ActiveState.com>
5553 * generic/tclNotify.c (TclFinalizeNotifier, Tcl_SetServiceMode):
5554 (Tcl_ThreadAlert): Check that the stub functions are non-NULL before
5555 calling them. They could be set to NULL by Tcl_SetNotifier.
5557 2002-12-16 David Gravereaux <davygrvy@pobox.com>
5559 * generic/tclPipe.c (TclCleanupChildren):
5560 * tests/winPipe.test:
5561 * win/tclWinPipe.c (Tcl_WaitPid):
5562 * win/tclWinTest.c: Gave Tcl_WaitPid the ability to return a Win32
5563 exception code translated into a posix style SIG*. This allows [close]
5564 to report "CHILDKILLED" without the meaning getting lost in a
5565 truncated exit code. In TclCleanupChildren(), TclpGetPid() had to get
5566 moved to before Tcl_WaitPid() as the the handle is removed from the
5567 list taking away the ability to get the process id after the wait is
5568 done. This shouldn't effect the unix implimentaion unless waitpid is
5569 called with a pid of zero, meaning "any". I don't think it is..
5571 2002-12-13 Don Porter <dgp@users.sourceforge.net>
5573 * unix/configure.in: Updated configure of CVS snapshots to reflect
5574 * win/configure.in: the 8.4.1.1 patchlevel.
5576 * unix/configure: autoconf
5577 * win/configure autoconf
5579 2002-12-11 Don Porter <dgp@users.sourceforge.net>
5581 * generic/tclProc.c (ProcessProcResultCode): Fix failure to propagate
5582 negative return codes up the call stack. [Bug 647307]
5583 * tests/proc.test (proc-6.1): Test for Bug 647307
5585 * generic/tclParseExpr.c (TclParseInteger): Return 1 for the
5586 string "0x" (recognize leading "0" as an integer). [Bug 648441].
5587 * tests/parseExpr.test (parseExpr-19.1): Test for Bug 648441.
5589 2002-12-09 Jeff Hobbs <jeffh@ActiveState.com>
5591 * win/tclWinThrd.c (TclpMasterUnlock):
5592 * generic/tclThread.c (TclFinalizeThreadData): TclpMasterUnlock must
5593 exist and be called unconditional of TCL_THREADS. [Bug 651139]
5595 2002-12-08 David Gravereaux <davygrvy@pobox.com>
5597 * win/tclWinSock.c (SocketThreadExitHandler, InitSockets): Check that
5598 the tsdPtr is valid before dereferencing as we call it from the exit
5599 handler, too [Bug 650353]. Another WSAStartup() loaded version
5600 comparison byte swap issue fixed. Although 0x0101 byte swapped is
5601 still 0x0101, properly claiming which is major/minor is more correct.
5603 2002-12-06 Jeff Hobbs <jeffh@ActiveState.com>
5605 * generic/tclStubInit.c: regen
5606 * generic/tclIntPlatDecls.h: regen
5607 * generic/tclInt.decls: added TclWinResetInterface
5609 * win/tclWin32Dll.c (TclWinResetInterfaces):
5610 * win/tclWinInit.c (TclpSetInitialEncodings, WinEncodingsCleanup):
5611 add exit handler that resets the encoding information to a state where
5612 we can reuse Tcl. Following these changes, it is possible to reuse Tcl
5613 (following Tcl_FindExecutable or Tcl_CreateInterp) following a
5616 * generic/tclIOUtil.c (TclFinalizeFilesystem): reset statics to their
5617 original values on finalize to allow reuse of the library.
5619 2002-12-04 David Gravereaux <davygrvy@pobox.com>
5621 * win/tclWinPipe.c: reverted back to -r1.27 due to numerous test
5622 failures that need to be resolved first. The idea was good, but the
5625 2002-12-04 David Gravereaux <davygrvy@pobox.com>
5627 * win/tclWinPipe.c (Tcl_WaitPid): When a process exits with an
5628 exception, pass this notice on to the caller with a SIG* code rather
5629 than truncating the exit code and missing the meaning. This allows
5630 TclCleanupChildren() to report "CHILDKILLED".
5632 This has a different behavior than unix in that closing the read pipe
5633 to a process sends the SIGPIPE signal which is returned as a SIGPIPE
5634 exit status. On windows, we send the process a CTRL_BREAK_EVENT and
5635 get back a CONTROL_C_EXIT which is documented to mean a SIGINT which
5636 seems wrong as a system, but is the correct exit status.
5638 2002-12-04 Vince Darley <vincentdarley@users.sourceforge.net>
5640 * generic/tclIOUtil.c: fix to redirected 'load' in virtual filesystem
5641 for some Unix systems.
5643 * generic/tclEvent.c: the filesystem must be cleaned up before the
5644 encoding subsystem because it needs access to encodings. Fixes crash
5645 on exit observed in embedded applications.
5647 * generic/tclTestObj.c: patch omitted from previous change of
5650 2002-12-03 Jeff Hobbs <jeffh@ActiveState.com>
5652 * generic/tclStubLib.c (Tcl_InitStubs): prevent the cached check of
5653 tclStubsPtr to allow for repeated load/unload of the Tcl dll by
5654 hosting apps. [Bug 615304]
5656 2002-12-03 David Gravereaux <davygrvy@pobox.com>
5658 * win/tclAppInit.c (sigHandler): Protect from trying to close a NULL
5661 * win/tclWinPipe.c (PipeClose2Proc, TclpCreateProcess): Send a real
5662 Win32 signal (CTRL_C_EVENT) when the read channel is brought down to
5663 alert the child to close on its side. Start the process with
5664 CREATE_NEW_PROCESS_GROUP to allow the ability to send these signals.
5665 The following test case now brings down the child without the use of
5666 an external [kill] command.
5668 % set p [open "|[info name]" w+]
5672 % close $p <- now doesn't block in Tcl_WaitPid()
5675 * win/tclWinPipe.c (PipeClose2Proc): Changed CTRL_C_EVENT to
5676 CTRL_BREAK_EVENT as it can't be ignored by the child and proved to
5677 work on [open "|netstat 1" w+] where CTRL_C_EVENT didn't.
5679 2002-11-27 David Gravereaux <davygrvy@pobox.com>
5681 * win/tclWinPort.h: Don't turn off winsock prototypes! TclX didn't
5682 like it. Even though the core doesn't use the prototypes, do offer
5685 * win/tclWinSock.c: Removed shutdown() from the function table as it
5686 wasn't referenced anywhere and cleaned-up some casting that that
5689 * win/tclWinSock.c: WSAStartup() loaded version comparison error which
5690 resulted in 2.0 looking less than 1.1.
5692 * win/tclWinChan.c (Tcl_MakeFileChannel): return of DuplicateHandle()
5693 incorrectly used [Bug 618852].
5695 2002-11-26 Jeff Hobbs <jeffh@ActiveState.com>
5697 * generic/tclEncoding.c (TclFinalizeEncodingSubsystem): properly
5698 cleanup all encodings by using Tcl_FirstHashEntry in the while loop.
5700 * unix/Makefile.in (valgrind): add simple valgrind target
5702 * tests/exec.test: unset path var to allow singleproc testing
5704 * generic/tclInterp.c (AliasCreate): preserve/release interps to
5705 prevent possible FMR error in bad alias cases.
5707 2002-11-26 David Gravereaux <davygrvy@pobox.com>
5710 * win/tclWinSock.c: This patch does two things:
5712 1) Cleans-up the winsock typedefs by using the typedefs provided by
5713 winsock2.h. This has no effect on how winsock is initialized; just
5714 makes the source code easier to read. [Patch 561305, 561301]
5716 2) Revamps how the socket message handler thread is brought up and
5717 down to allow for cleaner exits without the use of TerminateThread().
5718 TerminateThread is evil. No attempt has been made to resolve [Bug
5719 593810] which may need a new channel driver version for adding a
5720 registering function within the transfered thread to init the handler
5721 thread. IOW, initialization of the TSD structure is getting bypassed
5722 through the thread extension's [thread::transfer] command.
5724 2002-11-26 David Gravereaux <davygrvy@pobox.com>
5726 * win/tclWinConsole.c:
5728 * win/tclWinSerial.c:
5731 * win/tclWinTime.c: General cleanup of all worker threads used by the
5732 channel drivers. Eliminates the normal case where the worker thread is
5733 terminated ('cept the winsock one). Instead, use kernel events to
5734 signal a clean exit. Only when the worker thread is blocked on an I/O
5735 call is the thread terminated. Essentially, this makes all other
5736 channel worker threads behave like the PipeReaderThread() function for
5737 it's cleaner exit behavior. This appears to fix [Bug 597924] but needs
5738 3rd party confirmation to close the issue.
5740 2002-11-26 Mo DeJong <mdejong@users.sourceforge.net>
5742 * win/README: Update msys build env URL. This release #4 build both
5743 tcl and tk without problems.
5745 2002-11-22 Jeff Hobbs <jeffh@ActiveState.com>
5747 * library/init.tcl: code cleanup to reduce use of
5748 * library/opt/optparse.tcl: string compare
5750 * tests/interp.test: interp-14.4
5751 * generic/tclInterp.c (TclPreventAliasLoop): prevent seg fault when
5752 creating an alias command over the interp name. [Bug 641195]
5754 2002-11-18 Jeff Hobbs <jeffh@ActiveState.com>
5756 * generic/tclUtil.c (SetEndOffsetFromAny): handle integer offset
5757 after the "end-" prefix.
5760 * generic/string.test:
5761 * generic/tclObj.c (SetIntFromAny, SetWideIntFromAny):
5762 * generic/tclGet.c (TclGetLong, Tcl_GetInt): simplify sign handling
5763 before calling strtoul(l). [Bug 634856]
5765 2002-11-18 David Gravereaux <davygrvy@pobox.com>
5767 * win/tclWinThrd.c (Tcl_CreateThread/TclpThreadExit): Fixed improper
5768 compiler macros that missed the VC++ compiler. This resulted in VC++
5769 builds using CreateThread()/ExitThread() in place of the proper
5770 _beginthreadex()/_endthreadex(). This was a large error and am
5771 surprised I missed seeing it earlier.
5773 2002-11-13 Jeff Hobbs <jeffh@ActiveState.com>
5775 * generic/regexpComp.test: added tests 22.*
5776 * generic/tclCompCmds.c (TclCompileRegexpCmd): add left and right
5777 anchoring (^ and $) recognition and check starting or ending .* to
5778 extend the number of REs that can be compiled to string match or
5781 2002-11-13 Vince Darley <vincentdarley@users.sourceforge.net>
5783 * generic/tclCmdMZ.c:
5784 * tests/trace.test: applied patch from Hemang Levana to fix [Bug
5785 615043] in execution traces with 'return -code error'.
5787 * generic/tclTestObj.c:
5788 * tests/stringObj.test: added 'knownBug' test for [Bug 635200]
5789 * generic/tclStringObj.c: corrected typos in comments
5791 * generic/tclFileName.c:
5792 * tests/fileName.test: applied patch for bug reported against tclvfs
5793 concerning handling of Windows serial ports like 'com1', 'lpt3' by the
5794 virtual filesystem code.
5796 * doc/RegExp.3: clarification of the 'extendMatch' return values.
5798 2002-11-11 Jeff Hobbs <jeffh@ActiveState.com>
5800 * generic/tclUtil.c (Tcl_Backslash): use TclUtfToUniChar.
5801 (Tcl_StringCaseMatch): use TclUtfToUniChar and add further
5802 optimizations for the one-byte/char case.
5804 * generic/tclUtf.c: make use of TclUtfToUniChar macro throughout the
5805 functions, and add extra optimization to Tcl_NumUtfChars for
5808 * generic/tclVar.c (DisposeTraceResult, CallVarTraces): add proper
5809 static declarations.
5811 * generic/tclStringObj.c (Tcl_GetCharLength): optimize for the ascii
5813 (Tcl_GetUniChar): remove unnecessary use of Tcl_UtfToUniChar.
5814 (FillUnicodeRep): Use TclUtfToUniChar.
5816 * generic/tclHash.c (HashStringKey): move string++ lower to save an
5819 * generic/tclExecute.c (TclExecuteByteCode): improve INST_STR_CMP to
5820 use memcmp in the one-byte/char case, also use direct index for
5821 INST_STR_INDEX in that case.
5823 * generic/tclEncoding.c (UtfToUtfProc, UtfToUnicodeProc):
5824 (TableFromUtfProc, EscapeFromUtfProc): Use TclUtfToUniChar.
5825 (UnicodeToUtfProc, TableToUtfProc): add 1-byte char optimizations
5826 for Tcl_UniCharToUtf call. These improve encoded channel conversion
5827 speeds by up to 20%.
5829 * tests/split.test: added 1-char string split tests
5830 * generic/tclCmdMZ.c (Tcl_SplitObjCmd): Use TclUtfToUniChar. Also
5831 added a special case for single-ascii-char splits.
5832 (Tcl_StringObjCmd): Use TclUtfToUniChar. For STR_RANGE, support
5833 getting ranges of ByteArrays (reverts change from 2000-05-26).
5834 (TraceExecutionProc) add proper static declaration.
5836 * generic/tclInt.h: add macro version of Tcl_UtfToUniChar
5837 (TclUtfToUniChar) that does the one-byte utf-char check without
5838 calling Tcl_UtfToUniChar, for use by the core. This brings notable
5839 speedups for primarily ascii string handling.
5841 * generic/tcl.h (TCL_PATCH_LEVEL): bump to 8.4.1.1 for patchlevel
5842 only. This interim number will only be reflected by [info patchlevel]
5844 2002-11-11 Kevin Kenny <kennykb@acm.org>
5846 * doc/Tcl.n: Corrected indentation of the new language. Oops.
5848 2002-11-10 Kevin Kenny <kennykb@acm.org>
5850 * doc/Tcl.n: Added language to the Endekalogue to make it clear that
5851 substitutions always take place from left to right. [Bug 635644]
5853 2002-11-06 Mo DeJong <mdejong@users.sourceforge.net>
5855 * changes: Note TclInExit TclInThreadExit changes.
5856 * generic/tclEvent.c (TclInExit, TclInThreadExit):
5857 Split out functionality of TclInExit to make it clear which one should
5858 be called in each situation.
5859 * generic/tclInt.decls: Declare TclInThreadExit.
5860 * generic/tclIntDecls.h: Regen.
5861 * generic/tclStubInit.c: Regen.
5862 * mac/tclMacChan.c (StdIOClose):
5863 * unix/tclUnixChan.c (FileCloseProc):
5864 * win/tclWinChan.c (FileCloseProc):
5865 * win/tclWinConsole.c (ConsoleCloseProc):
5866 * win/tclWinPipe.c (TclpCloseFile):
5867 * win/tclWinSerial.c (SerialCloseProc): Invoke the new TclInThreadExit
5868 method instead of TclInExit.
5870 2002-11-06 Mo DeJong <mdejong@users.sourceforge.net>
5872 * unix/configure: Regen.
5873 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Generate a fatal configure error if
5874 no ar program can be found on the path. [Bug 582039]
5875 * win/configure: Regen.
5876 * win/configure.in: Check that AR, RANLIB, and RC are found on the
5877 path when building with gcc.
5879 2002-11-03 David Gravereaux <davygrvy@pobox.com>
5881 * win/tclAppInit.c: Calls Registry_Init() and Dde_Init() when
5882 STATIC_BUILD and TCL_USE_STATIC_PACKAGES macros are set.
5885 * win/rules.vc: linkexten option now sets the TCL_USE_STATIC_PACKAGES
5886 macro which also adds the registry and dde object files to the link
5887 of the shell. [Patch 479697] Also factored some additional macros
5888 that will be helpful for extension authors. Version grepping of tcl.h
5889 will need to be added to complete this.
5891 * win/buildall.vc.bat: Added more descriptive commentary.
5893 2002-11-01 David Gravereaux <davygrvy@pobox.com>
5895 * win/tclWinReg.c: Changed the Tcl_PkgProvide() line to declare the
5896 registry extension at version 1.1 from 1.0.
5898 2002-10-31 Andreas Kupries <andreask@activestate.com>
5900 * library/word.tcl: Changed $tcl_platform to $::tcl_platform to avoid
5901 possible scope trouble.
5903 2002-10-29 Vince Darley <vincentdarley@users.sourceforge.net>
5906 * win/tclWin32Dll.c: added comments about certain NULL function
5907 pointers which will be filled in when Tcl_FindExecutable is called, so
5908 that users don't report invalid bugs on this topic. (No code changes
5911 2002-10-29 Daniel Steffen <das@users.sourceforge.net>
5913 * unix/tclLoadDyld.c (TclpFindSymbol): pass all dyld error messages
5914 upstream [Bug 627546].
5916 2002-10-28 Andreas Kupries <andreask@activestate.com>
5918 * library/dde/pkgIndex.tcl:
5919 * library/reg/pkgIndex.tcl: Changed the hardwired debug suffix (d) to
5920 the correct suffix (g).
5922 2002-10-28 Don Porter <dgp@users.sourceforge.net>
5924 * library/auto.tcl: Converted the Mac-specific [package unknown]
5925 * library/init.tcl: behavior to use a chaining mechanism to extend
5926 * library/package.tcl: the default [tclPkgUnknown]. [Bug 627660]
5927 * library/tclIndex: [Patch 624509] (steffen)
5929 2002-10-26 David Gravereaux <davygrvy@pobox.com>
5931 * win/makefile.vc: xcopy on NT 4.0 doesn't support the /Y switch
5932 (overwrite). Added logic to handle this. [Bug 618019]
5934 2002-10-23 Donal K. Fellows <fellowsd@cs.man.ac.uk>
5936 * generic/tclInt.h: Removed definitions of obsolete HistoryEvent and
5937 HistoryRev structures (the history mechanism has been written in Tcl
5940 2002-10-22 Jeff Hobbs <jeffh@ActiveState.com>
5942 *** 8.4.1 TAGGED FOR RELEASE ***
5944 * changes: updated for 8.4.1 release
5946 * win/Makefile.in: removed @MEM_DEBUG_FLAGS@ subst.
5947 * win/configure: regen
5948 * win/configure.in: removed SC_ENABLE_MEMDEBUG call
5949 * win/tcl.m4: replaced SC_ENABLE_MEMDEBUG with a more intelligent
5950 SC_ENABLE_SYMBOLS that takes yes|no|mem|compile|all as options now.
5952 2002-10-22 Daniel Steffen <das@users.sourceforge.net>
5954 * library/auto.tcl (tcl_findLibrary):
5955 * library/package.tcl (tclPkgUnknown): on macosx, search inside the
5956 Resources/Scripts subdirectory of any potential package directory
5957 * macosx/Tcl.pbproj/project.pbxproj: add standard Frameworks dirs to
5958 TCL_PACKAGE_PATH make argument.
5959 * unix/tclUnixInit.c (TclpSetVariables): on macosx, add embedded
5960 framework dirs to tcl_pkgPath: @executable_path/../Frameworks and
5961 @executable_path/../PrivateFrameworks (if they exist), as well as the
5962 dirs in DYLD_FRAMEWORK_PATH (if set). [Patch 624509] use standard
5963 MAXPATHLEN instead of literal 1024
5965 2002-10-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
5967 * doc/StringObj.3, doc/Object.3: Documented that Tcl_Obj's
5968 standard string form is a modified UTF-8; apparently, this was not
5969 mentioned anywhere in the main docs, and lead to [Bug 624919].
5971 2002-10-21 Daniel Steffen <das@users.sourceforge.net>
5973 * macosx/Tcl.pbproj/project.pbxproj: bumped version to 8.4.1
5974 * generic/tcl.h: Added reminder comment to edit
5975 macosx/Tcl.pbproj/project.pbxproj when version number changes.
5977 2002-10-18 Jeff Hobbs <jeffh@ActiveState.com>
5979 * library/reg/pkgIndex.tcl:
5984 * win/makefile.bc: Updated to reg1.1
5986 * doc/registry.n: Added support for broadcasting changes to the
5987 * tests/registry.test: registry Environment. Noted proper code in ths
5988 * win/tclWinReg.c: docs. [Patch 625453]
5990 * unix/Makefile.in (dist): add any mac/tcl*.sea.hqx files
5992 2002-10-17 Don Porter <dgp@users.sourceforge.net>
5994 * generic/tclVar.c: Fixed code that check for proper # of args to
5995 * tests/var.test: [array names]. Added test. [Bug 624755]
5997 2002-10-16 Jeff Hobbs <jeffh@ActiveState.com>
5999 * win/configure: add workaround for cygwin windres
6000 * win/tcl.m4 (SC_CONFIG_CFLAGS): problem. [Patch 624010] (howell)
6002 2002-10-15 Jeff Hobbs <jeffh@ActiveState.com>
6004 * README: added archives.tcl.tk note
6007 * unix/tcl.m4: Correct AIX-5 ppc build flags. Correct HP 11 64-bit gcc
6008 building. [Patch 601051] (martin)
6010 2002-10-15 Vince Darley <vincentdarley@users.sourceforge.net>
6012 * generic/tclCmdMZ.c:
6013 * tests/trace.test: applied patch from Hemang Levana to fix [Bug
6014 615043] in execution traces with idle tasks firing.
6016 2002-10-14 Jeff Hobbs <jeffh@ActiveState.com>
6018 * generic/tclEnv.c (Tcl_PutEnv): correct possible mem leak.
6019 [Patch 623269] (brouwers)
6021 2002-10-11 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6023 * generic/tcl.h: Need a different strategy through the maze of
6024 #defines to let people building with Cygwin build correctly. Also
6025 made some comments less misleading...
6027 2002-10-10 Jeff Hobbs <jeffh@ActiveState.com>
6029 * README: fixed minor nits [Bug 607776] (virden)
6032 * win/tcl.m4: enable USE_THREAD_ALLOC (new threaded allocator) by
6033 default in cygwin configure on Windows.
6035 2002-10-10 Don Porter <dgp@users.sourceforge.net>
6037 * doc/Tcl.n: Clarified that namespace separators are legal in
6038 the variable names during $-subtitution. [Bug 615139]
6040 * doc/regexp.n: Typo correction. Thanks Ronnie Brunner. [Bug 606826]
6042 2002-10-10 Vince Darley <vincentdarley@users.sourceforge.net>
6044 * unix/tclLoadAout.c
6047 * unix/tclLoadDyld.c
6048 * unix/tclLoadNext.c
6051 * win/tclWinLoad.c: allow either full paths or simply dll names to be
6052 specified when loading files (the latter will be looked up by the OS
6053 on your PATH/LD_LIBRARY_PATH as appropriate). Fixes [Bug 611108]
6055 2002-10-09 Jeff Hobbs <jeffh@ActiveState.com>
6057 * unix/README: doc'ed --enable-symbols options.
6058 * unix/Makefile.in: removed @MEM_DEBUG_FLAGS@ subst.
6059 * unix/configure: regen
6060 * unix/configure.in: removed SC_ENABLE_MEMDEBUG call
6061 * unix/tcl.m4: replaced SC_ENABLE_MEMDEBUG with a more intelligent
6062 SC_ENABLE_SYMBOLS that takes yes|no|mem|compile|all as options now.
6064 2002-10-09 Kevin B. Kenny <kennykb@acm.org>
6066 * win/tclWinTime.c: Added code to set an exit handler that terminates
6067 the thread that calibrates the performance counter, so that the thread
6068 won't outlive unloading the Tcl DLL. [Bug 620735].
6070 2002-10-09 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6072 * doc/binary.n: More clarification of [binary scan]'s behaviour.
6074 2002-10-09 Daniel Steffen <das@users.sourceforge.net>
6076 * generic/tclIntDecls.h: fixed botched regen.
6078 2002-10-09 Daniel Steffen <das@users.sourceforge.net>
6080 * generic/tclInt.decls: made TclSetPreInitScript() declaration
6081 generic as it is used on mac & aqua as well.
6082 * generic/tclIntDecls.h:
6083 * generic/tclStubInit.c: regen.
6084 * generic/tclCompile.h: added prototype for TclCompileVariableCmd.
6086 * mac/tclMacPort.h: removed incorrect <fcntl.h> definitions and
6087 obsolete <stat.h> definitions.
6088 * mac/tclMacChan.c: removed obsolete GetOpenMode() and replaced
6089 associated constants with the <fcntl.h> analogues (they existing defs
6090 were inconsistent with <fcntl.h> which was causing havoc when
6091 Tcl_GetOpenMode was used instead of private GetOpenMode).
6093 * mac/tclMacFCmd.c: removed GenerateUniqueName(), use equivalent (and
6094 identically named) routine from MoreFiles instead.
6096 * mac/tclMacLoad.c: CONSTification, fixes to Vince's last changes.
6100 * mac/tclMacUnix.c: CONSTification.
6102 * mac/tclMacOSA.c: CONSTification, sprintf fixes, UH 3.4.x changes;
6103 fix for missing autoname token from TclOSACompileCmd. (bdesgraupes)
6104 * mac/AppleScript.html(AppleScript delete): doc fix. (bdesgraupes)
6106 * mac/tcltkMacBuildSupport.sea.hqx: updated MoreFiles to 1.5.3,
6107 updated build instructions for 8.4.
6108 * mac/tclMacProjects.sea.hqx: rebuilt archive.
6110 2002-10-09 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6112 * doc/Alloc.3: Added a note to mention that attempting to allocate a
6113 zero-length block can return NULL. [Tk Bug 619544]
6115 2002-10-04 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6117 * doc/binary.n: Doc improvements [Patch 616480]
6119 * tests/fCmd.test, tests/winFCmd.test:
6120 * tools/eolFix.tcl, tools/genStubs.tcl: [file exist] -> [file exists]
6121 Thanks to David Welton.
6123 2002-10-03 Don Porter <dgp@users.sourceforge.net>
6125 * doc/tcltest.n: fixed typo [Bug 618018]. Thanks to "JJM".
6127 2002-10-03 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6129 * tools/man2help2.tcl:
6130 * tests/http.test, tests/httpd, tests/httpold.test:
6131 * tests/env.test, tests/binary.test, tests/autoMkindex.test:
6132 * library/init.tcl, library/http/http.tcl: [info exist] should really
6133 be [info exists]. [Bug 602566]
6135 * doc/lsearch.n: Better specification of what happens when -sorted is
6136 mixed with other options. [Bug 617816]
6138 2002-10-01 Jeff Hobbs <jeffh@ActiveState.com>
6140 * generic/tclProc.c (TclCreateProc): mask out VAR_UNDEFINED for
6141 precompiled locals to support 8.3 precompiled code.
6142 (Tcl_ProcObjCmd): correct 2002-09-26 fix to look for tclProcBodyType.
6144 2002-10-01 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6146 * doc/socket.n: Mentioned that ports may be specified as serivce names
6147 as well as integers. [Bug 616843]
6149 2002-09-30 Jeff Hobbs <jeffh@ActiveState.com>
6151 * generic/tclCompCmds.c (TclCompileRegexpCmd): correct the checking
6152 for bad re's that didn't terminate the re string. Resultant compiles
6153 were correct, but much slower than necessary.
6155 2002-09-29 David Gravereaux <davygrvy@pobox.com>
6157 * win/tclAppInit.c: Added proper exiting conditions using Win32
6158 console signals. This handles the existing lack of a Ctrl+C exit to
6159 call exit handlers when built for thread support. Also, properly
6160 handles exits from other conditions such as CTRL_CLOSE_EVENT,
6161 CTRL_LOGOFF_EVENT, and CTRL_SHUTDOWN_EVENT signals. In all cases, exit
6162 handlers will be called. [Bug 219355]
6164 * win/makefile.vc: Added missing tclThreadAlloc.c to the build rules
6165 and defines USE_THREAD_ALLOC when TCL_THREADS is defined to get the
6166 new behavior by default.
6168 2002-09-27 Don Porter <dgp@users.sourceforge.net>
6170 * README: Bumped to version 8.4.1 to avoid confusion
6171 * generic/tcl.h: of CVS snapshots with the actual 8.4.0
6172 * tools/tcl.wse.in: release.
6173 * unix/configure.in:
6177 * unix/configure: autoconf
6180 2002-09-26 Jeff Hobbs <jeffh@ActiveState.com>
6182 * unix/configure: regen.
6183 * unix/tcl.m4: improve AIX-4/5 64bit compilation support.
6185 * generic/tclProc.c (Tcl_ProcObjCmd): correct overeager optimization
6186 of noop proc to handle the precompiled case. (sofer)
6188 * unix/ldAix (nmopts): add -X32_64 to make it work for 32 or 64bit
6191 * library/encoding/koi8-u.enc: removed extraneous spaces that confused
6192 encoding reader. [Bug 615115]
6194 * unix/Makefile.in: generate source dists with -src designator and do
6195 not generate .Z anymore (just .gz and .zip).
6197 2002-09-18 Mumit Khan <khan@nanotech.wisc.edu>
6199 Added basic Cygwin support.
6201 * win/tcl.m4 (SC_PATH_TCLCONFIG): Support one-tree build.
6202 (SC_PATH_TKCONFIG): Likewise.
6203 (SC_PROG_TCLSH): Likewise.
6204 (SC_CONFIG_CFLAGS): Assume real Cygwin port and remove -mno-cygwin
6205 flags. Add -mwin32 to extra_cflags and extra_ldflags. Remove ``-e
6206 _WinMain@16'' from LDFLAGS_WINDOW.
6207 * win/configure.in: Allow Cygwin build.
6208 (SEH test): Define to be 1 instead of empty value.
6209 (EXCEPTION_DISPOSITION): Add test.
6210 * win/configure: Regenerate.
6212 * generic/tcl.h: Don't explicitly define __WIN32__ for Cygwin, let the
6213 user decide whether to use Windows or POSIX personality.
6214 (TCL_WIDE_INT_TYPE, TCL_LL_MODIFIER, struct Tcl_StatBuf): Define for
6216 * generic/tclEnv.c (Tcl_CygwinPutenv): putenv replacement for Cygwin.
6217 * generic/tclFileName.c (Tcl_TranslateFileName): Convert POSIX to
6219 (TclDoGlob): Likewise.
6220 * generic/tclPlatDecls.h (TCHAR): Define for Cygwin.
6221 * win/tclWinPort.h (putenv, TclpSysAlloc, TclpSysFree)
6222 (TclpSysRealloc): Define for Cygwin.
6224 2002-09-26 Daniel Steffen <das@users.sourceforge.net>
6226 * macosx/Makefile: preserve environment value of INSTALL_ROOT. When
6227 embedding only use deployment build. Force relink before embedded
6228 build to ensure new linker flags are picked up.
6230 * macosx/Tcl.pbproj/project.pbxproj: add symbolic links to debug lib,
6231 stub libs and tclConfig.sh in framework toplevel. Configure target
6232 dependency fix. Fix to 'clean' action. Added private tcl headers to
6233 framework. Install tclsh symbolic link. Html doc build works when no
6234 installed tclsh available. Made html doc structure in framework more
6235 like in Apple frameworks.
6237 2002-09-24 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6239 * unix/tcl.m4 (SC_TCL_64BIT_FLAGS): Yet more robust 64-bit value
6240 detection to close [Bug 613117] on more systems.
6242 * generic/tclCompile.c (TclPrintSource): More CONSTifying.
6243 * generic/tclExecute.c (EvalStatsCmd): Object-ify to reduce warnings.
6244 Thanks to 'CoderX2' on the chat for bringing this to my attention...
6246 * unix/tcl.m4: Forgot to define TCL_WIDE_INT_IS_LONG at the
6247 appropriate moment. I believe this is the cause of [Bug 613117]
6249 * doc/lset.n: Changed 'list' to 'varName' for consistency with lappend
6250 documentation. Thanks to Glenn Jackman [Bug 611719]
6252 2002-09-22 Don Porter <dgp@users.sourceforge.net>
6254 * library/tcltest/tcltest.tcl: Corrected [puts -nonewline] within
6255 test bodies. Thanks to Harald Kirsch. [Bug 612786, Patch 612788] Also
6256 corrected reporting of body return code. Thanks to David Taback [Bug
6258 * library/tcltest/pkgIndex.tcl: Bump to version 2.2.1.
6259 * tests/tcltest.test: added tests for these bugs.
6261 2002-09-15 Mo DeJong <mdejong@users.sourceforge.net>
6263 * unix/configure: Regen.
6264 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Add PEEK_XCLOSEIM define under
6265 Linux. This is used by Tk to double check that an X input context is
6266 cleaned up before it is closed.
6268 2002-09-12 David Gravereaux <davygrvy@pobox.com>
6270 * win/coffbase.txt: Added BLT to the virtual base address listings
6271 table should BLT's build tools decide to use it.
6273 2002-09-12 Daniel Steffen <das@users.sourceforge.net>
6276 * mac/tclMacApplication.r:
6277 * mac/tclMacLibrary.r:
6278 * mac/tclMacResource.r: unified use of the two equivalent resource
6279 compiler header inclusion defines RC_INVOKED and RESOURCE_INCLUDED,
6280 now use RC_INVOKED throughout.
6282 2002-09-10 Mo DeJong <mdejong@users.sourceforge.net>
6284 * unix/README: Add note about building extensions with the same
6285 compiler Tcl was built with. [Tk Bug 592096]
6287 2002-09-10 Daniel Steffen <das@users.sourceforge.net>
6289 * macosx/Tcl.pbproj/project.pbxproj: disabled building html
6290 documentation during embedded build.
6292 2002-09-10 Daniel Steffen <das@users.sourceforge.net>
6294 * unix/Makefile.in: added DYLIB_INSTALL_DIR variable for macosx and
6295 set it to default value ${LIB_RUNTIME_DIR}
6296 * unix/tcl.m4 (Darwin): use DYLIB_INSTALL_DIR instead of
6297 LIB_RUNTIME_DIR in the -install_name argument to ld.
6298 * unix/configure: regen.
6300 * macosx/Tcl.pbproj/project.pbxproj:
6301 * macosx/Makefile: added support for building Tcl as an embedded
6302 framework, i.e. using an dyld install_name containing
6303 @executable_path/../Frameworks via the new DYLIB_INSTALL_DIR
6304 unix/Makefile variable.
6306 2002-09-10 Jeff Hobbs <jeffh@ActiveState.com>
6308 *** 8.4.0 TAGGED FOR RELEASE ***
6310 2002-09-06 Don Porter <dgp@users.sourceforge.net>
6312 * doc/file.n: Format correction, and clarified [file normalize]
6313 returns an absolute path.
6315 * doc/tcltest.n: Added examples section, as long promised.
6317 2002-09-06 Reinhard Max <max@suse.de>
6319 * tests/tcltest.test: Added nonRoot flag to tests 8.3, 8.4, and 8.12.
6321 2002-09-05 Don Porter <dgp@users.sourceforge.net>
6323 * doc/tcltest.n: Clarified phrasing.
6325 * generic/tclBasic.c (TclRenameCommand,CallCommandTraces):
6326 * tests/trace.test (trace-27.1): Corrected memory leak when a rename
6327 trace deleted the command being traced. Test added. Thanks to Hemang
6328 Lavana for the fix. [Bug 604609]
6330 * generic/tclVar.c (TclDeleteVars): Corrected logic for setting the
6331 TCL_INTERP_DESTROYED flag when calling variable traces. [Tk Bug 605121]
6333 2002-09-04 Miguel Sofer <msofer@users.sourceforge.net>
6335 * generic/tclVar.c (DeleteArray): leak plug [Bug 604239]. Thanks to
6336 dkf and dgp for the long and difficult discussion in the chat.
6338 2002-09-03 Jeff Hobbs <jeffh@ActiveState.com>
6340 * generic/tclVar.c (Tcl_UpVar2): code cleanup to not use goto
6342 * unix/configure: remove -pthread from LIBS on FreeBSD in thread
6343 * unix/tcl.m4: enabled build. [Bug 602849]
6345 2002-09-03 Miguel Sofer <msofer@users.sourceforge.net>
6347 * generic/tclInterp.c (AliasCreate): a Tcl_Obj was leaked on error
6348 return from TclPreventAliasLoop.
6350 2002-09-03 Daniel Steffen <das@users.sourceforge.net>
6352 * macosx/Tcl.pbproj/project.pbxproj: Bumped version number to 8.4.0
6353 and updated copyright info.
6355 2002-09-03 Miguel Sofer <msofer@users.sourceforge.net>
6357 * generic/tclVar.c (Tcl_UpVar2): a Tcl_Obj was being leaked on error
6358 return from TclGetFrame.
6360 2002-09-03 Don Porter <dgp@users.sourceforge.net>
6362 * changes: Updated changes for 8.4.0 release.
6364 2002-09-02 Jeff Hobbs <jeffh@ActiveState.com>
6366 * unix/tclUnixFile.c (TclpObjLink): removed unnecessary/unfreed
6369 * unix/tclUnixChan.c (Tcl_MakeTcpClientChannel): make sure to init
6370 flags field of TcpState ptr to 0.
6373 * unix/tcl.m4: added 64-bit gcc compilation support on HP-11.
6374 [Patch 601051] (martin)
6376 * README: Bumped version number to 8.4.0
6380 * unix/configure.in:
6382 * win/README.binary:
6386 * generic/tclInterp.c (SlaveCreate): make sure that the memory and
6387 checkmem commands are initialized in non-safe slave interpreters when
6388 TCL_MEM_DEBUG is used. [Bug 583445]
6390 * win/tclWinConsole.c (ConsoleCloseProc): only wait on writable pipe
6391 if there was something to write. This may prevent infinite wait on
6394 * tests/exec.test: marked exec-18.1 unixOnly until the Windows
6395 incompatability (in the test, not the core) can be resolved.
6397 * tests/http.test (http-3.11): added close $fp that was causing an
6398 error on Windows because the file was not closed before deleting.
6400 * unix/tclUnixInit.c (Tcl_MacOSXGetLibraryPath): made this static
6401 function only appear when HAVE_CFBUNDLE is defined.
6403 2002-08-31 Daniel Steffen <das@users.sourceforge.net>
6405 * unix/tcl.m4: added TK_SHLIB_LD_EXTRAS analogue of existing
6406 TCL_SHLIB_LD_EXTRAS for linker settings only used when linking Tk.
6408 * unix/configure: regen
6410 2002-08-31 Daniel Steffen <das@users.sourceforge.net>
6412 *** macosx-8-4-branch merged into the mainline [Patch 602770] ***
6414 * generic/tcl.decls: added new macosx specific entry to stubs table.
6416 * tools/genStubs.tcl: added generation of platform guards for macosx.
6417 This is a little more complex than it seems, because MacOS X IS "unix"
6418 plus a little bit, for the purposes of Tcl. BUT unfortunately, Tk uses
6419 "unix" to mean X11. So added platform keys for macosx (the little
6420 added to "unix"), "aqua" and "x11" to distinguish these for Tk.
6422 * generic/tcl.h: added a #ifnded RESOURCE_INCLUDED so that tcl.h can
6423 be passed to the resource compiler.
6426 * generic/tclNotify.c: added a few Notifier procs, to be able to
6427 modify more bits of the Tcl notifier dynamically. Required to get Mac
6428 OS X Tk to live on top of the Tcl Unix threaded notifier. Changes the
6429 size of the Tcl_NotifierProcs structure, but doesn't move any elements
6432 * unix/tclUnixNotfy.c: moved the call to Tcl_ConditionNotify till
6433 AFTER we are done mucking with the pointer swap. Fixes cases where the
6434 thread waiting on the condition wakes & accesses the waitingListPtr
6435 before it gets reset, causing a hang.
6437 * library/auto.tcl (tcl_findLibrary): added checking the directories
6438 in the tcl_pkgPath for library files on macosx to enable support of
6439 the standard Mac OSX library locations
6442 * unix/configure.in:
6443 * unix/tcl.m4: added MAC_OSX_DIR. Added PLAT_OBJS to the OBJS: there
6444 are some MacOS X specific files now for Tcl, and when I get he
6445 resource & applescript stuff ported over, and restore support for
6446 FindFiles, etc, there will be a few more. Added LD_LIBRARY_PATH_VAR
6447 configure variable to avoid having to set all possible LD_LIBRARY_PATH
6448 analogues on all platforms. LD_LIBRARY_PATH_VAR is "LD_LIBRARY_PATH"
6449 by default, "LIBPATH" on AIX, "SHLIB_PATH" on HPUX and
6450 "DYLD_LIBRARY_PATH" on Mac OSX. Added configure option to package Tcl
6451 as a framework on Mac OSX.
6453 * macosx/tclMacOSXBundle.c (new): support for finding Tcl extension
6454 packaged as 'bundles' in the standard Mac OSX library locations.
6456 * unix/tclUnixInit.c: added support for findig the tcl script library
6457 inside Tcl packaged as a framework on Mac OSX.
6459 * macosx/Tcl.pbproj/jingham.pbxuser (new):
6460 * macosx/Tcl.pbproj/project.pbxproj (new): project for Apple's
6463 * macosx/Makefile (new): simple makefile for building the project from
6464 the command line via the ProjectBuilder tool 'pbxbuild'.
6467 * generic/tclStubInit.c:
6468 * generic/tclPlatDecls.h: regen
6470 2002-08-29 Andreas Kupries <andreas_kupries@users.sourceforge.net>
6472 * win/tclWinThrd.c (TclpFinalizeThreadData, TclWinFreeAllocCache):
6473 Applied patch for [Bug 599428] (sofer)
6475 2002-08-28 David Gravereaux <davygrvy@pobox.com>
6478 * unix/configure.in:
6479 * win/tclWinPort.h: putenv() on some systems copies the buffer rather
6480 than taking reference to it. This causes memory leaks and is know to
6481 effect mswindows (msvcrt) and NetBSD 1.5.2. This patch tests for this
6482 behavior and turns on -DHAVE_PUTENV_THAT_COPIES=1 when approriate.
6483 Thanks to David Welton for assistance. [Bug 414910]
6485 * unix/configure: regen'd
6487 2002-08-28 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6489 * doc/eval.n: Added mention of list command and corrected "SEE ALSO".
6491 * unix/configure.in: Cache handling of ac_cv_type_socklen_t was wrong.
6492 [Bug 600931] reported by John Ellson. Fixed by putting the brackets
6495 2002-08-26 Miguel Sofer <msofer@users.sourceforge.net>
6497 * generic/tclCompCmds.c: fix for [Bug 599788] (error in element name
6498 causing segfault), reported by Tom Wilkason. Fixed by copying the
6499 tokens instead of the source string.
6501 2002-08-26 Miguel Sofer <msofer@users.sourceforge.net>
6503 * generic/tclThreadAlloc.c: small optimisation, reducing the new
6504 allocator's overhead.
6506 2002-08-23 Miguel Sofer <msofer@users.sourceforge.net>
6508 * generic/tclObj.c (USE_THREAD_ALLOC): fixed leak [Bug 597936]. Thanks
6509 to Zoran Vasiljevic.
6511 2002-08-23 Miguel Sofer <msofer@users.sourceforge.net>
6513 * generic/tclThreadAlloc.c (USE_THREAD_ALLOC): moving objects between
6514 caches as a block, instead of one-by-one.
6516 2002-08-22 Miguel Sofer <msofer@users.sourceforge.net>
6518 * generic/tclBasic.c:
6519 * generic/tclCmdMZ.c: fix for freed memory r/w in delete traces [Bug
6520 589863], patch by Hemang Lavana.
6522 2002-08-20 Andreas Kupries <andreas_kupries@users.sourceforge.net>
6524 * win/Makefile.in (CFLAGS):
6525 * unix/Makefile.in (MEM_DEBUG_FLAGS): Added usage of @MEM_DEBUG_FLAGS@.
6527 * unix/configure.in: Added usage of SC_ENABLE_MEMDEBUG.
6529 * unix/tcl.m4: Added macro SC_ENABLE_MEMDEBUG. Allows a user of
6530 configure to (de)activate memory validation and debugging
6531 (TCL_MEM_DEBUG). No need to modify the makefile anymore.
6533 2002-08-20 Don Porter <dgp@users.sourceforge.net>
6535 * generic/tclCkalloc.c: CONSTified MemoryCmd and CheckmemCmd.
6537 * README: Bumped version number to 8.4b3 to distinguish
6538 * generic/tcl.h: HEAD from the 8.4b2 release.
6540 * unix/configure.in:
6542 * win/README.binary:
6545 * unix/configure: autoconf
6548 * library/http/http.tcl: Corrected installation directory of
6549 * library/msgcat/msgcat.tcl: the package tcltest 2.2. Added
6550 * library/opt/optparse.tcl: comments in other packages to remind
6551 * library/tcltest/tcltest.tcl: that installation directories need
6552 * unix/Makefile.in: updates to match increasing version
6553 * win/Makefile.in: numbers. [Bug 597450]
6557 2002-08-19 Andreas Kupries <andreas_kupries@users.sourceforge.net>
6559 * unix/tclUnixTest.c (TestfilehandlerCmd): Changed
6560 readable/writable to the more common readable|writable.
6561 Fixes [Bug 596034] (lvirden)
6563 2002-08-16 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6565 * tests/fCmd.test: Added test to make sure that the cause of the
6566 problem is detectable with an unpatched Tcl.
6567 * doc/ObjectType.3: Added note on the root cause of this problem to
6568 the documentation, since it is possible for user code to trigger this
6569 sort of behaviour too.
6570 * generic/tclIOUtil.c (SetFsPathFromAny): Objects should only have
6571 their old representation deleted when we know that we are about to
6572 install a new one. This stops a weird TclX bug under Linux with
6573 certain kinds of memory debugging enabled which essentally came down
6574 to a double-free of a string.
6576 2002-08-14 Miguel Sofer <msofer@users.sourceforge.net>
6579 * generic/tclObj.c: (code cleanup) factored the parts in the macros
6580 TclNewObj() / TclDecrRefCount() into a common part for all memory
6581 allocators and two new macros TclAllocObjStorage() /
6582 TclFreeObjStorage() that are specific to each allocator and fully
6583 describe the differences. Removed allocator-specific code from
6584 tclObj.c by using the macros.
6586 2002-08-12 Miguel Sofer <msofer@users.sourceforge.net>
6588 * generic/tclCmdMZ.c: fixing UMR in delete traces, [Bug 589863].
6590 2002-08-08 David Gravereaux <davygrvy@pobox.com>
6592 * tools/man2help.tcl: Fixed $argv handling bug where if -bitmap wasn't
6593 specified $argc was off by one.
6595 2002-08-08 Miguel Sofer <msofer@users.sourceforge.net>
6597 * tests/uplevel.test: added 6.1 to test [uplevel] with shadowed
6598 commands [Bug 524383]
6600 * tests/subst.test: added 5.8-10 as further tests for [Bug 495207]
6602 2002-08-08 Don Porter <dgp@users.sourceforge.net>
6604 * tests/README: Noted removal of defs.tcl.
6606 2002-08-08 Jeff Hobbs <jeffh@ActiveState.com>
6608 * doc/lsearch.n: corrected lsearch docs to use -inline in examples.
6610 *** 8.4b2 TAGGED FOR RELEASE ***
6613 * tests/unixFCmd.test: updated tests for new link copy behavior.
6614 * generic/tclFCmd.c (CopyRenameOneFile): changed the behavior to
6615 follow links to endpoints and copy that file/directory instead of just
6616 copying the surface link. This means that trying to copy a link that
6617 has no endpoint (danling link) is an error. [Patch 591647] (darley)
6618 (CopyRenameOneFile): this is currently disabled by default until
6619 further issues with such behavior (like relative links) can be handled
6622 * tests/README: slight wording improvements
6624 2002-08-07 Miguel Sofer <msofer@users.sourceforge.net>
6626 * docs/BoolObj.3: added description of valid string reps for a boolean
6628 * generic/tclObj.c: optimised Tcl_GetBooleanFromObj and
6629 SetBooleanFromAny to avoid parsing the string rep when it can be
6630 avoided [Bugs 584650, 472576]
6632 2002-08-07 Miguel Sofer <msofer@users.sourceforge.net>
6634 * generic/tclCompile.h:
6635 * generic/tclObj.c: making tclCmdNameType static [Bug 584567] (dgp)
6637 2002-08-07 Miguel Sofer <msofer@users.sourceforge.net>
6639 * generic/tclObj.c (Tcl_NewObj): added conditional code for
6640 USE_THREAD_ALLOC; objects allocated through Tcl_NewObj() were
6641 otherwise being leaked. [Bug 587488] reported by Sven Sass.
6643 2002-08-06 Daniel Steffen <das@users.sourceforge.net>
6645 * generic/tclInt.decls:
6646 * unix/tclUnixThrd.c: Added stubs and implementations for non-threaded
6647 build for the tclUnixThrd.c procs TclpReaddir, TclpLocaltime,
6648 TclpGmtime and TclpInetNtoa. Fixes link errors in stubbed & threaded
6649 extensions that include tclUnixPort.h and use any of the procs
6650 readdir, localtime, gmtime or inet_ntoa (e.g. TclX 8.4) [Bug 589526]
6651 * generic/tclIntPlatDecls.h:
6652 * generic/tclStubInit.c: Regen.
6654 2002-08-05 Don Porter <dgp@users.sourceforge.net>
6656 * library/tcltest/tcltest.tcl: The setup and cleanup scripts are now
6657 * library/tcltest/pkgIndex.tcl: skipped when a test is skipped, fixing
6658 * tests/tcltest.test: [Bug 589859]. Test for bug added, and
6659 corrected tcltest package bumped to version 2.2.
6661 * generic/tcl.decls: Restored Tcl_Concat to return (char *). Like
6662 * generic/tclDecls.h: Tcl_Merge, it transfers ownership of a dynamic
6663 * generic/tclUtil.c: allocated string to the caller.
6665 2002-08-04 Don Porter <dgp@users.sourceforge.net>
6667 * doc/CmdCmplt.3: Applied Patch 585105 to fully CONST-ify
6668 * doc/Concat.3: all remaining public interfaces of Tcl.
6669 * doc/CrtCommand.3: Notably, the parser no longer writes on
6670 * doc/CrtSlave.3: the string it is parsing, so it is no
6671 * doc/CrtTrace.3: longer necessary for Tcl_Eval() to be
6672 * doc/Eval.3: given a writable string. Also, the
6673 * doc/ExprLong.3: refactoring of the Tcl_*Var* routines
6674 * doc/LinkVar.3: by Miguel Sofer is included, so that the
6675 * doc/ParseCmd.3: "part1" argument for them no longer needs
6676 * doc/SetVar.3: to be writable either.
6678 * doc/UpVar.3: Compatibility support has been enhanced so
6679 * generic/tcl.decls: that a #define of USE_NON_CONST will remove
6680 * generic/tcl.h: all possible source incompatibilities with
6681 * generic/tclBasic.c: the 8.3 version of the header file(s).
6682 * generic/tclCmdMZ.c: The new #define of USE_COMPAT_CONST now does
6683 * generic/tclCompCmds.c:what USE_NON_CONST used to do -- disable
6684 * generic/tclCompExpr.c:only those new CONST's that introduce
6685 * generic/tclCompile.c: irreconcilable incompatibilities.
6686 * generic/tclCompile.h:
6687 * generic/tclDecls.h: Several bugs are also fixed by this patch.
6688 * generic/tclEnv.c: [Bugs 584051,580433] [Patches 585105,582429]
6689 * generic/tclEvent.c:
6690 * generic/tclInt.decls:
6692 * generic/tclIntDecls.h:
6693 * generic/tclInterp.c:
6694 * generic/tclLink.c:
6696 * generic/tclParse.c:
6697 * generic/tclParseExpr.c:
6698 * generic/tclProc.c:
6699 * generic/tclTest.c:
6701 * generic/tclUtil.c:
6704 * tests/expr-old.test:
6705 * tests/parseExpr.test:
6706 * unix/tclUnixTest.c:
6710 2002-08-01 Miguel Sofer <msofer@users.sourceforge.net>
6712 * generic/tclExecute.c: bugfix (reading freed memory). Testsuite
6713 passed on linux/i386, compile-13.1 hung on linux/alpha.
6715 2002-08-01 Miguel Sofer <msofer@users.sourceforge.net>
6717 * generic/tclExecute.c: added a reference count for the complete
6718 execution stack, instead of Tcl_Preserve/Tcl_Release.
6720 2002-08-01 Mo DeJong <mdejong@users.sourceforge.net>
6722 * generic/tclCkalloc.c (TclFinalizeMemorySubsystem): Don't lock the
6723 ckalloc mutex before invoking the Tcl_DumpActiveMemory function since
6724 it also locks the same mutex. This code is only executed when "memory
6725 onexit filename" has been executed and Tcl is compiled with
6728 2002-08-01 Reinhard Max <max@suse.de>
6730 * win/tclWinPort.h: The windows headers don't provide socklen_t, so we
6733 2002-07-31 Miguel Sofer <msofer@users.sourceforge.net>
6735 * generic/tclInt.h (USE_THREAD_ALLOC): for unshared objects,
6736 TclDecrRefCount now frees the internal rep before the string rep -
6737 just like the non-macro Tcl_DecrRefCount/TclFreeObj [Bug 524802]. For
6738 the other allocators the fix was done on 2002-03-06.
6740 2002-07-31 Miguel Sofer <msofer@users.sourceforge.net>
6742 * generic/tclInterp.c: signed/unsigned comparison warning fixed
6745 2002-07-31 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6747 * unix/tcl.m4 (SC_BUGGY_STRTOD): Enabled caching of test results.
6749 * unix/tcl.m4 (SC_BUGGY_STRTOD): Solaris 2.8 still has a buggy
6750 strtod() implementation; make sure we detect it.
6752 * tests/expr.test (expr-22.*): Marked as non-portable because it seems
6753 that these tests have an annoying tendency to fail in unexpected ways.
6754 [Bugs 584825, 584950, 585986]
6756 2002-07-30 Andreas Kupries <andreas_kupries@users.sourceforge.net>
6759 * generic/tclIO.c (WriteChars): Added flag to break out of loop if
6760 nothing of the input is consumed at all, to prevent infinite looping
6761 of called with a non-UTF-8 string. Fixes [Bug 584603] partially.
6762 Added new test "io-60.1". Might need additional changes to Tcl_Main so
6763 that unprintable results are printed as binary data.
6765 2002-07-29 Mo DeJong <mdejong@users.sourceforge.net>
6767 * unix/Makefile.in: Use CC_SEARCH_FLAGS instead of LD_SEARCH_FLAGS
6768 when linking with ${CC}.
6769 * unix/configure: Regen.
6770 * unix/configure.in: Don't subst CC_SEARCH_FLAGS or LD_SEARCH_FLAGS
6771 since this is now done in tcl.m4.
6772 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Document and set CC_SEARCH_FLAGS
6773 whenever LD_SEARCH_FLAGS is set. [Patch 588290]
6775 2002-07-29 Reinhard Max <max@suse.de>
6777 * unix/tcl.m4 (SC_SERIAL_PORT): Fixed detection for cases when
6778 configure's stdin is not a tty.
6780 * unix/tclUnixPort.h:
6781 * generic/tclIOSock.c: Changed size_t to socklen_t in
6782 socket-related function calls.
6784 * unix/configure.in: Added test and fallback definition
6787 * unix/configure: generated.
6789 2002-07-29 Miguel Sofer <msofer@users.sourceforge.net>
6791 * generic/tclObj.c: fixed a comment
6794 * generic/tclBasic.c:
6795 * generic/tclInterp.c: added the new flag TCL_EVAL_INVOKE to the
6796 interface of the Tcl_Eval* functions, removing the
6797 TCL_EVAL_NO_TRACEBACK added yesterday: alias invocations not only
6798 require no tracebacks, but also look up the command name in the global
6799 scope - see new test interp-9.4
6800 * tests/interp.test: added 9.3 to test for safety of aliases to hidden
6801 commands, 9.4 to test for correct command lookup scope.
6803 2002-07-29 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6805 * generic/regc_locale.c (cclass): [[:xdigit:]] is only a defined
6806 concept on western characters, so should not allow any unicode digit,
6807 and hence number of ranges in [[:xdigit:]] is fixed.
6808 * tests/reg.test: Added test to detect the bug.
6809 * generic/regc_cvec.c (newcvec): Corrected initial size value in
6810 character vector structure. [Bug 578363] Many thanks to
6811 pvgoran@users.sf.net for tracking this down.
6813 2002-07-28 Miguel Sofer <msofer@users.sourceforge.net>
6816 * generic/tclBasic.c: added the new flag TCL_EVAL_NO_TRACEBACK to the
6817 interface of the Tcl_Eval* functions. Modified the error message for
6818 too many nested evaluations.
6819 * generic/tclInterp.h: changed the Alias struct to be of variable
6820 length and store the prefix arguments directly (instead of a pointer
6821 to a Tcl_Obj list). Made AliasObjCmd call Tcl_EvalObjv instead of
6822 TclObjInvoke - thus making aliases trigger execution traces. [Bug
6824 * tests/interp.test:
6825 * tests/stack.test: adapted to the new error message.
6826 * tests/trace.test: added tests for aliases firing the exec traces.
6828 2002-07-27 Mo DeJong <mdejong@users.sourceforge.net>
6830 * unix/Makefile.in: Revert fix for Tcl bug 529801 since it was
6831 incorrect and broke the build on other systems. Fix [Bug 587299]. Add
6832 MAJOR_VERSION, MINOR_VERSION, PATCH_LEVEL, SHLIB_LD_FLAGS,
6833 SHLIB_LD_LIBS, CC_SEARCH_FLAGS, LD_SEARCH_FLAGS, and LIB_FILE
6834 variables to support more generic library build/install rules.
6835 * unix/configure: Regen.
6836 * unix/configure.in: Move AC_PROG_RANLIB into tcl.m4. Move shared
6837 build test and setting of MAKE_LIB and MAKE_STUB_LIB into tcl.m4. Move
6838 subst of a number of variables into tcl.m4 where they are defined.
6839 * unix/tcl.m4 (SC_ENABLE_SYMBOLS, SC_CONFIG_CFLAGS):
6840 Subst vars where they are defined. Add MAKE_LIB, MAKE_STUB_LIB,
6841 INSTALL_LIB, and INSTALL_STUB_LIB rules to deal with the ugly details
6842 of running ranlib on static libs at build and install time. Replace
6843 TCL_SHLIB_LD_EXTRAS with SHLIB_LD_FLAGS and use it when building a
6845 * unix/tclConfig.sh.in: Add TCL_CC_SEARCH_FLAGS.
6847 2002-07-26 Miguel Sofer <msofer@users.sourceforge.net>
6849 * generic/tclExecute.c: fixed Tcl_Obj leak in code corresponding to
6850 the macro NEXT_INST_V(x, 0, 1). [Bug 587495]
6852 2002-07-26 Miguel Sofer <msofer@users.sourceforge.net>
6854 * generic/tclVar.c (TclObjLookupVar): leak fix and improved comments.
6856 2002-07-26 Jeff Hobbs <jeffh@ActiveState.com>
6858 * generic/tclVar.c (TclLookupVar): removed early returns that
6859 prevented the parens from being restored. also removed goto label as
6860 it was not necessary.
6862 2002-07-24 Miguel Sofer <msofer@users.sourceforge.net>
6864 * generic/tclExecute.c:
6865 * tests/expr-old.test: fix for erroneous error messages in [expr],
6866 [Bug 587140] reported by Martin Lemburg.
6868 2002-07-25 Joe English <jenglish@users.sourceforge.net>
6870 * generic/tclProc.c: fix for [Tk Bug 219218] "error handling with
6873 2002-07-24 Miguel Sofer <msofer@users.sourceforge.net>
6875 * generic/tclExecute.c: restoring full TCL_COMPILE_DEBUG
6878 2002-07-24 Don Porter <dgp@users.sourceforge.net>
6880 * tests/unixInit.test: relaxed unixInit-3.1 to accept iso8859-15 as a
6881 valid C encoding. [Bug 575336]
6883 2002-07-24 Miguel Sofer <msofer@users.sourceforge.net>
6885 * generic/tclExecute.c: restoring the tcl_traceCompile functionality
6886 while I repair tcl_traceExec. The core now compiles and runs also
6887 under TCL_COMPILE_DEBUG, but execution in the bytecode engine can
6888 still not be traced.
6890 2002-07-24 Daniel Steffen <das@users.sourceforge.net>
6893 * unix/configure.in: corrected fix for [Bug 529801]: ranlib only
6894 needed for static builds on Mac OS X.
6895 * unix/configure: Regen.
6896 * unix/tclLoadDyld.c: fixed small bugs introduced by Vince,
6897 implemented library unloading correctly (needs OS X 10.2).
6899 2002-07-23 Joe English <jenglish@users.sourceforge.net>
6901 * doc/OpenFileChnl.3: (Updates from Larry Virden)
6903 * doc/tclsh.1: Fix section numbers in Unix man page references.
6904 * doc/lset.n: In EXAMPLES section, include command to set the initial
6905 value used in subsequent examples.
6906 * doc/http.n: Package version updated to 2.4.
6908 2002-07-23 Mo DeJong <mdejong@users.sourceforge.net>
6910 * unix/configure: Regen.
6911 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Enable 64 bit compilation when using
6912 the native compiler on a 64 bit version of IRIX. [Bug 219220]
6914 2002-07-23 Mo DeJong <mdejong@users.sourceforge.net>
6916 * unix/Makefile.in: Combine ranlib tests and avoid printing unless
6917 ranlib is actually run.
6919 2002-07-23 Mo DeJong <mdejong@users.sourceforge.net>
6921 * unix/tcl.m4 (SC_PATH_X): Set XINCLUDES to "" instead of "# no
6922 special path needed" or "# no include files found" when x headers
6925 2002-07-22 Vince Darley <vincentdarley@users.sourceforge.net>
6927 * generic/tclIOUtil.c: made tclNativeFilesystem static (since 07-19
6928 changes removed its usage elsewhere), and added comments about its
6930 * generic/tclLoad.c:
6932 * generic/tcl.decls:
6933 * doc/FileSystem.3: converted last load-related ClientData parameter
6934 to Tcl_LoadHandle opaque structure, removing a couple of casts in the
6937 * generic/tclInt.h: removed tclNativeFilesystem declaration since it
6938 is now static again.
6940 2002-07-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6942 * tests/expr.test (expr-22.*): Added tests to help detect the
6944 * generic/tclExecute.c (IllegalExprOperandType): Improved error
6945 message generated when attempting to manipulate Inf and NaN values.
6946 * generic/tclParseExpr.c (GetLexeme): Allowed parser to recognise
6947 'Inf' as a floating-point number. [Bug 218000]
6949 2002-07-21 Don Porter <dgp@users.sourceforge.net>
6951 * tclIOUtil.c: Silence compiler warning. [Bug 584408].
6953 2002-07-19 Vince Darley <vincentdarley@users.sourceforge.net>
6955 * generic/tclIOUtil.c: fix to GetFilesystemRecord
6957 * unix/tclUnixFile.c: fix to subtle problem with links shown up by
6958 latest tclkit builds.
6960 2002-07-19 Mo DeJong <mdejong@users.sourceforge.net>
6963 * unix/configure.in:
6965 * win/configure.in: Add AC_PREREQ(2.13) in an attempt to make it more
6966 clear that the configure scripts must be generated with autoconf
6967 version 2.13. [Bug 583573]
6969 2002-07-19 Vince Darley <vincentdarley@users.sourceforge.net>
6971 * unix/Makefile.in: fix to build on MacOS X [Bug 529801], bug report
6974 2002-07-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
6976 * win/tclWinSerial.c (no_timeout): Made this variable static.
6978 * generic/tclExecute.c, generic/tclCompile.c, generic/tclBasic.c:
6979 * generic/tclCompile.h (builtinFuncTable, instructionTable): Added
6980 prefix to these symbols because they are visible outside the Tcl
6983 * generic/tclCompExpr.c (operatorTable):
6984 * unix/tclUnixTime.c (tmKey):
6985 * generic/tclIOUtil.c (theFilesystemEpoch, filesystemWantToModify,
6986 (filesystemIteratorsInProgress, filesystemOkToModify): Made these
6989 * unix/tclUnixFile.c: Renamed nativeFilesystem to
6990 * win/tclWinFile.c: tclNativeFilesystem and declared
6991 * generic/tclIOUtil.c: it properly in tclInt.h
6994 * generic/tclUtf.c (totalBytes): Made this array static and const.
6996 * generic/tclParse.c (typeTable): Made this array static and const.
6997 (Tcl_ParseBraces): Simplified error handling case so that scans are
6998 only performed when needed, and flags are simpler too.
7000 * license.terms: Added AS to list of copyright holders; it's only fair
7001 for the current gatekeepers to be listed here!
7003 * tests/cmdMZ.test: Renamed constraint for clarity. [Bug 583427]
7004 Added tests for the [time] command, which was previously only
7007 2002-07-18 Vince Darley <vincentdarley@users.sourceforge.net>
7011 * */*Load*.c: added comments on changes of 07/17 and replaced
7012 clientData with Tcl_LoadHandle in all locations.
7014 * generic/tclFCmd.c:
7015 * tests/fileSystem.test: fixed a 'knownBug' with 'file
7017 * tests/winFCmd.test:
7018 * tests/winPipe.test:
7020 * tessts/winFile.test: added 'pcOnly' constraint to some tests to make
7021 for more useful 'tests skipped' log from running all tests on
7022 non-Windows platforms.
7024 2002-07-17 Miguel Sofer <msofer@users.sourceforge.net>
7026 * generic/tclBasic.c (CallCommandTraces): delete traces now receive
7027 the FQ old name of the command. [Bug 582532] (Don Porter)
7029 2002-07-18 Vince Darley <vincentdarley@users.sourceforge.net>
7031 * tests/ioUtil.test: added constraints to 1.4,2.4 so they don't run
7032 outside of tcltest. [Bugs 583276,583277]
7034 2002-07-17 Miguel Sofer <msofer@users.sourceforge.net>
7036 * generic/tclVar.c (DupParsedVarName): nasty bug fixed, reported by
7039 2002-07-17 Miguel Sofer <msofer@users.sourceforge.net>
7041 * generic/tclVar.c (TclPtrIncrVar): missing CONST in declarations,
7042 inconsistent with tclInt.h. Thanks to Vince Darley for reporting, boo
7043 to gcc for not complaining.
7045 2002-07-17 Vince Darley <vincentdarley@users.sourceforge.net>
7048 * generic/tclIOUtil.c:
7049 * generic/tclLoadNone.c:
7050 * unix/tclLoadAout.c:
7052 * unix/tclLoadDld.c:
7053 * unix/tclLoadDyld.c:
7054 * unix/tclLoadNext.c:
7055 * unix/tclLoadOSF.c:
7056 * unix/tclLoadShl.c:
7058 * win/tclWinLoad.c: modified to move more functionality to the generic
7059 code and avoid duplication. Partial replacement of internal uses of
7060 clientData with opaque Tcl_LoadHandle. A little further work still
7061 needed, but significant changes are done.
7063 2002-07-17 D. Richard Hipp <drh@hwaci.com>
7065 * library/msgcat/msgcat.tcl: fix a comment that was causing problems
7066 for programs (ex: mktclapp) that embed the initialization scripts in
7069 2002-07-17 Miguel Sofer <msofer@users.sourceforge.net>
7071 * generic/tclInt.decls:
7072 * generic/tclIntDecls.h:
7073 * generic/tclStubInit.c:
7074 * generic/tclVar.c: removing the now redundant functions to access
7075 indexed variables: Tcl(Get|Set|Incr)IndexedScalar() and
7076 Tcl(Get|Set|Incr)ElementOfIndexedArray().
7078 2002-07-17 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7080 * generic/tclExecute.c (TclExecuteByteCode): Minor fixes to make this
7081 file compile with SunPro CC...
7083 2002-07-17 Miguel Sofer <msofer@users.sourceforge.net>
7085 * generic/tclExecute.c: modified to do variable lookup explicitly, and
7086 then either inlining the variable access or else calling the new
7087 TclPtr(Set|Get|Incr)Var functions in tclVar.c
7088 * generic/tclInt.h: declare some functions previously local to
7089 tclVar.c for usage by TEBC.
7090 * generic/tclVar.c: removed local declarations; moved all special
7091 accessor functions for indexed variables to the end of the file - they
7092 are unused and ready for removal, but left there for the time being as
7093 they are in the internal stubs table.
7095 ** WARNING FOR BYTECODE MAINTAINERS **
7096 TCL_COMPILE_DEBUG is currently not functional; will be fixed ASAP.
7098 2002-07-16 Mo DeJong <mdejong@users.sourceforge.net>
7101 * win/Makefile.in: Add a more descriptive warning in the event `make
7102 genstubs` needs to be rerun.
7104 2002-07-16 Mo DeJong <mdejong@users.sourceforge.net>
7106 * unix/Makefile.in: Use dltest.marker file to keep track of when the
7107 dltest package is up to date. This fixes [Bug 575768] since tcltest is
7108 no longer linked every time.
7109 * unix/dltest/Makefile.in: Create ../dltest.marker after a successful
7110 `make all` run in dltest.
7112 2002-07-16 Mo DeJong <mdejong@users.sourceforge.net>
7114 * unix/configure: Regen.
7115 * unix/configure.in: Remove useless subst of TCL_BIN_DIR.
7117 2002-07-15 Miguel Sofer <msofer@users.sourceforge.net>
7119 * generic/tclVar.c: inaccurate comment fixed
7121 2002-07-15 Miguel Sofer <msofer@users.sourceforge.net>
7123 * generic/tclBasic.c (Tcl_AddObjErrorInfo):
7124 * generic/tclExecute.c (TclUpdateReturnInfo):
7126 * generic/tclProc.c:
7127 Added two Tcl_Obj to the ExecEnv structure to hold the fully qualified
7128 names "::errorInfo" and "::errorCode" to cache the addresses of the
7129 corresponding variables. The two most frequent setters of these
7130 variables now profit from the new variable name caching.
7132 2002-07-15 Miguel Sofer <msofer@users.sourceforge.net>
7134 * generic/tclVar.c: refactorisation to reuse already looked-up Var
7135 pointers; definition of three new Tcl_Obj types to cache variable name
7136 parsing and lookup for later reuse; modification of internal functions
7137 to profit from the caching.
7139 * generic/tclInt.decls:
7141 * generic/tclIntDecls.h:
7142 * generic/tclNamesp.c: adding CONST qualifiers to variable names
7143 passed to Tcl_FindNamespaceVar and to variable resolvers; adding CONST
7144 qualifier to the 'msg' argument to TclLookupVar. Needed to avoid code
7145 duplication in the new tclVar.c code.
7147 * tests/set-old.test:
7148 * tests/var.test: slight modification of error messages due to the
7149 modifications in the tclVar.c code.
7151 2002-07-15 Don Porter <dgp@users.sourceforge.net>
7153 * tests/unixInit.test: Improved constraints to protect /tmp. [Bug
7156 2002-07-15 Vince Darley <vincentdarley@users.sourceforge.net>
7158 * tests/winFCmd.test: renamed 'win2000' and 'notWin2000' to more
7159 appropriate constraint names.
7160 * win/tclWinFile.c: updated comments to reflect 07-11 changes.
7161 * win/tclWinFCmd.c: made ConvertFileNameFormat static again, since no
7162 longer used in tclWinFile.c
7163 * mac/tclMacFile.c: completed TclpObjLink implementation which was
7165 * generic/tclIOUtil.c: comment cleanup and code speedup.
7167 2002-07-14 Don Porter <dgp@users.sourceforge.net>
7169 * generic/tclInt.h: Removed declarations that duplicated entries
7170 in the (internal) stub table.
7172 * library/tcltest/tcltest.tcl: Corrected errors in handling of
7173 configuration options -constraints and -limitconstraints.
7175 * README: Bumped HEAD to version 8.4b2 so we can
7176 * generic/tcl.h: distinguish it from the 8.4b1 release.
7180 * win/README.binary:
7183 2002-07-11 Vince Darley <vincentdarley@users.sourceforge.net>
7186 * win/tclWinFile.c: on Win 95/98/ME the long form of the path is used
7187 as a normalized form. This is required because short forms are not a
7188 robust representation. The file normalization function has been sped
7189 up, but more performance gains might be possible, if speed is still an
7190 issue on these platforms.
7192 2002-07-11 Don Porter <dgp@users.sourceforge.net>
7194 * library/tcltest/tcltest.tcl: Corrected reaction to existing but
7195 false ::tcl_interactive.
7197 * doc/Hash.3: Overlooked CONST documentation update.
7199 2002-07-11 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7201 * generic/tclCkalloc.c: ckalloc() and friends take the block size as
7202 an unsigned, so we should use %ud when reporting it in fprintf() and
7205 2002-07-11 Miguel Sofer <msofer@users.sourceforge.net>
7207 * generic/tclCompile.c: now setting local vars undefined at compile
7208 time, instead of waiting until the proc is initialized.
7209 * generic/tclProc.c: use macro TclSetVarUndefined instead of directly
7212 2002-07-11 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7214 * tests/cmdAH.test: [file attr -perm] is Unix-only, so add [catch]
7215 when not inside a suitably-protected test.
7217 2002-07-10 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7219 * tests/unixFCmd.test, tests/fileName.test:
7220 * tests/fCmd.test: Removed [exec] of Unix utilities that have
7221 equivalents in standard Tcl. [Bug 579268] Also simplified some of
7222 unixFCmd.test while I was at it.
7224 2002-07-10 Don Porter <dgp@users.sourceforge.net>
7226 * tests/tcltest.test: Greatly reduced the number of [exec]s, using
7227 slave interps instead.
7228 * library/tcltest/tcltest.tcl: Fixed bug uncovered in the conversion
7229 where a message was written to stdout instead of [outputChannel].
7231 * tests/basic.test: Cleaned up, constrained, and reduced the
7232 * tests/compile.test: amount of [exec] usage in the test suite.
7233 * tests/encoding.test:
7239 * tests/regexp.test:
7240 * tests/regexpComp.test:
7241 * tests/socket.test:
7242 * tests/tcltest.test:
7243 * tests/unixInit.test:
7244 * tests/winDde.test:
7245 * tests/winPipe.test:
7247 2002-07-10 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7249 * tests/cmdAH.test: Removed [exec] of Unix utilities. [Bug 579211]
7251 * tests/expr.test: Added tests to make sure that this works.
7252 * generic/tclExecute.c (ExprCallMathFunc): Functions should also be
7253 able to return wide-ints. [Bug 579284]
7255 2002-07-08 Andreas Kupries <andreas_kupries@users.sourceforge.net>
7257 * tests/socket.test: Fixed [Bug 578164]. The original reason for the
7258 was a DNS outage while running the testsuite. Changed [info hostname]
7259 to 127.0.0.1 to bypass DNS, knowing that we operate on the local
7262 2002-07-08 Don Porter <dgp@users.sourceforge.net>
7264 * doc/tcltest.n: Fixed incompatibility in [viewFile].
7265 * library/tcltest/tcltest.tcl: Corrected docs. Bumped to 2.2.1.
7266 * library/tcltest/pkgIndex.tcl: [Bug 578163]
7268 2002-07-08 Vince Darley <vincentdarley@users.sourceforge.net>
7272 * tests/fileName.test: tests which rely on 'file link' need a
7273 constraint so they don't run on older Windows OS. [Bug 578158]
7274 * generic/tclIOUtil.c:
7277 * generic/tclTest.c:
7279 * unix/tclUnixChan.c:
7281 * doc/FileSystem.3: cleaned up internal handling of
7282 Tcl_FSOpenFileChannel to remove duplicate code, and make writing
7283 external vfs's clearer and easier. No functionality change. Also
7284 clarify that objects with refCount zero should not be passed in to the
7285 Tcl_FS API, and prevent segfaults from occuring on such user errors.
7288 2002-07-06 Don Porter <dgp@users.sourceforge.net>
7290 * tests/pkgMkIndex.test: Constrained tests of [load] package indexing
7291 to those platforms where the testing shared libraries have been built.
7294 2002-07-05 Don Porter <dgp@users.sourceforge.net>
7296 * changes: added recent changes
7298 2002-07-05 Reinhard Max <max@suse.de>
7300 * generic/tclClock.c (FormatClock): Convert the format string to
7301 UTF8 before calling TclpStrftime, so that non-ASCII characters don't
7302 get mangled when the result string is being converted back.
7303 * tests/clock.test: Added a test for that.
7305 2002-07-05 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7307 * unix/Makefile.in (ro-test,ddd,GDB,DDD): Created new targets to allow
7308 running the test suite with a read-only current directory, running
7309 under ddd instead of gdb, and factored out some executable names for
7310 broken sites (like mine) where gdb and ddd are installed with
7311 non-standard names...
7313 * tests/httpold.test: Altered test names to httpold-* to avoid clashes
7314 with http.test, and stopped tests from failing when the current
7315 directory is not writable...
7317 * tests/event.test: Stop these tests from failing
7318 * tests/ioUtil.test: when the current directory is
7319 * tests/regexp.test: not writable...
7320 * tests/regexpComp.test:
7321 * tests/source.test:
7322 * tests/unixFile.test:
7323 * tests/unixNotfy.test:
7325 * tests/unixFCmd.test: Trying to make these test-files
7326 * tests/macFCmd.test: not bomb out with an error when
7327 * tests/http.test: the current directory is not
7328 * tests/fileName.test: writable...
7331 2002-07-05 Jeff Hobbs <jeffh@ActiveState.com>
7333 *** 8.4b1 TAGGED FOR RELEASE ***
7335 2002-07-04 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7337 * tests/cmdMZ.test (cmdMZ-1.4):
7338 * tests/cmdAH.test: More fixing of writable-current-dir assumption.
7341 2002-07-04 Miguel Sofer <msofer@users.sourceforge.net>
7343 * tests/basic.test: Same issue as below; fixed [Bug 575817]
7345 2002-07-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>
7347 * tests/socket.test:
7348 * tests/winPipe.test:
7349 * tests/pid.test: Fixed [Bug 575848]. See below for a description the
7352 All the bugs below are instances of the same problem: The testsuite
7353 assumes [pwd] = [temporaryDirectory] and writable.
7355 * tests/iogt.test: Fixed [Bug 575860]
7356 * tests/io.test: Fixed [Bug 575862]
7358 * tests/ioCmd.test: Fixed [Bug 575836]
7360 2002-07-03 Don Porter <dgp@users.sourceforge.net>
7362 * tests/pkg1/direct1.tcl: removed
7363 * tests/pkg1/pkgIndex.tcl: removed
7364 * tests/pkgMkIndex.test: Imported auxilliary files from tests/pkg1
7365 into the test file pkgMkIndex.test itself. Formatting fixes.
7367 * unix/Makefile.in: removed tests/pkg/* from `make dist`
7369 * tests/pkg/circ1.tcl: removed
7370 * tests/pkg/circ2.tcl: removed
7371 * tests/pkg/circ3.tcl: removed
7372 * tests/pkg/global.tcl: removed
7373 * tests/pkg/import.tcl: removed
7374 * tests/pkg/pkg1.tcl: removed
7375 * tests/pkg/pkg2_a.tcl: removed
7376 * tests/pkg/pkg2_b.tcl: removed
7377 * tests/pkg/pkg3.tcl: removed
7378 * tests/pkg/pkg4.tcl: removed
7379 * tests/pkg/pkg5.tcl: removed
7380 * tests/pkg/pkga.tcl: removed
7381 * tests/pkg/samename.tcl: removed
7382 * tests/pkg/simple.tcl: removed
7383 * tests/pkg/spacename.tcl: removed
7384 * tests/pkg/std.tcl: removed
7385 * tests/pkgMkIndex.test: Fixed [Bug 575857] where this test file
7386 expected to be able to write to [file join [testsDirectory] pkg]. Part
7387 of the fix was to import several auxilliary files into the test file
7390 * tests/main.test: Cheap fix for [Bugs 575851, 575858]. Avoid
7391 * tests/tcltest.test: non-writable . by [cd [temporaryDirectory]].
7393 * library/auto.tcl: Fix [tcl_findLibrary] to be sure it sets $varName
7394 only if a successful library script is found. [Bug 577033]
7396 2002-07-03 Miguel Sofer <msofer@users.sourceforge.net>
7398 * generic/tclCompCmds.c (TclCompileCatchCmd): return
7399 TCL_OUT_LINE_COMPILE instead of TCL_ERROR: let the failure happen at
7400 runtime so that it can be caught [Bug 577015].
7402 2002-07-02 Joe English <jenglish@users.sourceforge.net>
7404 * doc/tcltest.n: Markup fixes, spellcheck.
7406 2002-07-02 Don Porter <dgp@users.sourceforge.net>
7408 * doc/tcltest.n: more refinements of the documentation.
7410 * library/tcltest/tcltest.tcl: Added trace to be sure the stdio
7411 constraint is updated whenever the [interpreter] changes.
7413 * doc/tcltest.n: Reverted [makeFile] and [viewFile] to
7414 * library/tcltest/tcltest.tcl: their former behavior, and documented
7415 * tests/cmdAH.test: it. Corrected misspelling of hook
7416 * tests/event.test: procedure. Restored tests.
7420 * library/tcltest/tcltest.tcl: Simplified logic of [GetMatchingFiles]
7421 and [GetMatchingDirectories], removing special case processing.
7423 * doc/tcltest.n: More documentation updates. Reference sections are
7424 complete. Only examples need adding.
7426 2002-07-02 Vince Darley <vincentdarley@users.sourceforge.net>
7429 * generic/tclCmdAH.c: clearer error msgs for 'file link', as per the
7432 2002-07-01 Joe English <jenglish@users.sourceforge.net>
7444 * doc/OpenFileChnl.3:
7451 * doc/WrongNumArgs.3:
7468 * doc/tclvars.n: Spell-check, fixed typos (Updates from Larry Virden)
7470 2002-07-01 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7472 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Made Solaris use gcc for linking
7473 when building with gcc to resolve problems with undefined symbols
7474 being present when tcl library used with non-gcc linker at later
7475 stage. Symbols were compiler-generated, so it is the compiler's
7476 business to define them. [Bug 541181]
7478 2002-07-01 Don Porter <dgp@users.sourceforge.net>
7480 * doc/tcltest.n: more work in progress updating tcltest docs.
7482 * library/tcltest/tcltest.tcl: Change [configure -match] to stop
7483 treating an empty list as a list of the single pattern "*". Changed
7484 the default value to [list *] so default operation remains the same.
7486 * tests/pkg/samename.tcl: restored. Needed by pkgMkIndex.test.
7488 * library/tcltest/tcltest.tcl: restored writeability testing of
7489 -tmpdir, augmented by a special exception for the deafault value.
7491 2002-07-01 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7493 * doc/concat.n: Documented the *real* behaviour of [concat]!
7495 2002-06-30 Don Porter <dgp@users.sourceforge.net>
7497 * doc/tcltest.n: more work in progress updating tcltest docs.
7499 * tests/README: Updated the instructions on running and
7500 * tests/cmdMZ.test: adding to the test suite. Also updated
7501 * tests/encoding.test: several tests, mostly to correctly create
7502 * tests/fCmd.test: and destroy any temporary files in the
7503 * tests/info.test: [temporaryDirectory] of tcltest.
7504 * tests/interp.test:
7506 * library/tcltest/tcltest.tcl: Stopped checking for writeability of
7507 -tmpdir value because no default directory can be guaranteed to be
7510 * tests/autoMkindex.tcl: removed.
7511 * tests/pkg/samename.tcl: removed.
7512 * tests/pkg/magicchar.tcl: removed.
7513 * tests/pkg/magicchar2.tcl: removed.
7514 * tests/autoMkindex.test: Updated auto_mkIndex tests to use [makeFile]
7515 and [removeFile] so tests are done in [temporaryDirecotry] where write
7516 access is guaranteed.
7518 * library/tcltest/tcltest.tcl: Fixed [makeFile] and [viewFile] to
7519 * tests/cmdAH.test: accurately reflect a file's contents.
7520 * tests/event.test: Updated tests that depended on buggy
7521 * tests/http.test: behavior. Also added warning messages
7522 * tests/io.test: to "-debug 1" operations to debug test
7523 * tests/iogt.test: calls to (make|remove)(File|Directory).
7525 * unix/mkLinks: `make mklinks` on 6-27 commits.
7527 2002-06-28 Miguel Sofer <msofer@users.sourceforge.net>
7529 * generic/tclCompile.h: modified the macro TclEmitPush to not call its
7530 first argument repeatedly or pass it to other macros, [Bug 575194]
7531 reported by Peter Spjuth.
7533 2002-06-28 Don Porter <dgp@users.sourceforge.net>
7535 * docs/tcltest.n: Doc revisions in progress.
7536 * library/tcltest/tcltest.tcl: Corrected -testdir default value. Was
7537 not reliable, and disagreed with docs! Thanks to Hemang Lavana. [Bug
7540 2002-06-28 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7542 * unix/tclUnixThrd.c: Renamed the Tcl_Platform* #defines to
7543 * unix/tclUnixPipe.c: TclOS* because they are only used
7544 * unix/tclUnixFile.c: internally. Also stopped double-#def
7545 * unix/tclUnixFCmd.c: of TclOSlstat [Bug 566099, post-rename]
7546 * unix/tclUnixChan.c:
7547 * unix/tclUnixPort.h:
7549 * doc/string.n: Improved documentation for [string last] along lines
7550 described in [Bug 574799] so it indicates that the supplied index
7551 marks the end of the search space.
7553 2002-06-27 Don Porter <dgp@users.sourceforge.net>
7555 * doc/dde.n: Work in progress updating the documentation
7556 * doc/http.n: of the packages that come bundled with
7557 * doc/msgcat.n: the Tcl source distribution, notably tcltest.
7561 * library/tcltest/tcltest.tcl: Made sure that the TCLTEST_OPTIONS
7562 environment variablle configures tcltest at package load time.
7564 2002-06-26 Vince Darley <vincentdarley@users.sourceforge.net>
7566 * tests/fileSystem.test:
7567 * generic/tclIOUtil.c: fix to handling of empty paths "" which are not
7568 claimed by any filesystem [Bug 573758]. Ensure good error messages are
7571 * unix/tclUnixFCmd.c: fix to bug reported as part of [Patch 566669].
7572 Thanks to Taguchi, Takeshi for the report.
7574 2002-06-26 Reinhard Max <max@suse.de>
7576 * unix/tclUnixTime.c: Make [clock format] respect locale settings.
7577 * tests/clock.test: [Bug 565880]. ***POTENTIAL INCOMPATIBILITY***
7579 2002-06-26 Miguel Sofer <msofer@users.sourceforge.net>
7582 * doc/StringObj.3: clarifications by Don Porter, [Bugs 493995, 500930]
7584 2002-06-24 Don Porter <dgp@users.sourceforge.net>
7586 * library/tcltest/tcltest.tcl: Corrected suppression of -verbose skip
7587 * tests/tcltest.test: and start by [test -output]. Also
7588 corrected test suite errors exposed by corrected code. [Bug 564656]
7590 2002-06-25 Reinhard Max <max@suse.de>
7592 * unix/tcl.m4: New macro SC_CONFIG_MANPAGES.
7593 * unix/configure.in: Added support for symlinks and compression
7594 * unix/Makefile.in: when installing the manpages. [Patch 518052]
7595 * unix/mkLinks.tcl: Default is still hardlinks and no compression.
7597 * unix/mkLinks: generated
7600 * unix/README: Added documentation for the new features.
7602 * unix/tcl.m4 (SC_PATH_TCLCONFIG): Replaced ${exec_prefix}/lib by
7605 2002-06-25 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7607 * generic/tclUtil.c (TclGetIntForIndex): Fix of critical [Bug 533364]
7608 generated when the index is bad and the result is a shared object. The
7609 T_ASTO(T_GOR, ...) idiom likely exists elsewhere though. Also removed
7610 some cruft that just complicated things to no advantage.
7611 (SetEndOffsetFromAny): Same fix, though this wasn't on the path
7614 2002-06-24 Don Porter <dgp@users.sourceforge.net>
7616 * library/tcltest/tcltest.tcl: Implementation of TIP 101. Adds
7617 * tests/parseOld.test: and exports a [configure] command
7618 * tests/tcltest.test: from tcltest.
7620 2002-06-22 Don Porter <dgp@users.sourceforge.net>
7622 * changes: updated changes file for 8.4b1 release.
7624 * library/tcltest/tcltest.tcl: Corrections to tcltest and the
7625 * tests/basic.test: Tcl test suite so that a test
7626 * tests/cmdInfo.test: with options -constraints knownBug
7627 * tests/compile.test: -limitConstraints 1 only tests the
7628 * tests/encoding.test: knownBug tests. Mostly involves
7629 * tests/env.test: replacing direct access to the
7630 * tests/event.test: testConstraints array with calls
7631 * tests/exec.test: to the testConstraint command
7632 * tests/execute.test: (which requires tcltest version 2)
7634 * tests/format.test:
7636 * tests/httpold.test:
7637 * tests/ioUtil.test:
7640 * tests/namespace.test:
7641 * tests/pkgMkIndex.test:
7643 * tests/result.test:
7647 2002-06-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7649 * tools/tcl.wse.in (Disk Label), unix/tcl.spec (version):
7650 * win/README.binary, README, win/configure.in, unix/configure.in:
7651 * generic/tcl.h (TCL_RELEASE_*, TCL_PATCH_LEVEL): Bump to beta1.
7653 2002-06-21 Joe English <jenglish@users.sourceforge.net>
7655 * generic/tclCompExpr.c:
7656 * generic/tclParseExpr.c: LogSyntaxError() should reset the
7657 interpreter result [Bug 550142 "Tcl_ExprObj -> abort"]
7659 2002-06-21 Don Porter <dgp@users.sourceforge.net>
7661 * unix/Makefile.in: Updated all package install directories to
7662 * win/Makefile.in: match current Major.minor versions of the
7663 * win/makefile.bc: packages. Added tcltest package to
7664 * win/makefile.vc: installation on Windows.
7666 * library/init.tcl: Corrected comments and namespace style issues.
7667 Thanks to Bruce Stephens. [Bug 572025]
7669 2002-06-21 Vince Darley <vincentdarley@users.sourceforge.net>
7671 * tests/cmdAH.test: Added TIP#99 implementation of 'file
7672 * tests/fCmd.test: link'. Supports creation of symbolic and
7673 * tests/fileName.test: hard links in the native filesystems and
7674 * tests/fileSystem.test: in vfs's, when the individual filesystem
7675 * generic/tclTest.c: supports the concept.
7676 * generic/tclCmdAH.c:
7677 * generic/tclIOUtil.c:
7679 * generic/tcl.decls:
7683 * unix/tclUnixFile.c:
7684 * win/tclWinFile.c: Also enhanced speed of 'file normalize' on Windows
7686 2002-06-20 Miguel Sofer <msofer@users.sourceforge.net>
7688 * generic/tclBasic.c (TclEvalObjvInternal): fix for [Bug 571385] in
7689 the implementation of TIP#62 (command tracing). Vince Darley, Hemang
7690 Lavana & Don Porter: thanks.
7692 2002-06-20 Miguel Sofer <msofer@users.sourceforge.net>
7694 * generic/tclExecute.c (TclCompEvalObj): clarified and simplified the
7695 logic for compilation/recompilation.
7697 2002-06-19 Joe English <jenglish@users.sourceforge.net>
7699 * doc/file.n: Fixed indentation. No substantive changes.
7701 2002-06-19 Jeff Hobbs <jeffh@ActiveState.com>
7703 * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): get the resultPtr again as
7704 the Tcl_ObjSetVar2 may cause the result to change.
7705 [Patch 558324] (watson)
7707 2002-06-19 Miguel Sofer <msofer@users.sourceforge.net>
7709 * generic/tclExecute.c (TEBC): removing unused "for(;;)" loop;
7710 improved comments; re-indentation.
7712 2002-06-18 Miguel Sofer <msofer@users.sourceforge.net>
7714 * generic/tclExecute.c (TEBC):
7715 - elimination of duplicated code in the non-immediate INST_INCR
7717 - elimination of 103 (!) TclDecrRefCount macros. The different
7718 instructions now jump back to a common "DecrRefCount zone" at the
7719 top of the loop. The macro "ADJUST_PC" was replaced by two macros
7720 "NEXT_INST_F" and "NEXT_INST_V" that take three params
7721 (pcAdjustment, # of stack objects to discard, resultObjPtr handling
7722 flag). The only instructions that retain a TclDecrRefCount are
7723 INST_POP (for speed), the common code for the non-immediate
7724 INST_INCR, INST_FOREACH_STEP and the two INST_LSET.
7726 The object size of tclExecute.o was reduced by approx 20% since the
7727 start of the consolidation drive, while making room for some peep-hole
7728 optimisation at runtime.
7730 2002-06-18 Miguel Sofer <msofer@users.sourceforge.net>
7732 * generic/tclExecute.c (TEBC, INST_DONE): small bug in the panic code
7733 for tcl-stack corruption.
7735 2002-06-17 David Gravereaux <davygrvy@pobox.com>
7737 Trims to support the removal of RESOURCE_INCLUDED from rc scripts from
7740 * generic/tcl.h: moved the #ifndef RC_INVOKED start block up in the
7741 file. rc scripts don't need to know thread mutexes.
7744 * win/tclsh.rc: removed the #define RESOURCE_INCLUDED to let the
7745 built-in -DRC_INVOKED to the work.
7747 2002-06-17 Jeff Hobbs <jeffh@ActiveState.com>
7749 * doc/CrtTrace.3: Added TIP#62 implementation of command
7750 * doc/trace.n: execution tracing [FRQ 462580] (lavana).
7751 * generic/tcl.h: This includes enter/leave tracing as well
7752 * generic/tclBasic.c: as inter-procedure stepping.
7753 * generic/tclCmdMZ.c:
7754 * generic/tclCompile.c:
7755 * generic/tclExecute.c:
7756 * generic/tclInt.decls:
7758 * generic/tclIntDecls.h:
7759 * generic/tclStubInit.c:
7763 2002-06-17 Andreas Kupries <andreas_kupries@users.sourceforge.net>
7765 * win/tclWinPipe.c (BuildCommandLine): Fixed [bug 554068] ([exec] on
7766 windows did not treat { in filenames well.). Bug reported by Vince
7767 Darley <vincentdarley@users.sourceforge.net>, patch provided by Vince
7770 2002-06-17 Joe English <jenglish@users.sourceforge.net>
7772 * generic/tcl.h: #ifdef logic for K&R C backwards compatibility
7773 changed to assume modern C by default. See [FRQ 565088] for full
7776 2002-06-17 Don Porter <dgp@users.sourceforge.net>
7778 * doc/msgcat.n: Corrected en_UK references to en_GB. UK is not a
7779 country designation recognized in ISO 3166.
7781 * library/msgcat/msgcat.tcl: More Windows Registry locale codes from
7785 * library/msgcat/msgcat.tcl:
7786 * library/msgcat/pkgIndex.tcl:
7787 * tests/msgcat.test: Revised locale initialization to interpret
7788 environment variable locale values according to XPG4, and to recognize
7789 the LC_ALL and LC_MESSAGES values over that of LANG. Also added many
7790 Windows Registry locale values to those recognized by msgcat. Revised
7791 tests and docs. Bumped to version 1.3. Thanks to Bruno Haible for the
7792 report and assistance crafting the solution. [Bug 525522, 525525]
7794 2002-06-16 Miguel Sofer <msofer@users.sourceforge.net>
7796 * generic/tclCompile.c (TclCompileTokens): a better algorithm for the
7799 2002-06-16 Miguel Sofer <msofer@users.sourceforge.net>
7801 * generic/tclCompile.c (TclCompileTokens):
7802 * tests/compile.test: [Bug 569438] in the processing of dollar
7803 variables; report by Georgios Petasis.
7805 2002-06-16 Miguel Sofer <msofer@users.sourceforge.net>
7807 * generic/tclExecute.c: bug in the consolidation of the INCR_..._STK
7808 instructions; the bug could not be exercised as the (faulty)
7809 instruction INST_INCR_ARRAY_STK was never compiled-in (related to [Bug
7812 2002-06-14 Miguel Sofer <msofer@users.sourceforge.net>
7814 * generic/tclExecute.c (TclExecuteByteCode): runtime peep-hole
7815 optimisation of variables (INST_STORE, INST_INCR) and commands
7816 (INST_INVOKE); faster check for the existence of a catch.
7817 (TclExecuteByteCode): runtime peep-hole optimisation of comparisons.
7818 (TclExecuteByteCode): runtime peep-hole optimisation of INST_FOREACH -
7819 relies on peculiarities of the code produced by the bytecode compiler.
7821 2002-06-14 David Gravereaux <davygrvy@pobox.com>
7823 * win/rules.vc: The test for compiler optimizations was in error.
7824 Thanks goes to Roy Terry <royterry@earthlink.net> for his assistance
7827 2002-06-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7829 * doc/trace.n, tests/trace.test:
7830 * generic/tclCmdMZ.c (Tcl_TraceObjCmd,TclTraceCommandObjCmd)
7831 (TclTraceVariableObjCmd): Changed references to "trace list" to "trace
7832 info" as mandated by TIP#102.
7834 2002-06-13 Miguel Sofer <msofer@users.sourceforge.net>
7836 * generic/tclExecute.c (TclExecuteByteCode): consolidated code for the
7837 conditional branch instructions.
7839 2002-06-13 Miguel Sofer <msofer@users.sourceforge.net>
7841 * generic/tclExecute.c (TclExecuteByteCode): fixed the previous
7842 patch - wouldn't compile with TCL_COMPILE_DEBUG set.
7844 2002-06-13 Miguel Sofer <msofer@users.sourceforge.net>
7846 * generic/tclExecute.c (TclExecuteByteCode): consolidated the handling
7847 of exception returns to INST_INVOKE and INST_EVAL, as well as most of
7848 the code for INST_CONTINUE and INST_BREAK, in the new jump target
7849 "processExceptionReturn".
7851 2002-06-13 Miguel Sofer <msofer@users.sourceforge.net>
7853 * generic/tclExecute.c (TclExecuteByteCode): consolidated variable
7854 handling opcodes, replaced redundant code with some 'goto'. All
7855 store/append/lappend opcodes on the same data type now share the main
7856 code; same with incr opcodes.
7857 * generic/tclVar.c: added the bit TCL_TRACE_READS to the possible
7858 flags to Tcl_SetVar2Ex - it causes read traces to be fired prior to
7859 setting the variable. This is used in the core for [lappend].
7861 ***NOTE*** the usage of TCL_TRACE_READS in Tcl_(Obj)?GetVar.* is not
7862 documented; there, it causes the call to create the variable if it
7863 does not exist. The new usage in Tcl_(Obj)?SetVar.* remains
7864 undocumented too ...
7866 2002-06-13 Vince Darley <vincentdarley@users.sourceforge.net>
7869 * tests/winFile.test:
7870 * tests/fileSystem.test:
7871 * generic/tclTest.c:
7872 * generic/tclCmdAH.c:
7873 * generic/tclIOUtil.c:
7876 * unix/tclUnixFile.c:
7877 * win/tclWinFile.c: fixed up further so both compiles and actually
7878 works with VC++ 5 or 6.
7880 * win/tclWin32Dll.c: cleaned up code and vfs tests and added tests for
7881 the internal changes of 2002-06-12, to see whether WinTcl on NTFS can
7882 coexist peacefully with links in the filesystem. Added new test
7883 command 'testfilelink' to enable the newer code to be tested.
7884 * tests/fCmd.test: (made certain tests of 'testfilelink' not run on
7887 2002-06-12 Miguel Sofer <msofer@users.sourceforge.net>
7889 * tclBasic.c (Tcl_DeleteTrace): fixed [Bug 568123] (thanks to
7892 2002-06-12 Jeff Hobbs <jeffh@ActiveState.com>
7894 * win/tclWinFile.c: corrected the symbolic link handling code to
7895 allow it to compile. Added real definition of REPARSE_DATA_BUFFER
7896 (found in winnt.h). Most of the added definitions appear to have
7897 correct, cross-Win-version equivalents in winnt.h and should be
7898 removed, but just making things "work" for now.
7900 2002-06-12 Vince Darley <vincentdarley@users.sourceforge.net>
7902 * generic/tclIOUtil.c:
7903 * generic/tcl.decls:
7904 * generic/tclDecls.h: made code for Tcl_FSNewNativePath agree with man
7907 * doc/FileSystem.3: clarified the circumstances under which certain
7908 functions are called in the presence of symlinks.
7913 * win/tclWinFCmd.c: Fix for Windows to allow 'file lstat', 'file
7914 type', 'glob -type l', 'file copy', 'file delete', 'file normalize',
7915 and all VFS code to work correctly in the presence of symlinks
7916 (previously Tcl's behaviour was not very well defined). This also
7917 fixes possible serious problems in all versions of WinTcl where 'file
7918 delete' on a NTFS symlink could delete the original, not the symlink.
7919 Note: symlinks cannot yet be created in pure Tcl.
7921 2002-06-11 Miguel Sofer <msofer@users.sourceforge.net>
7923 * generic/tclBasic.c:
7924 * generic/tclCompCmds.c:
7925 * generic/tclInt.h: reverted the new compilation functions; replaced
7926 by a more general approach described below.
7928 * generic/tclCompCmds.c:
7929 * generic/tclCompile.c: made *all* compiled variable access attempts
7930 create an indexed variable - even get or incr without previous set.
7931 This allows indexed access to local variables that are created and set
7932 at runtime, for example by [global], [upvar], [variable], [regexp],
7935 2002-06-11 Miguel Sofer <msofer@users.sourceforge.net>
7940 * generic/tclCmdIL.c: fix for [Bug 567386], [info locals] was
7941 reporting some linked variables.
7943 * generic/tclBasic.c:
7944 * generic/tclCompCmds.c:
7945 * generic/tclInt.h: added compile functions for [global], [variable]
7946 and [upvar]. They just declare the new local variables, the commands
7947 themselves are not compiled-in. This gives a notably faster read
7948 access to these linked variables.
7950 2002-06-11 Miguel Sofer <msofer@users.sourceforge.net>
7952 * generic/tclExecute.c: optimised algorithm for exception range
7953 lookup; part of [Patch 453709].
7955 2002-06-10 Vince Darley <vincentdarley@users.sourceforge.net>
7957 * unix/tclUnixFCmd.c: fixed [Bug 566669]
7958 * generic/tclIOUtil.c: improved and sped up handling of native paths
7959 (duplication and conversion to normalized paths), particularly on
7961 * modified part of above commit, due to problems on Linux. Will
7962 re-examine bug report and evaluate more closely.
7964 2002-06-07 Don Porter <dgp@users.sourceforge.net>
7966 * tests/tcltest.test: More corrections to test suite so that tests of
7967 failing [test]s don't show up themselves as failing tests.
7969 2002-06-07 Donal K. Fellows <fellowsd@cs.man.ac.uk>
7971 * generic/tclExecute.c: Tidied up headers in relation to float.h to
7972 cut the cruft and ensure DBL_MAX is defined since doubles seem to be
7973 the same size everywhere; if the assumption isn't true, the variant
7974 platforms had better have run configure...
7976 * unix/tclUnixPort.h (EOVERFLOW): Added code to define it if it wasn't
7977 previously defined. Also some other general tidying and adding of
7978 comments. [Bugs 563122, 564595]
7979 * compat/tclErrno.h: Added definition for EOVERFLOW copied from
7980 Solaris headers; I've been unable to find any uses of EFTYPE, which
7981 was the error code previously occupying the slot, in Tcl, or any
7982 definition of it in the Solaris headers.
7984 2002-06-06 Mo DeJong <mdejong@users.sourceforge.net>
7986 * unix/dltest/Makefile.in: Remove hard coded CFLAGS=-g and add
7987 CFLAGS_DEBUG, CFLAGS_OPTIMIZE, and CFLAGS_DEFAULT varaibles. [Bug
7990 2002-06-06 Don Porter <dgp@users.sourceforge.net>
7992 * tests/tcltest.test: Corrections to test suite so that tests of
7993 failing [test]s don't show up themselves as failing tests.
7995 * tests/io.test: Fixed up namespace variable resolution issues
7996 revealed by running test suite with "-singleproc 1".
7999 * library/tcltest/tcltest.tcl:
8000 * tests/tcltest.test: Several updates to tcltest.
8001 1) changed to lazy initialization of test constraints
8002 2) deprecated [initConstraintsHook]
8003 3) repaired badly broken [limitConstraints].
8004 4) deprecated [threadReap] and [mainThread]
8005 [Patch 512214, Bug 558742, Bug 461000, Bug 534903]
8007 2002-06-06 Daniel Steffen <das@users.sourceforge.net>
8009 * unix/tclUnixThrd.c (TclpReaddir, TclpLocaltime, TclpGmtime):
8010 added mutex wrapped calls to readdir, localtime & gmtime in case their
8011 thread-safe *_r counterparts are not available.
8012 * unix/tcl.m4: added configure check for readdir_r
8013 * unix/tcl.m4 (Darwin): set TCL_DEFAULT_ENCODING to utf-8 on MacOSX
8014 (where posix file apis expect utf-8, not iso8859-1).
8015 * unix/configure: regen
8016 * unix/Makefile.in: set DYLD_LIBRARY_PATH in parallel to
8017 LD_LIBRARY_PATH for MacOSX dynamic linker.
8018 * generic/tclEnv.c (TclSetEnv): fix env var setting on MacOSX. Adapted
8019 from [Patch 524352] (jkbonfield).
8021 2002-06-05 Don Porter <dgp@users.sourceforge.net>
8023 * doc/Tcl_Main.3: Documented $tcl_rcFileName and added more
8024 clarifications about the intended use of Tcl_Main(). [Bug 505651]
8026 2002-06-05 Daniel Steffen <das@users.sourceforge.net>
8028 * generic/tclFileName.c (TclGlob): mac specific fix to recent changes
8029 in 'glob -tails' handling.
8031 * mac/tclMacChan.c: fixed TIP#91 bustage.
8032 * mac/tclMacResource.c (Tcl_MacConvertTextResource): added utf
8033 conversion of text resource contents.
8034 * tests/macFCmd.test (macFCmd-1.2): allow CWIE creator.
8036 2002-06-04 Don Porter <dgp@users.sourceforge.net>
8038 * library/tcltest/tcltest.tcl:
8040 * tests/tcltest.test: Added more TIP 85 tests from Arjen Markus.
8041 Converted tcltest.test to use a private namespace. Fixed bugs in
8042 [tcltest::Eval] revealed by calling [tcltest::test] from a non-global
8043 namespace, and namespace errors in init.test.
8045 2002-06-04 Mo DeJong <mdejong@users.sourceforge.net>
8047 * win/README: Update msys+mingw URL.
8049 2002-06-03 Don Porter <dgp@users.sourceforge.net>
8052 * library/tcltest/tcltest.tcl:
8053 * library/tcltest/pkgIndex.tcl:
8054 * tests/tcltest.test: Implementation of TIP 85. Allows tcltest users
8055 to add new legal values of the -match option to [test], associating
8056 each with a Tcl command that does the matching of expected results
8057 with actual results of tests. Thanks to Arjen Markus. => tcltest 2.1
8060 2002-06-03 Miguel Sofer <msofer@users.sourceforge.net>
8062 * doc/namespace.n: added description of [namepace forget] behaviour
8063 for unqualified patterns [Bug 559268]
8065 2002-06-03 Miguel Sofer <msofer@users.sourceforge.net>
8067 * generic/tclExecute.c: reverting an accidental modification in the
8070 2002-06-03 Miguel Sofer <msofer@users.sourceforge.net>
8072 * doc/Tcl.n: clarify the empty variable name issue ([Bug 549285]
8073 reported by Tom Krehbiel, patch by Don Porter).
8075 2002-05-31 Don Porter <dgp@users.sourceforge.net>
8077 * library/package.tcl: Fixed leak of slave interp in [pkg_mkIndex].
8078 Thanks to Helmut for report. [Bug 550534]
8081 * tests/main.test: Use the "stdio" constraint to control whether an
8082 [open "|[interpreter]"] is attempted.
8084 * generic/tclExecute.c (TclMathInProgress,TclExecuteByteCode
8086 * generic/tclInt.h (TclMathInProgress):
8087 * unix/Makefile.in (tclMtherr.*):
8088 * unix/configure.in (NEED_MATHERR):
8089 * unix/tclAppInit.c (matherr):
8090 * unix/tclMtherr.c (removed file):
8091 * win/tclWinMtherr.c (_matherr): Removed internal routine
8092 TclMathInProgress and Unix implementation of matherr(). These are now
8093 obsolete, dealing with very old versions of the C math library.
8094 Windows version is retained in case Borland compilers require it, but
8095 it is inactive. Thanks to Joe English. [Bug 474335, Patch 555635]
8096 * unix/configure: regen
8098 2002-05-30 Miguel Sofer <msofer@users.sourceforge.net>
8100 * generic/tclCompExpr.c:
8101 * generic/tclCompile.c:
8102 * generic/tclCompile.h: removed exprIsJustVarRef and
8103 exprIsComparison from the ExprInfo and CompileEnv structs. These were
8104 set, but not used since dec 1999 [Bug 562383].
8106 2002-05-30 Vince Darley <vincentdarley@users.sourceforge.net>
8108 * generic/tclFileName.c (TclGlob): fix to longstanding 'knownBug' in
8109 fileName tests 15.2-15.4, and fix to a new Tcl 8.4 bug in certain uses
8111 * tests/fileName.test: removed 'knownBug' flag from some tests, added
8112 some new tests for above bugs.
8114 2002-05-29 Jeff Hobbs <jeffh@ActiveState.com>
8116 * unix/configure: regen'ed
8117 * unix/configure.in: replaced bigendian check with autoconf standard
8118 AC_C_BIG_ENDIAN, which defined WORDS_BIGENDIAN on bigendian systems.
8119 * generic/tclUtf.c (Tcl_UniCharNcmp):
8120 * generic/tclInt.h (TclUniCharNcmp): use WORDS_BIGENDIAN instead of
8121 TCL_OPTIMIZE_UNICODE_COMPARE to enable memcmp alternative.
8123 * generic/tclExecute.c (TclExecuteByteCode INST_STR_CMP):
8124 * generic/tclCmdMZ.c (Tcl_StringObjCmd): changed the case for choosing
8125 the Tcl_UniCharNcmp compare to when both objs are of StringType, as
8126 benchmarks show that is the optimal check (both bigendian and
8127 littleendian systems).
8129 2002-05-29 Don Porter <dgp@users.sourceforge.net>
8131 * generic/tclMain.c: Removed "dummy" reference to Tcl_LinkVar. It is
8132 no longer needed since Tcl_Main() now actually calls Tcl_LinkVar().
8133 Thanks to Joe English for pointing that out.
8135 2002-05-29 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8137 * generic/tclExecute.c (TclExecuteByteCode):
8138 * generic/tclCmdMZ.c (Tcl_StringObjCmd): Use the macro version.
8139 * generic/tclInt.h (TclUniCharNcmp): Optimised still further with a
8140 macro for use in sensitive places like tclExecute.c
8142 * generic/tclUtf.c (Tcl_UniCharNcmp): Use new flag to figure out when
8143 we can use an optimal comparison scheme, and default to the old scheme
8144 in other cases which is at least safe.
8145 * unix/configure.in (TCL_OPTIMIZE_UNICODE_COMPARE): New optional flag
8146 that indicates when we can use memcmp() to compare Unicode strings
8147 (i.e. when the high-byte of a Tcl_UniChar precedes the low-byte.)
8149 2002-05-29 Jeff Hobbs <jeffh@ActiveState.com>
8151 * generic/tclInt.decls:
8152 * generic/tclIntDecls.h:
8153 * generic/tclStubInit.c:
8154 * generic/tclUtf.c: added TclpUtfNcmp2 private command that mirrors
8155 Tcl_UtfNcmp, but takes n in bytes, not utf-8 chars. This provides a
8156 faster alternative for comparing utf strings internally.
8157 (Tcl_UniCharNcmp, Tcl_UniCharNcasecmp): removed the explicit end of
8158 string check as it wasn't correct for the function (by doc and logic).
8160 * generic/tclCmdMZ.c (Tcl_StringObjCmd): reworked the string equal
8161 comparison code to use TclpUtfNcmp2 as well as short-circuit for equal
8162 objects or unequal length strings in the equal case. Removed the use
8163 of goto and streamlined the other parts.
8165 * generic/tclExecute.c (TclExecuteByteCode): added check for object
8166 equality in the comparison instructions. Added short-circuit for !=
8167 length strings in INST_EQ, INST_NEQ and INST_STR_CMP. Reworked
8168 INST_STR_CMP to use TclpUtfNcmp2 where appropriate, and only use
8169 Tcl_UniCharNcmp when at least one of the objects is a Unicode obj with
8172 * generic/tclCompCmds.c (TclCompileStringCmd): removed error creation
8173 in code that no longer throws an error.
8175 * tests/string.test:
8176 * tests/stringComp.test: added more string comparison checks.
8178 * tests/clock.test: better qualified 9.1 constraint check for %s.
8180 2002-05-28 Jeff Hobbs <jeffh@ActiveState.com>
8182 * generic/tclThreadAlloc.c (TclpRealloc, TclpFree): protect against
8183 the case when NULL is based.
8185 * tests/clock.test: added clock-9.1
8186 * compat/strftime.c:
8187 * generic/tclClock.c:
8188 * generic/tclInt.decls:
8189 * generic/tclIntDecls.h:
8190 * unix/tclUnixTime.c: fix for Windows msvcrt mem leak caused by using
8191 an env(TZ) setting trick for in clock format -gmt 1. This also makes
8192 %s seem to work correctly with -gmt 1 as well as making it a lot
8193 faster by avoid the env(TZ) hack. TclpStrftime now takes useGMT as an
8196 2002-05-28 Vince Darley <vincentdarley@users.sourceforge.net>
8198 * generic/tclIOUtil.c: fixes to Tcl_FSLoadFile when called on a file
8199 inside a vfs. This should avoid leaving temporary files sitting around
8200 on exit. [Bug 545579]
8202 2002-05-27 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8204 * win/tclWinError.c: Added comment on conversion of
8205 ERROR_NEGATIVE_SEEK because that is a mapping that really belongs, and
8206 not a catch-all case.
8207 * win/tclWinPort.h (EOVERFLOW): Should be either EFBIG or EINVAL
8208 * generic/tclPosixStr.c (Tcl_ErrnoId, Tcl_ErrnoMsg): EOVERFLOW can
8209 potentially be a synonym for EINVAL.
8211 2002-05-24 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8213 === Changes due to TIP#91 ===
8215 * win/tclWinPort.h: Added declaration of EOVERFLOW.
8216 * doc/CrtChannel.3: Added documentation of wideSeekProc.
8217 * generic/tclIOGT.c (TransformSeekProc, TransformWideSeekProc):
8218 Adapted to use the new channel mechanism.
8219 * unix/tclUnixChan.c (FileSeekProc, FileWideSeekProc): Renamed
8220 FileSeekProc to FileWideSeekProc and created new FileSeekProc which
8221 has the old-style interface and which errors out with EOVERFLOW when
8222 the returned file position can't fit into the return type (int for
8223 historical reasons.)
8224 * win/tclWinChan.c (FileSeekProc, FileWideSeekProc): Renamed
8225 FileSeekProc to FileWideSeekProc and created new FileSeekProc which
8226 has the old-style interface and which errors out with EOVERFLOW when
8227 the returned file position can't fit into the return type (int for
8228 historical reasons.)
8229 * mac/tclMacChan.c (FileSeek): Reverted to old interface; Macs lack
8230 large-file support because I can't see how to add it.
8231 * generic/tclIO.c (Tcl_Seek, Tcl_Tell): Given these functions
8232 knowledge of the new arrangement of channel types.
8233 (Tcl_ChannelVersion): Added recognition of new version code.
8234 (HaveVersion): New function to do version checking.
8235 (Tcl_ChannelBlockModeProc, Tcl_ChannelFlushProc)
8236 (Tcl_ChannelHandlerProc): Made these functions use HaveVersion for
8237 ease of future maintainability.
8238 (Tcl_ChannelBlockModeProc): Obvious lookup function.
8239 * generic/tcl.h (Tcl_ChannelType): New wideSeekProc field, and
8240 seekProc type restored to old interpretation.
8241 (TCL_CHANNEL_VERSION_3): New channel version.
8243 2002-05-24 Andreas Kupries <andreas_kupries@users.sourceforge.net>
8245 * tests/winPipe.test: Applied patch for [Bug 549617]. Patch and bug
8246 report by Kevin Kenny <kennykb@users.sourceforge.net>.
8248 * win/tclWinSock.c (TcpWatchProc): Fixed [Bug 557878]. We are not
8249 allowed to mess with the watch mask if the socket is a server socket.
8250 I believe that the original reporter is George Peter Staplin.
8252 2002-05-21 Mo DeJong <mdejong@users.sourceforge.net>
8254 * unix/configure: Regen.
8255 * unix/configure.in: Invoke SC_ENABLE_SHARED before calling
8256 SC_CONFIG_CFLAGS so that the SHARED_BUILD variable can be checked
8257 inside SC_CONFIG_CFLAGS.
8258 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Pass -non_shared instead of -shared
8259 to ld when configured with --disable-shared under OSF. [Bug 540390]
8261 2002-05-20 Daniel Steffen <das@users.sourceforge.net>
8263 * generic/tclInt.h: added prototype for TclpFilesystemPathType().
8264 * mac/tclMacChan.c: use MSL provided creator type if available instead
8265 of the default 'MPW '.
8267 2002-05-16 Joe English <jenglish@users.sf.net>
8269 * doc/CrtObjCmd.3: Added Tcl_GetCommandFromObj, Tcl_GetCommandFullName
8270 [Bugs 547987, 414921]
8272 2002-05-14 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8274 * unix/tclUnixChan.c (TtyOutputProc): #if/#endif-ed this function out
8275 to stop compiler warnings. Also much general tidying of comments in
8276 this file and removal of whitespace from blank lines.
8278 2002-05-13 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8280 * unix/tclUnixChan.c (SETBREAK): Solaris thinks ioctl() takes a signed
8281 second argument, and Linux thinks ioctl() takes an unsigned second
8282 argument. So need a longer definition of this macro to get neither to
8285 2002-05-13 Vince Darley <vincentdarley@users.sourceforge.net>
8287 * generic/tclEvent.c:
8288 * generic/tclIOUtil.c:
8289 * generic/tclInt.h: clean up all memory allocated by the filesystem,
8290 via introduction of 'TclFinalizeFilesystem'. Move TclFinalizeLoad into
8291 TclFinalizeFilesystem so we can be sure it is called at just the right
8292 time. Fix bad comment also. [Bug 555078 and 'fs' part of 543549]
8293 * win/tclWinChan.c: fix comment referring to wrong function.
8295 2002-05-10 Don Porter <dgp@users.sourceforge.net>
8299 * tests/tcltest.test: Corrected some list-quoting issues and other
8300 matters that cause tests to fail when the patch includes special
8301 characters. Report from Vince Darley. [Bug 554068].
8303 2002-05-08 David Gravereaux <davygrvy@pobox.com>
8307 * tools/man2help2.tcl: Thanks to Peter Spjuth <peter.spjuth@space.se>,
8308 again. My prior fix for single-quote macro mis-understanding was
8309 wrong. Reverted to reimpliment the 'macro2' proc which handles
8310 single-quote macros and restored file.n text arrangement to avoid
8311 single-quotes on the first line. Sorry for all the confusion.
8313 2002-05-08 David Gravereaux <davygrvy@pobox.com>
8316 * tools/man2help2.tcl: Proper source of macro error mis-understanding
8317 single-quote as the leading macro command found and repaired.
8319 * doc/file.n: Reverted to prior state before I messed with it.
8321 2002-05-08 Don Porter <dgp@users.sourceforge.net>
8323 * library/tcltest/tcltest.tcl: Corrected [uplevel] quoting when
8324 [source]-ing test script in subdirectories.
8325 * tests/fileName.test:
8328 * tests/tcltest.test:
8329 * tests/unixInit.test: Fixes to test suite when there's a space in the
8330 working path. Thanks to Kevin Kenny.
8332 2002-05-07 David Gravereaux <davygrvy@pobox.com>
8334 -- Changes from Peter Spjuth <peter.spjuth@space.se>
8335 * tools/man2tcl.c: Increased line buffer size and a bail-out if that
8336 should ever be over-run.
8337 * tools/man2help.tcl: Include Courier New font in rtf header.
8338 * tools/man2help2.tcl: Improved handling of CS/CE fields. Use Courier
8339 New for code samples and indent better.
8342 * doc/TraceCmd.3: winhelp conversion tools where understanding a ' as
8343 the first character on a line to be an unknown macro. Not knowing how
8344 to repair tools/man2tcl.c, I decided to rearrange the text in the docs
8347 2002-05-07 Vince Darley <vincentdarley@users.sourceforge.net>
8349 * generic/tclFileName.c: fix to similar segfault when using
8350 'glob -types nonsense -dir dirname -join * *'. [Bug 553320]
8352 * doc/FileSystem.3: further documentation on vfs.
8354 * tests/fileSystem.test:
8355 * tests/pkgMkindex.test: Fix to testsuite bugs when running out of
8356 directory whose name contains '{' or '['.
8358 2002-05-07 Miguel Sofer <msofer@users.sourceforge.net>
8360 * tests/basic.test: Fix for [Bug 549607]
8361 * tests/encoding.test: Fix for [Bug 549610]
8362 These are testsuite bugs that caused failures when the filename
8363 contained spaces. Report & fix by Kevin Kenny.
8365 2002-05-02 Vince Darley <vincentdarley@users.sourceforge.net>
8367 * generic/tclFileName.c: fix to freeing a bad object (i.e. segfault)
8368 when using 'glob -types nonsense -dir dirname'.
8369 * generic/tclWinFile.c: fix to [Bug 551306], also wrapped some long
8371 * tests/fileName.test: added several tests for the above bugs.
8372 * doc/FileSystem.3: clarified documentation on refCount requirements
8373 of the object returned by the path type function.
8374 * generic/tclIOUtil.c:
8376 * unix/tclUnixFile.c:
8377 * mac/tclMacFile.c: moved TclpFilesystemPathType to the platform
8378 specific directories, so we can add missing platform-specific
8379 implementations. On Windows, 'file system' now returns useful results
8380 like "native NTFS", "native FAT" for that system. Unix and MacOS still
8381 only return "native".
8382 * doc/file.n: clarified documentation.
8383 * tests/winFile.test: test for 'file system' returning correct values.
8384 * tests/fileSystem.test: test for 'file system' returning correct
8385 values. Clean up after failed previous test run.
8387 2002-04-26 Jeff Hobbs <jeffh@ActiveState.com>
8390 * unix/tcl.m4: change HP-11 SHLIB_LD_LIBS from "" to ${LIBS} so that
8391 the .sl knows its dependent libs.
8393 2002-04-26 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8395 * tests/obj.test (obj-11.[56]): Test conversion to boolean more
8397 * generic/tclObj.c (SetBooleanFromAny): Was not calling an integer
8398 parsing function on native 64-bit platforms! [Bug 548686]
8400 2002-04-24 Jeff Hobbs <jeffh@ActiveState.com>
8402 * generic/tclInt.h: corrected TclRememberJoinableThread decl to use
8403 VOID instead of void.
8404 * generic/tclThreadJoin.c: noted that this code isn't needed on Unix.
8406 2002-04-23 Jeff Hobbs <jeffh@ActiveState.com>
8409 * doc/tclvars.n: doc updates [Patch 509426] (gravereaux)
8411 2002-04-24 Daniel Steffen <das@users.sourceforge.net>
8413 * mac/tclMacResource.r: added check of TCLTK_NO_LIBRARY_TEXT_RESOURCES
8414 #define to allow disabling the inclusion of the tcl library code in
8415 the resource fork of Tcl executables and shared libraries.
8417 2002-04-23 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8419 * doc/TraceCmd.3: New file that documents Tcl_CommandTraceInfo,
8420 Tcl_TraceCommand and Tcl_UntraceCommand [Bug 414927]
8422 2002-04-22 Jeff Hobbs <jeffh@ActiveState.com>
8424 * generic/tclAlloc.c:
8426 * generic/tclThreadAlloc.c (new):
8428 * unix/tclUnixThrd.c:
8431 * win/tclWinThrd.c: added new threaded allocator contributed by AOL
8432 that significantly reduces lock contention when multiple threads are
8433 in use. Only Windows and Unix implementations are ready, and the
8434 Windows one may need work. It is only used by default on Unix for now,
8435 and requires that USE_THREAD_ALLOC be defined (--enable-threads on
8436 Unix will define this).
8438 * generic/tclIOUtil.c (Tcl_FSRegister, Tcl_FSUnregister): corrected
8439 calling of Tcl_ConditionWait to ensure that there would be a condition
8442 * generic/tclCmdAH.c (Tcl_FileObjCmd): added cast in FILE_SIZE.
8444 * win/tclWinFCmd.c (DoDeleteFile): check return of setattr API calls
8445 in file deletion for correct Win32 API handling.
8447 * win/Makefile.in: correct dependencies for shell, gdb, runtest
8451 * compat/strftime.c (_fmt): change strftime to correctly handle
8452 localized %c, %x and %X on Windows. Added some notes about how the
8453 other values could be further localized.
8455 2002-04-19 Don Porter <dgp@users.sourceforge.net>
8457 * generic/tclMain.c (Tcl_Main): Free the memory allocated for the
8458 startup script path. [Bug 543549]
8460 * library/msgcat/msgcat.tcl: [mcmax] wasn't using the caller's
8461 namespace when determining the max translated length. Also made
8462 revisions for better use of namespace variables and more efficient
8466 * library/msgcat/msgcat.tcl:
8467 * library/msgcat/pkgIndex.tcl: Added [mcload] to the export list of
8468 msgcat; bumped to 1.2.3. [Bug 544727]
8470 2002-04-20 Daniel Steffen <das@users.sourceforge.net>
8472 * generic/tclInt.decls:
8473 * generic/tclIntPlatDecls.h:
8474 * generic/tclStubInit.c:
8477 * mac/tclMacUtil.c: Modified TclpObjNormalizePath to be alias file
8478 aware, and replaced various calls to FSpLocationFrom*Path by calls to
8479 new alias file aware versions FSpLLocationFrom*Path. The alias file
8480 aware routines don't resolve the last component of a path if it is an
8481 alias. This allows [file copy/delete] etc. to act correctly on alias
8482 files. (c.f. discussion in [Bug 511666])
8484 2002-04-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8486 * tests/lindex.test (lindex-3.7):
8487 * generic/tclUtil.c (TclGetIntForIndex): Stopped indexes from hitting
8488 wide ints. [Bug 526717]
8490 2002-04-18 Miguel Sofer <msofer@users.sourceforge.net>
8492 * generic/tclNamesp.c:
8493 * tests/info.test: [Bug 545325] info level didn't report namespace
8494 eval, bug report by Richard Suchenwirth.
8496 2002-04-18 Don Porter <dgp@users.sourceforge.net>
8498 * doc/subst.n: Clarified documentation on handling unusual return
8499 codes during substitution, and on variable substitutions implied by
8500 command substitution, and vice versa. [Bug 536838]
8502 2002-04-18 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8504 * generic/tclCmdIL.c (InfoBodyCmd):
8505 * tests/info.test (info-2.6): Proc bodies without string reps would
8506 report as empty [Bug 545644]
8508 * generic/tclCmdMZ.c (Tcl_SubstObj): More clarification for comment on
8509 behaviour when substitutions are not well-formed, prompted by [Bug
8510 536831]; alas, removing the ill-defined behaviour is a lot of work.
8512 2002-04-18 Miguel Sofer <msofer@users.sourceforge.net>
8514 * generic/tclExecute.c:
8515 * tests/expr-old.test: fix for [Bug 542588] (Phil Ehrens), where "too
8516 large integers" were reported as "floating-point value" in [expr]
8519 2002-04-17 Jeff Hobbs <jeffh@ActiveState.com>
8521 * generic/tclEncoding.c (EscapeFromUtfProc):
8522 * generic/tclIO.c (WriteChars, Tcl_Close): corrected the handling of
8523 outputting end escapes for escape-based encodings.
8524 [Bug 526524] (yamamoto)
8526 2002-04-17 Don Porter <dgp@users.sourceforge.net>
8528 * doc/tcltest.n: Removed [saveState] and [restoreState] from tcltest
8529 2 documentation, effectively deprecating them. [Bug 495660]
8530 * library/tcltest/tcltest.tcl: Made separate export for commands kept
8531 only for tcltest 1 compatibility.
8533 * tests/iogt.test: Revised to run tests in a namespace, rather than
8534 use the useless and buggy [saveState] and [restoreState] commands of
8535 tcltest. Updated to use tcltest 2 as well. [Patch 544911]
8537 2002-04-16 Don Porter <dgp@users.sourceforge.net>
8539 * tests/io.test: Revised to run tests in a namespace, rather than use
8540 the useless and buggy [saveState] and [restoreState] commands of
8541 tcltest. Updated to use tcltest 2 as well. [Patch 544546]
8543 2002-04-15 Miguel Sofer <msofer@users.sourceforge.net>
8545 * generic/tclProc.c:
8546 * tests/proc-old.test: Improved stack trace for TCL_BREAK and
8547 TCL_CONTINUE returns from procs. [Bug 536955] (dgp)
8549 * generic/tclExecute.c:
8550 * tests/compile.test: made bytecodes check for a catch before
8551 returning; the compiled [return] is otherwise non-catchable. [Bug
8552 542142] reported by Andreas Kupries.
8554 2002-04-15 Don Porter <dgp@users.sourceforge.net>
8556 * tests/socket.test: Increased timeout values so that tests have time
8557 to successfully complete even on slow/busy machines. [Bug 523470]
8560 * library/tcltest/tcltest.tcl:
8561 * tests/tcltest.test: Revised [tcltest::test] to return errors when
8562 called with invalid syntax and to accept exactly two arguments as
8563 documented. Improved error messages. [Bug 497446, Patch 513983]
8564 ***POTENTIAL INCOMPATIBILITY***: Incompatible with previous
8565 tcltest 2.* releases, found only in alpha releases of Tcl 8.4.
8567 2002-04-11 Jeff Hobbs <jeffh@ActiveState.com>
8569 * generic/tclNotify.c (TclFinalizeNotifier): remove remaining
8570 unserviced events on finalization.
8572 * win/tcl.m4: Enabled COFF as well as CV style debug info with
8573 --enable-symbols to allow Dr. Watson users to see function info. More
8574 info on debugging levels can be obtained at:
8575 http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp
8577 * tests/ioCmd.test: fixed iocmd-8.15 to have mac and unixPc variants.
8579 * generic/tclParse.c (Tcl_ParseVar): conditionally incr obj refcount
8580 to prevent possible mem leak.
8582 2002-04-08 Daniel Steffen <das@users.sourceforge.net>
8584 * generic/tcl.h: no <sys/types.h> on mac.
8585 * mac/tclMacFile.c: minor fixes to Vince's changes from 03-24.
8587 * mac/tclMacResource.c: added missing Tcl_UtfToExternalDString
8588 conversions of resource file names.
8589 * mac/tclMacSock.c (TcpGetOptionProc): fixed bug introduced by Andreas
8590 on 02-25; changed strcmp's to strncmp's so that option comparison
8591 behaves like on other platforms.
8592 * mac/tcltkMacBuildSupport.sea.hqx (CW Pro6 changes): added support to
8593 allow Tk to hookup C library stderr/stdout to TkConsole.
8596 * tests/encoding.test:
8597 * tests/fileSystem.test:
8598 * tests/ioCmd.test: fixed tests failing on mac: check for existence of
8599 [exec], changed some result strings.
8601 2002-04-06 Jeff Hobbs <jeffh@ActiveState.com>
8603 * unix/tclUnixFCmd.c (Realpath): added a little extra code to
8604 initialize a realpath arg when compiling in PURIFY mode in order to
8605 prevent spurious purify warnings. We should really create our own
8606 realpath implementation, but this will at least quiet purify for now.
8608 2002-04-05 Don Porter <dgp@users.sourceforge.net>
8610 * generic/tclCmdMZ.c (Tcl_SubstObj):
8611 * tests/subst.test: Corrected [subst] so that return codes TCL_BREAK
8612 and TCL_CONTINUE returned by variable substitution have the same
8613 effect as when those codes are returned by command substitution. [Bug
8616 2002-04-03 Jeff Hobbs <jeffh@ActiveState.com>
8618 * library/tcltest/tcltest.tcl: added getMatchingFiles back (alias
8619 to GetMatchingFiles), which was a public function in tcltest 1.0.
8621 2002-04-01 Vince Darley <vincentdarley@users.sourceforge.net>
8624 * generic/tclIOUtil.c: invalidate filesystem cache when the user
8625 changes env(HOME). Fixes [Bug 535621]. Also cleaned up some of the
8627 * tests/fileSystem.test: added test for bug just fixed.
8629 2002-04-01 Kevin Kenny <kennykb@acm.org>
8631 * win/tclWinTime.c (Tcl_GetTime): made the checks of clock frequency
8632 more permissive to cope with the fact that Win98SE is observed to
8633 return 1.19318 in place of 1.193182 for the performance counter
8636 2002-03-29 Jeff Hobbs <jeffh@ActiveState.com>
8638 * generic/tclCmdMZ.c (Tcl_TraceObjCmd, TraceVarProc)
8639 (TraceCommandProc, TclTraceCommandObjCmd): corrected potential
8640 double-free of traces on variables by flagging in Trace*Proc that it
8641 will free the var in case the eval wants to delete the var trace as
8643 Also converted Tcl_UntraceVar -> Tcl_UntraceVar2 and Tcl_Eval to
8644 Tcl_EvalEx in Trace*Proc for slight efficiency improvement.
8646 2002-03-29 Don Porter <dgp@users.sourceforge.net>
8649 * generic/tclBasic.c (Tcl_EvalObjv,Tcl_EvalEx,Tcl_EvalObjEx):
8650 * generic/tclCompile.h (TclCompEvalObj):
8651 * generic/tclExecute.c (TclCompEvalObj,TclExecuteByteCode):
8652 * tests/basic.test: Corrected problems with Tcl_AllowExceptions having
8653 influence over the wrong scope of Tcl_*Eval* calls. Patch from Miguel
8654 Sofer. Report from Jean-Claude Wippler. [Bug 219181]
8656 2002-03-28 Don Porter <dgp@users.sourceforge.net>
8658 * generic/tclVar.c: Refactored CallTraces to collect repeated handling
8659 of its returned value into CallTraces itself.
8661 2002-03-28 David Gravereaux <davygrvy@pobox.com>
8663 * tools/feather.bmp:
8664 * tools/man2help.tcl:
8665 * tools/man2help2.tcl:
8666 * win/makefile.vc: More winhelp target fixups. Added a feather bitmap
8667 to the non-scrollable area and changed the color to be yellow from a
8668 plain white. The colors can be whatever we want them to be, but
8669 thought I would start with something bold. [Bug 527941]
8673 * doc/UpVar.3: .AP macro syntax repair.
8675 2002-03-27 David Gravereaux <davygrvy@pobox.com>
8677 * tools/man2help.tcl:
8678 * win/makefile.vc: winhelp target now copies all needed files from
8679 tools/ to a workarea under $(OUT_DIR) and builds it from there. No
8680 build cruft is left in tools/ anymore. All paths used in man2help.tcl
8681 are now relative to where the script is. [Bug 527941]
8683 2002-03-27 David Gravereaux <davygrvy@pobox.com>
8686 * win/buildall.vc.bat:
8689 * win/nmakehlp.c (new):
8690 * win/rules.vc: First draft fix for [Bug 527941]. More changes need to
8691 done to the makehelp target to get to stop leaving build files in the
8692 tools/ directory. This does not address the syntax errors in the man
8693 files. Having the contents of tcl.hpj(.in) inside makefile.vc allows
8694 for version numbers to be replaced with macros.
8696 The new nmakehlp.c is built by rules.vc in preprocessing and removes
8697 the need to use tricky shell syntax that wasn't compatible on Win9x
8698 systems. Clean targets made Win9x complient. This is a first draft
8699 repair for [Bug 533862].
8701 2002-03-28 Miguel Sofer <msofer@users.sourceforge.net>
8703 * generic/tclBasic.c (Tcl_EvalEx): passing the correct commandSize
8704 to TclEvalObjvInternal. [Bug 219362], fix by David Knoll.
8706 2002-03-28 Miguel Sofer <msofer@users.sourceforge.net>
8708 * generic/tclBasic.c (Tcl_EvalEx):
8709 * tests/basic.test: avoid exceptional returns at level 0
8712 2002-03-27 Don Porter <dgp@users.sourceforge.net>
8714 * doc/tcltest.n ([mainThread]):
8715 * library/tcltest/tcltest.tcl:
8716 * tests/tcltest.test: Major code cleanup to deal with whitespace,
8717 coding conventions, and namespace issues, with several minor bugs
8718 fixed in the process.
8720 * tests/main.test: Added missing [after cancel]s.
8722 2002-03-25 Don Porter <dgp@users.sourceforge.net>
8724 * tests/main.test: Removed workarounds for Bug 495977.
8726 * library/tcltest/tcltest.tcl: Keep the value of $::auto_path
8727 unchanged, so that the tcltest package can test code that depends
8728 on auto-loading. If a testing application needs $::auto_path pruned,
8729 it should do that itself. [Bug 495726]
8730 Improve the processing of the -constraints option to [test] so that
8731 constraint lists can have arbitrary whitespace, and non-lists don't
8732 blow things up. [Bug 495977]
8733 Corrected faulty variable initialization. [Bug 534845]
8735 2002-03-25 Miguel Sofer <msofer@users.sourceforge.net>
8737 * doc/CrtTrace.3: small doc correction
8738 * generic/tclBasic.c (Tcl_DeleteTrace): Allow NULL callback on
8739 trace deletions [Bug 534728] (Hemang Lavana).
8741 2002-03-24 Miguel Sofer <msofer@users.sourceforge.net>
8743 * generic/tclBasic.c (Tcl_EvalObjv): replaced obscure, incorrect
8744 code as described in [Bug 533907] (Don Porter).
8746 2002-03-24 Don Porter <dgp@users.sourceforge.net>
8748 * library/tcltest/tcltest.tcl: Use [interpreter] to set/query the
8749 executable currently running the tcltest package. [Bug 454050]
8751 * library/tcltest/tcltest.tcl: Allow non-proc commands to be used
8752 as the customization hooks. [Bug 495662]
8754 2002-03-24 Vince Darley <vincentdarley@users.sourceforge.net>
8756 * generic/tclFilename.c:
8757 * generic/tclFCmd.c:
8758 * generic/tclTest.c:
8760 * generic/tclIOUtil.c:
8764 * unix/tclUnixFile.c:
8765 * unix/tclUnixFCmd.c:
8770 * tests/fileName.test:
8771 * tests/fileSystem.test: (new file)
8772 * tests/winFCmd.test: fix [Bug 511666] and [Bug 511658], and improved
8773 documentation of some aspects of the filesystem, particularly
8774 'Tcl_FSMatchInDirectory' which now might match a single file/directory
8775 only, and 'file normalize' which wasn't very clear before. Removed
8776 inconsistency betweens docs and the Tcl_Filesystem structure. Also
8777 fixed [Bug 523217] and corrected file normalization on Unix so that it
8778 expands symbolic links. Added some new tests of the filesystem code
8779 (in the new file 'fileSystem.test'), and some extra tests for correct
8780 handling of symbolic links. Fix to [Bug 530960] which shows up on
8781 Win98. Made comparison with ".com" case insensitive in tclWinPipe.c
8783 ***POTENTIAL INCOMPATIBILITY***: But only between alpha releases
8784 (users of the new Tcl_Filesystem lookup table in Tcl 8.4a4 need to
8785 handle the new way in which Tcl may call Tcl_FSMatchInDirectory, and
8786 'file normalize' on unix now behaves correctly). Only known impact is
8787 with the 'tclvfs' extension.
8789 2002-03-22 Miguel Sofer <msofer@users.sourceforge.net>
8791 * tests/basic.test (basic-46.1): adding test for [Bug 533758], fixed
8794 2002-03-22 Jeff Hobbs <jeffh@ActiveState.com>
8796 * win/tclWinInt.h: moved undef of TCL_STORAGE_CLASS. [Bug 478579]
8798 2002-03-22 Miguel Sofer <msofer@users.sourceforge.net>
8800 * generic/tclBasic.c (Tcl_EvalObjEx):
8801 * generic/tclExecute.c (TclCompEvalObj): fixed the errorInfo for
8802 return codes other than (TCL_OK, TCL_ERROR) to runLevel 0 [Bug
8803 533758]. Removed the static RecordTracebackInfo(), as its
8804 functionality is easily replicated by Tcl_LogCommandInfo. Bug and
8805 redundancy noted by Don Porter.
8807 2002-03-21 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8809 * doc/expr.n: Improved documentation for ceil and floor [Bug 530535]
8811 2002-03-20 Don Porter <dgp@users.sourceforge.net>
8816 * generic/tcl.h (Tcl_VarTraceProc):
8817 * generic/tcl.decls (Tcl_GetVar2, Tcl_SetVar2, Tcl_TraceVar2)
8818 (Tcl_UnsetVar2, Tcl_UntraceVar2, Tcl_UpVar2, Tcl_VarTraceInfo2)
8819 (Tcl_GetVar2Ex, TclSetVar2Ex):
8820 * generic/tclCmdMZ.c (TraceVarProc):
8821 * generic/tclEnv.c (EnvTraceProc):
8822 * generic/tclEvent.c (VwaitVarProc):
8823 * generic/tclInt.decls (TclLookupVar,TclPrecTraceProc):
8824 * generic/tclLink.c (LinkTraceProc):
8825 * generic/tclUtil.c (TclPrecTraceProc):
8826 * generic/tclVar.c (CallTraces, MakeUpvar, VarErrMsg, TclLookupVar,
8827 (Tcl_GetVar2, Tcl_SetVar2, Tcl_TraceVar2, Tcl_UnsetVar2)
8828 (Tcl_UntraceVar2, Tcl_UpVar2, Tcl_VarTraceInfo2, Tcl_GetVar2Ex)
8829 (TclSetVar2Ex): Updated interfaces of generic/tclVar.c according to
8830 TIP 27. In particular, the "part2" arguments were CONSTified.
8832 * generic/tclDecls.h:
8833 * generic/tclIntDecls.h: make genstubs
8835 2002-03-15 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8837 * tests/compile.test (compile-12.3): Test to detect bug 530320.
8838 * generic/tclCompile.c (TclCompileTokens): Fixed buffer overrun
8839 reported in bug 530320.
8841 2002-03-14 Mo DeJong <mdejong@users.sourceforge.net>
8843 * win/configure: Regen.
8844 * win/configure.in: Add configure time test for SEH support in the
8846 * win/tclWin32Dll.c (ESP, EBP, TclpCheckStackSpace,
8847 (_except_checkstackspace_handler):
8848 * win/tclWinChan.c (ESP, EBP, Tcl_MakeFileChannel,
8849 (_except_makefilechannel_handler):
8850 * win/tclWinFCmd.c (ESP, EBP, DoRenameFile, DoCopyFile,
8851 (_except_dorenamefile_handler, _except_docopyfile_handler): Implement
8852 SEH support under gcc using inline asm. Tcl and Tk should now compile
8853 with Mingw 1.1. [Patch 525746]
8855 2002-03-14 Mo DeJong <mdejong@users.sourceforge.net>
8857 * win/tclWinFCmd.c (DoRenameFile, DoCopyFile): Handle an SEH exception
8858 with EXCEPTION_EXECUTE_HANDLER instead of restarting the faulting
8859 instruction with EXCEPTION_CONTINUE_EXECUTION. Bug 466102 provides an
8860 example of how restarting could send Tcl into an infinite loop. [Patch
8863 2002-03-11 Mo DeJong <mdejong@users.sourceforge.net>
8865 * win/tclWinFCmd.c (DoRenameFile, DoCopyFile, DoDeleteFile,
8866 (DoRemoveJustDirectory): Make sure we don't pass NULL or "" as a path
8867 name to Win32 API functions since this was crashing under Windows 98.
8869 2002-03-11 Don Porter <dgp@users.sourceforge.net>
8871 * library/tcltest/tcltest.tcl:
8872 * library/tcltest/pkgIndex.tcl: Bumped tcltest package to 2.0.2.
8874 2002-03-11 Mo DeJong <mdejong@users.sourceforge.net>
8876 * library/tcltest/tcltest.tcl (getMatchingFiles): Pass a proper list
8877 to foreach to avoid munging a Windows patch like D:\Foo\Bar into
8878 D:FooBar before the glob.
8880 2002-03-11 Mo DeJong <mdejong@users.sourceforge.net>
8882 * generic/tclEncoding.c: Fix typo in comment.
8883 * generic/tclIO.c (DoReadChars, ReadBytes, ReadChars): Use NULL value
8884 instead of pointer set to NULL to make things more clear. Reorder
8885 arguments so that they match the function signatures. Cleanup little
8886 typos and add more descriptive comment.
8888 2002-03-08 Mo DeJong <mdejong@users.sourceforge.net>
8890 * win/README: Update to indicate that Mingw 1.1 is required to build
8891 Tcl. Add section describing new msys based build process. Update
8892 Cygwin build instructions so users know where to find Mingw 1.1.
8894 2002-03-08 Jeff Hobbs <jeffh@ActiveState.com>
8896 * win/tclWinFCmd.c (DoCopyFile): correctly set retval to TCL_OK.
8898 2002-03-07 Mo DeJong <mdejong@users.sourceforge.net>
8900 * win/tclWin32Dll.c (TclpCheckStackSpace):
8901 * win/tclWinFCmd.c (DoRenameFile, DoCopyFile): Replace hard coded
8902 constants with Win32 symbolic names. Move control flow statements out
8903 of __try blocks since the documentation indicates it is frowned upon.
8905 2002-03-07 Don Porter <dgp@users.sourceforge.net>
8908 * generic/tclInterp.c (Tcl_InterpObjCmd,SlaveObjCmd,
8909 (SlaveRecursionLimit):
8910 * generic/tclTest.c:
8911 * tests/interp.test: Added the [interp recursionlimit] command to
8912 set/query the recursion limit of an interpreter. Proposal and
8913 implementation from Stephen Trier. [TIP 87, Patch 522849]
8915 2002-03-06 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8917 * generic/tcl.h, tools/tcl.wse.in, unix/configure.in,
8918 * unix/tcl.spec, win/README.binary, win/configure.in, README:
8919 Bumped patchlevel; this might need to change in the future, but it
8920 will help us distinguish between the CVS version and the most
8921 recent released version.
8923 2002-03-06 Miguel Sofer <msofer@users.sourceforge.net>
8925 * generic/tclInt.h: for unshared objects, TclDecrRefCount now frees
8926 the internal rep before the string rep - just like the non-macro
8927 Tcl_DecrRefCount/TclFreeObj [Bug 524802].
8929 2002-03-06 Donal K. Fellows <fellowsd@cs.man.ac.uk>
8931 * doc/lsearch.n: Documentation of new features, plus examples.
8932 * tests/lsearch.test: Tests of new features.
8933 * generic/tclCmdIL.c (Tcl_LsearchObjCmd): TIP#80 support. See
8934 http://purl.org/tcl/tip/80 for details.
8936 2002-03-05 Jeff Hobbs <jeffh@ActiveState.com>
8938 *** 8.4a4 TAGGED FOR RELEASE ***
8940 * unix/tclUnixChan.c: initial remedy for [Bug 525783] flush problem
8941 introduced by TIP #35. This may not satisfy true serial channels, but
8942 it restores the correct flushing of std* channels on exit.
8944 * unix/README: added --enable-langinfo doc.
8947 * tools/tcl.wse.in: fixed URL refs to use www.tcl.tk or SF.
8949 2002-03-04 Jeff Hobbs <jeffh@ActiveState.com>
8956 * win/README.binary: updated to use www.tcl.tk URL.
8958 * unix/Makefile.in: added older ChangeLogs to dist target.
8961 * tests/encoding.test: corrected iso2022 encoding results.
8963 * generic/tclEncoding.c (EscapeFromUtfProc): corrected output of
8964 escape codes as per RFC 1468. [Patch 474358] (taguchi)
8965 (TclFinalizeEncodingSubsystem): corrected potential double-free
8966 when encodings were finalized on exit. [Bug 219314, 524674]
8968 2002-03-01 Jeff Hobbs <jeffh@ActiveState.com>
8970 * library/encoding/iso2022-jp.enc:
8971 * library/encoding/iso2022.enc:
8972 * tools/encoding/iso2022-jp.esc:
8973 * tools/encoding/iso2022.esc: gave <ESC>$B precedence over <ESC>$@,
8974 based on comments (point 1) in [Bug 219283] (RFC 1468)
8976 * tests/encoding.test: added encoding-23.* tests
8977 * generic/tclIO.c (FilterInputBytes): reset the TCL_ENCODING_START
8978 flags in the ChannelState when using 'gets'. [Bug 523988]
8979 Also reduced the value of ENCODING_LINESIZE from 30 to 20 as this
8980 seems to improve the performance of 'gets' according to tclbench.
8982 2002-02-28 Jeff Hobbs <jeffh@ActiveState.com>
8984 * generic/tclCmdMZ.c (TraceCommandProc): ensure that TraceCommandInfo
8985 structure was also deleted when a command was deleted to prevent a
8988 * generic/tclBasic.c (Tcl_CreateObjTrace): set tracePtr->flags
8991 * generic/tclTimer.c (TimerExitProc): remove remaining events in
8994 2002-02-28 Miguel Sofer <msofer@users.sourceforge.net>
8996 * generic/tclNamesp.c: allow cached fully-qualified namespace names to
8997 be usable from different namespaces within the same interpreter
8998 without forcing a new lookup [Patch 458872].
9000 2002-02-28 Miguel Sofer <msofer@users.sourceforge.net>
9002 * generic/tclExecute.c: Replaced a few direct stack accesses with the
9003 POP_OBJECT() macro [Bug 507181] (Don Porter).
9005 2002-02-27 Don Porter <dgp@users.sourceforge.net>
9008 * generic/tcl.decls (Tcl_GetIndexFromObjStruct):
9009 * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Revised the
9010 prototype of the Tcl_GetIndexFromObjStruct to take its struct
9011 table as a (CONST VOID *) argument, better describing what it is,
9012 maintaining source compatibility, and adding CONST correctness
9013 according to TIP 27. Thanks to Joe English for an elegant
9014 solution. [Bug 520304]
9016 * generic/tclDecls.h: make genstubs
9018 * generic/tclMain.c (Tcl_Main,StdinProc): Corrected some reference
9019 count management errors on the interactive command Tcl_Obj found by
9020 Purify. Thanks to Jeff Hobbs for the report and assistance.
9022 2002-02-27 Jeff Hobbs <jeffh@ActiveState.com>
9024 * generic/tclBasic.c (Tcl_EvalTokensStandard): corrected mem leak
9027 * generic/tclTest.c (TestStatProc[123]): correct harmless UMRs.
9029 * generic/tclLink.c (Tcl_LinkVar): correct mem leak in error case.
9031 2002-02-27 Andreas Kupries <andreas_kupries@users.sourceforge.net>
9033 * tests/socket.test (2.7): Accepted and applied patch for [Bug 523470]
9034 provided by Don Porter <dgp@users.sourceforge.net> to avoid timing
9035 problems in that test.
9037 * unix/tclUnixChan.c (TclpOpenFileChannel): Added code to regonize
9038 "/dev/tty" (by name) and to not handle it as tty / serial line. This
9039 is the controlling terminal and is special. Setting it into raw mode
9040 as is done for other tty's is a bad idea. This is a hackish fix for
9041 expect [Bug 520624]. The fix has limitation: Tcl_MakeFileChannel
9042 handles tty's specially too, but is unable to recognize /dev/tty as it
9043 only gets a file descriptor, and no name for it.
9045 2002-02-26 Jeff Hobbs <jeffh@ActiveState.com>
9047 * generic/tclCmdAH.c (StoreStatData): corrected mem leak.
9049 * generic/tclCmdMZ.c (Tcl_RegsubObjCmd): prevent obj leak in remedial
9052 * generic/tclFileName.c (Tcl_TranslateFileName): decr refcount for
9053 error case to prevent mem leak.
9055 * generic/tclVar.c (Tcl_ArrayObjCmd): removed extra obj allocation.
9057 * unix/tclUnixSock.c (Tcl_GetHostName): added an extra gethostbyname
9058 check to guard against failure with truncated names returned by uname.
9061 * unix/tcl.m4 (SC_SERIAL_PORT): added sys/modem.h check and defined
9062 _XOPEN_SOURCE_EXTENDED for HP-11 to get updated header decls.
9064 * unix/tclUnixChan.c: added Unix implementation of TIP #35, serial
9065 port support. [Patch 438509] (schroedter)
9067 2002-02-26 Miguel Sofer <msofer@users.sourceforge.net>
9069 * generic/tclCmpCmds.c: (bugfix to the bugfix, hopefully the last)
9070 Bugfix to the new [for] compiling code: was setting a exceptArray
9071 parameter using another param which wasn't yet initialised, thus
9072 filling it with noise.
9074 2002-02-25 Andreas Kupries <andreas_kupries@users.sourceforge.net>
9076 * mac/tclMacSock.c (TcpGetOptionProc): Changed to recognize the option
9077 "-error". Essentially ignores the option, always returning an empty
9080 2002-02-25 Jeff Hobbs <jeffh@ActiveState.com>
9087 * doc/TCL_MEM_DEBUG.3: Updated documentation to describe the ckalloc,
9088 ckfree, ckrealloc, attemptckalloc, and attemptckrealloc macros, and
9089 to accurately describe when and how they are used. [Bug 497459] (dgp)
9091 * generic/tclHash.c (AllocArrayEntry, AllocStringEntry): Before
9092 invoking ckalloc when creating a Tcl_HashEntry, check that the amount
9093 of memory being allocated is at least as large as
9094 sizeof(Tcl_HashEntry). The previous code was allocating memory regions
9095 that were one or two bytes short. [Bug 521950] (dejong)
9097 2002-02-25 Miguel Sofer <msofer@users.sourceforge.net>
9099 * generic/tclBasic.c (Tcl_EvalEx): avoiding a buffer overrun reported
9100 by Joe English, and restoring tcl7.6 behaviour for [subst]: badly
9101 terminated nested scripts will raise an error and not be evaluated.
9104 2002-02-25 Don Porter <dgp@users.sourceforge.net>
9106 * unix/tclUnixPort.h: corrected strtoll prototype mismatch on Tru64.
9107 * compat/strtod.c (strtod): simplified #includes
9108 * compat/strtol.c (strtol): gather result in a long before returning
9109 as a long: necessary on platforms where sizeof(int) != sizeof(long).
9111 2002-02-25 Daniel Steffen <das@users.sourceforge.net>
9113 * unix/tclLoadDyld.c: updated to use Mac OS X 10.1 dyld APIs that have
9114 more libdl-like semantics. [Bug 514392]
9116 2002-02-25 Miguel Sofer <msofer@users.sourceforge.net>
9118 * generic/tclCompCmds: fixing a bug in patch dated 2002-02-22, in the
9119 code for [for] and [while]. Under certain conditions, for long bodies,
9120 the exception range parameters were badly computed. Tests forthcoming:
9121 I still can't reproduce the conditions in the testsuite (!), although
9122 the bug (with assorted segfault or panic!) can be triggered from the
9123 console or with the new parse.bench in tclbench.
9125 2002-02-25 Donal K. Fellows <fellowsd@cs.man.ac.uk>
9127 * compat/strtoul.c, compat/strtol.c, compat/strtod.c: Added UCHAR,
9128 CONST and #includes to clean up GCC output.
9130 2002-02-23 Don Porter <dgp@users.sourceforge.net>
9132 * compat/strtoull.c (strtoull):
9133 * compat/strtoll.c (strtoll):
9134 * compat/strtoul.c (strtoul): Fixed failure to handle leading sign
9135 symbols '+' and '-' and '0X' and raise overflow errors. [Bug 440916]
9136 Also corrects prototype and errno problems.
9138 2002-02-23 Mo DeJong <mdejong@users.sourceforge.net>
9141 * unix/tcl.m4 (SC_CONFIG_CFLAGS): Link with -n32 instead of -32 when
9142 building on IRIX64-6.* system. [Bug 521707]
9144 2002-02-22 Don Porter <dgp@users.sourceforge.net>
9147 * generic/tclObj.c: renamed global variable emptyString ->
9148 tclEmptyString because it is no longer static.
9149 * generic/tclPkg.c: Fix for panic when library is loaded on a
9150 platform without backlinking without proper use of stubs. [Bug 476537]
9152 2002-02-22 Jeff Hobbs <jeffh@ActiveState.com>
9154 * tests/regexpComp.test: updated regexp-11.[1-4] to match changes
9155 in regexp.test for new regsub syntax
9158 * unix/tcl.m4: added --enable-64bit support for AIX-4 (using -q64
9159 flag) when using IBM's xlc compiler.
9161 * tests/safe.test: updated safe-8.5 and safe-8.7
9162 * library/safe.tcl (CheckFileName): removed the limit on
9163 sourceable file names (was only *.tcl or tclIndex files with no
9164 more than one dot and 14 chars). There is enough internal
9165 protection in a safe interpreter already. Fixes [Tk Bug 521560].
9167 2002-02-22 Miguel Sofer <msofer@users.sourceforge.net>
9169 * generic/tclCompCmds: [FR 465811]. Optimising [if], [for] and
9170 [while] for constant conditions; in addition, [for] and [while] are
9171 now compiled with the "loop rotation" optimisation (thanks to Kevin
9174 2002-02-22 Donal K. Fellows <fellowsd@cs.man.ac.uk>
9176 --- TIP#76 CHANGES ---
9177 * generic/tclCmdMZ.c (Tcl_RegsubObjCmd): Final-argument-less
9178 [regsub] returns the modified string.
9179 * doc/regsub.n: Updated docs.
9180 * tests/regexp.test: Updated and added tests.
9182 * compat/strtoll.c (strtoll):
9183 * compat/strtoull.c (strtoull):
9184 * unix/tclUnixPort.h:
9185 * win/tclWinPort.h: Const-ing 64-bit compatability declarations.
9186 Note that the return pointer is non-const because it is entirely
9187 legal for the functions to be called from somewhere that owns the
9188 string being passed. Fixes problem reported by Larry Virden.
9190 2002-02-21 David Gravereaux <davygrvy@pobox.com>
9192 * win/mkd.bat (removed):
9193 * win/coffbase.txt (new):
9195 * win/makefile.vc: Changed the 'setup' target to stop using the
9196 mkd.bat file and just make the directory right in the rule. Same
9197 change to makefile.bc. configure.in nor Makefile.in use it.
9199 coffbase.txt will be the master list for our "prefered base addresses"
9200 set by the linker. This should improve load-time (NT only) by avoiding
9201 relocations. Submissions to the list by extension authors are
9204 Added a 'tidy' target to compliment 'clean' and 'hose' to remove just
9205 the outputs. Also removed the $(winlibs) macro as it wasn't being
9209 1) get the winhelp target to stop building in the tools/ directory.
9210 2) stop using rmd.bat
9211 3) add more dependacy rules.
9213 * win/tclAppInit.c: Reverted back to -r1.6, as the header file change
9214 to tclPort.h won't allow for easy embedded support outside of the
9215 source dist. Thanks to Don Porter for pointing this out to me.
9217 2002-02-21 David Gravereaux <davygrvy@pobox.com>
9220 * win/rules.vc: Added a new "loimpact" option that sets the
9221 -ws:aggressive linker option. Off by default. It's said to keep the
9222 heap use low at the expense of alloc speed.
9224 * win/tclAppInit.c: Changed #include "tcl.h" to be tclPort.h to remove
9225 the raw windows.h include. tclPort.h brings in windows.h already and
9226 lessens the pre-compiled-header mush and the randomly useless #pragma
9227 comment (lib,...) references throughout the big windows.h tree (as
9228 observed at high linker warning levels).
9230 2002-02-21 Donal K. Fellows <fellowsd@cs.man.ac.uk>
9232 * generic/tcl.h: Better guessing of LP64/ILP32 architecture, but
9233 now sensitive to presence of (suitable) <limits.h>
9235 2002-02-20 Don Porter <dgp@users.sourceforge.net>
9237 * generic/tcl.decls (Tcl_RegExpRange,Tcl_GetIndexFromObjStruct):
9238 Overlooked a few source incompatibilities. Now using CONST84.
9239 * generic/tclDecls.h: make genstubs
9240 * generic/tcl.h (Tcl_CmdObjTraceProc): silence warning from Sun
9243 2002-02-20 David Gravereaux <davygrvy@pobox.com>
9245 * win/buildall.vc.bat:
9247 * win/rules.vc: General clean-ups. Added compiler and linker tests for
9248 a) the pentium 0x0F errata, b) optimizing (not all have this), and c)
9249 linker v6 section alignment confusion. All these are tested first to
9250 make sure any D4002 or LNK1117 warnings aren't displayed. The pentium
9251 0x0F errata is a recommended switch. The v5 linker's section alignment
9252 default is 512, but the v6 linker was changed to 4096 in an attempt to
9253 speed loading on Win98. I changed the default to always be 512 across
9254 both linkers, unless linking statically, then 4096 is used for the
9255 claimed speed effect. Using a 512 alignment saves 12k bytes of dead
9258 Added IA64 B-stepping errata switch when the compiler supports it.
9260 Added profiling to $(lflags) when requested and also removed the
9261 explict -entry option as the default works fine as is.
9263 Removed win/tclWinInit.c from the special case section to let it use
9264 the common implicit rule as the $(EXTFLAGS) macro it had was never
9265 referenced anywhere.
9267 2002-02-20 Donal K. Fellows <fellowsd@cs.man.ac.uk>
9269 * generic/tcl.h: Added code to guess the correct settings for
9270 TCL_WIDE_INT_IS_LONG and TCL_WIDE_INT_TYPE when configure doesn't tell
9271 us them, as can happen with extensions.
9273 2002-02-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
9275 * doc/format.n: Updated docs to list the specification.
9276 * generic/tclCmdAH.c (Tcl_FormatObjCmd): Made behaviour on 64-bit
9277 platforms correctly meet the specification, that %d works with the
9278 native word-sized integer, instead of trying to guess (wrongly) from
9279 the value being passed.
9281 2002-02-19 Don Porter <dgp@users.sourceforge.net>
9283 * changes: First draft of updated changes for 8.4a4 release.
9285 2002-02-15 Jeff Hobbs <jeffh@ActiveState.com>
9287 * unix/tclUnixPort.h: add strtoll/strtoull declarations for platforms
9288 that do not define them.
9290 * generic/tclIndexObj.c (STRING_AT): removed ptrdiff_t cast and use of
9291 VOID* in default case (GNU-ism).
9293 2002-02-15 Kevin Kenny <kennykb@acm.org>
9297 * compat/strtoull.c:
9298 * generic/tclIOUtil.c:
9299 * generic/tclPosixStr.c:
9300 * generic/tclTest.c:
9301 * generic/tclTestObj.c:
9303 * win/Makefile.vc: Further tweaks to the TIP 72 patch to make it
9306 2002-02-15 Andreas Kupries <andreas_kupries@users.sourceforge.net>
9310 * tclIndexObj.c: Touchups to the TIP 72 patch to make it compileable
9311 under Windows again. The changes are not complete, there is one nasty
9314 2002-02-15 Donal K. Fellows <fellowsd@cs.man.ac.uk>
9316 +----------------------+
9317 | TIP #72 IMPLEMENTED. |
9318 +----------------------+
9320 There are a lot of changes from this TIP, so please see
9321 http://tip.tcl.tk/72.html for discussion of backward-compatability
9322 issues, but the main ones modifications are in:
9324 * generic/tcl.h: New types.
9325 * generic/tcl.decls: New public functions.
9326 * generic/tclExecute.c: 64-bit aware bytecode engine.
9327 * generic/tclBinary.c: 64-bit handling in [binary] command.
9328 * generic/tclScan.c: 64-bit handling in [scan] command.
9329 * generic/tclCmdAH.c: 64-bit handling in [file] and [format]
9331 * generic/tclBasic.c: New "wordSize" entry in ::tcl_platform.
9332 * generic/tclFCmd.c: Large-file support (with many consequences.)
9333 * generic/tclIO.c: Large-file support (with many consequences.)
9334 * compat/strtoll.c, compat/strtoull.c: New support functions.
9335 * unix/tcl.m4, unix/configure: 64-bit support and greatly enhanced
9338 Most other changes, including all those in doc/* and test/* as well as
9339 the majority in the platform directories, follow on from these.
9341 Also coming out of the woodwork:
9342 * generic/tclIndex.c: Better support for Cray PVP.
9343 * win/tclWinMtherr.c: Better Borland support.
9345 Note that, in a number of places through the Unix part of the platform
9346 support, there are Tcl_Platform* references. These are expanded into
9347 the correct way to call that particular underlying function, i.e. with
9348 or without a '64' suffix, and should be used by people working on the
9349 core in preference to the API functions they overlay so that the code
9350 remains portable depending on the presence or absence of 64-bit
9351 support on the underlying platform.
9353 ***POTENTIAL INCOMPATIBILITY***: Extracted from the TIP
9355 SUMMARY OF INCOMPATIBILITIES AND FIXES
9356 ======================================
9358 The behaviour of expressions containing constants that appear positive
9359 but which have a negative internal representation will change, as
9360 these will now usually be interpreted as wide integers. This is always
9361 fixable by replacing the constant with int(constant).
9363 Extensions creating new channel types will need to be altered as
9364 different types are now in use in those areas. The change to the
9365 declaration of Tcl_FSStat and Tcl_FSLstat (which are the new preferred
9366 API in any case) are less serious as no non-alpha releases have been
9367 made yet with those API functions.
9369 Scripts that are lax about the use of the l modifier in format and
9370 scan will probably need to be rewritten. This should be very uncommon
9371 though as previously it had absolutely no effect.
9373 Extensions that create new math functions that take more than one
9374 argument will need to be recompiled (the size of Tcl_Value changes),
9375 and functions that accept arguments of any type (TCL_EITHER) will need
9376 to be rewritten to handle wide integer values. (I do not expect this
9377 to affect many extensions at all.)
9379 2002-02-14 Andreas Kupries <andreas_kupries@users.sourceforge.net>
9381 * generic/tclIOCmd.c (Tcl_GetsObjCmd): Trivial fix for [Bug 517503], a
9382 memory leak reported by Miguel Sofer <msofer@users.sourceforge.net>.
9383 The leak happens if an error occurs for "set var [gets $chan]" and
9384 leak one empty object.
9386 2002-02-12 David Gravereaux <davygrvy@pobox.com>
9388 * djgpp/ (new directory)
9389 * djgpp/Makefile (new):
9390 * unix/tclAppInit.c:
9392 * unix/tclUnixFCmd.c:
9393 * unix/tclUnixFile.c:
9394 * unix/tclUnixInit.c:
9395 * unix/tclUnixPort.h: Early stage of DJGPP support for building Tcl
9396 on DOS. Dynamic loading isn't working, yet. Requires watt32 for the
9397 TCP/IP stack. No autoconf, yet. Barely tested, but makes a working exe
9398 that runs Tcl in protected-mode, flat memory. [exec] and pipes will
9399 need the most work as multi-tasking on DOS has to be carefully.
9401 2002-02-10 Kevin Kenny <kennykb@acm.org>
9405 * generic/tcl.decls:
9407 * generic/tclBasic.c:
9409 * generic/tclTest.c:
9410 * tests/basic.test: Added Tcl_CreateObjTrace,
9411 Tcl_GetCommandInfoFromToken and Tcl_SetCommandInfoFromToken.
9414 * generic/tclDecls.h:
9415 * generic/tclStubInit.c: Regenerated Stubs tables.
9417 2002-02-08 Jeff Hobbs <jeffh@ActiveState.com>
9420 * unix/tcl.m4: added -pthread for FreeBSD to EXTRA_CFLAGS and
9421 LDFLAGS. Also triggered nodots only for FreeBSD-3.
9422 Added AC_DEFINE(_POSIX_PTHREAD_SEMANTICS) for Solaris.
9424 * unix/tclUnixPort.h:
9425 * unix/tclUnixThrd.c: added thread-safe versions of readdir,
9426 localtime, gmtime and inet_ntoa for threaded build. (jgdavidson)
9428 * generic/tclScan.c (Tcl_ScanObjCmd): prevented ckfree being
9429 called on a pointer to NULL.
9431 2002-02-07 Don Porter <dgp@users.sourceforge.net>
9439 * generic/tcl.decls:
9441 * generic/tclEncoding.c:
9443 * generic/tclFileName.c:
9444 * generic/tclIOUtil.c:
9446 * generic/tclUtil.c:
9448 * unix/tclUnixFile.c:
9449 * unix/tclUnixInit.c:
9450 * unix/tclUnixPipe.c:
9451 * win/tclWin32Dll.c:
9454 * win/tclWinInit.c: Partial TIP 27 rollback. Following routines
9455 restored to return (char *): Tcl_DStringAppend,
9456 Tcl_DStringAppendElement, Tcl_JoinPath, Tcl_TranslateFileName,
9457 Tcl_ExternalToUtfDString, Tcl_UtfToExternalDString,
9458 Tcl_UniCharToUtfDString, Tcl_GetCwd, Tcl_WinTCharToUtf. Also
9459 restored Tcl_WinUtfToTChar to return (TCHAR *) and
9460 Tcl_UtfToUniCharDString to return (Tcl_UniChar *). Modified
9461 some callers. This change recognizes that Tcl_DStrings are
9462 de-facto white-box objects.
9464 * generic/tclDecls.h:
9465 * generic/tclPlatDecls.h: make genstubs
9467 * generic/tclCmdMZ.c: corrected use of C++-style comment.
9469 2002-02-06 Jeff Hobbs <jeffh@ActiveState.com>
9472 * generic/tclScan.c (Tcl_ScanObjCmd): corrected scan 0x... %x handling
9473 that didn't accept the 0x as a prelude to a base 16 number. [Bug
9476 * generic/tclCompCmds.c (TclCompileRegexpCmd): made early check
9477 for bad RE to stop checking further.
9479 * generic/tclCmdMZ.c (Tcl_RegsubObjCmd): added special case to
9480 search for simple 'string map' style regsub calls.
9481 Delayed creation of resultPtr object until an initial match is
9482 made, as the input string object can then be reused for no matches.
9483 (Tcl_StringObjCmd): optimization improvements to the STR_MAP
9484 algorithm for zero-length and nocase cases.
9486 * tests/regexp.test:
9487 * tests/regexpComp.test: extra code coverage tests.
9489 * tests/string.test: added 10.18 and 10.19 extra tests.
9491 * generic/regc_locale.c (casecmp): slight performance improvement.
9493 2002-02-05 Don Porter <dgp@users.sourceforge.net>
9495 * library/http/http.tcl:
9496 * library/http/pkgIndex.tcl: Corrected use of http::error when
9497 ::error was intended. Bump to http 2.4.2.
9499 2002-02-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>
9501 * unix/tclUnixChan.c (FileOutputProc): Fixed [bug 465765] reported by
9502 Dale Talcott <daletalcott@users.sourceforge.net>. Avoid writing
9503 nothing into a file as STREAM based implementations will consider this
9504 a EOF (if the file is a pipe). Not done in the generic layer as this
9505 type of writing is actually useful to check the state of a socket.
9507 * doc/open.n: Fixed [Bug 511540], added cross-reference to 'pid' as
9508 the command to use to retrieve the pid of a command pipeline created
9511 2002-02-01 Jeff Hobbs <jeffh@ActiveState.com>
9513 * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): handle quirky about case
9514 earlier to avoid shimmering problem.
9516 2002-02-01 Andreas Kupries <andreas_kupries@users.sourceforge.net>
9518 * tests/io.test: io-39.22 split into two tests, one platform
9519 dependent, the other not. -eofchar is not empty on the windows
9522 2002-02-01 Vince Darley <vincentdarley@users.sourceforge.net>
9524 * generic/tclTest.c: fix to picky windows compiler problem with the
9525 'MainLoop' function declaration.
9527 2002-01-31 Andreas Kupries <andreas_kupries@users.sourceforge.net>
9529 * win/tclWinFCmd.c: TIP 27: Applied patch fixing CONST warnings on
9530 behalf of Don Porter <dgp@users.sourceforge.net>.
9532 2002-01-30 Don Porter <dgp@users.sourceforge.net>
9534 * generic/tcl.decls:
9536 * generic/tclInt.h: For each interface identified in the TIP 27
9537 changes below as a POTENTIAL INCOMPATIBILITY, the source of the
9538 incompatibility has been parameterized so that it can be removed. When
9539 compiling extension code against the Tcl header files, use the
9540 compiler flag -DUSE_NON_CONST to remove the irresolvable source
9541 incompatibilities introduced by the TIP 27 changes. Resolvable changes
9542 are left for extension authors to resolve.
9543 * generic/tclDecls.h: make genstubs
9545 2002-01-30 Vince Darley <vincentdarley@users.sourceforge.net>
9547 * doc/FileSystem.3: added documentation for 3 public functions which
9548 had been overlooked. Fixes [Bug 507701]
9549 * unix/mkLinks: make mklinks
9551 2002-01-29 Jeff Hobbs <jeffh@ActiveState.com>
9553 * tests/regexpComp.test:
9554 * generic/tclCompCmds.c (TclCompileRegexpCmd): enhanced to support
9555 -nocase and -- options.
9557 2002-01-28 Mo DeJong <mdejong@users.sourceforge.net>
9559 * unix/tcl.m4 (SC_LOAD_TCLCONFIG):
9560 * win/tcl.m4 (SC_LOAD_TCLCONFIG): Set TCL_LIB_SPEC, TCL_STUB_LIB_SPEC,
9561 and TCL_STUB_LIB_PATH to the values of TCL_BUILD_LIB_SPEC,
9562 TCL_BUILD_STUB_LIB_SPEC, and TCL_BUILD_STUB_LIB_PATH when tclConfig.sh
9563 is loaded from the build directory. A Tcl extension should make use of
9564 the non-build versions of these variables since they will work in both
9565 cases. This modification was described in TIP #34.
9567 2002-01-28 Jeff Hobbs <jeffh@ActiveState.com>
9569 * win/tclWinReg.c (regConnectRegistryProc,RecursiveDeleteKey)
9570 (DeleteKey,GetKeyNames,GetType,GetValue,OpenSubKey,SetValue):
9571 redid the CONSTification as previous changes caused failing tests.
9573 * tests/regexpComp.test (new):
9575 * generic/tclBasic.c: added TclCompileRegexpCmd entry
9576 * generic/tclCompCmds.c (TclCompileStringCmd): corrected to return
9577 TCL_OUT_LINE_COMPILE instead of TCL_ERROR for parsing errors, so
9578 it only throws the error for runtime compile, in case the user
9580 (TclCompileRegexpCmd): first try at a byte-compiled regexp
9581 command. It handles static strings and ^$ bounded static strings.
9582 (TclCompileAppendCmd): made TclPushVarName call always use
9583 TCL_CREATE_VAR as numWords is always > 2 at that point.
9585 * generic/tclExecute.c (TclExecuteByteCode:INST_LIST): correct
9586 possibly dangerous decr in macro call.
9588 * win/tclWinInit.c (TclpFindVariable): CONSTification touch-up
9590 * win/tclWinReg.c (OpenSubKey): corrected bug introduced in
9591 CONSTification that dropped pointer reference.
9593 * ChangeLog.2000 (new file):
9594 * ChangeLog: broke changes from 2000 into ChangeLog.2000 to reduce
9595 size of the main ChangeLog.
9597 2002-01-28 David Gravereaux <davygrvy@pobox.com>
9599 * generic/tclPlatDecls.h: Added preprocessor logic to force a typedef
9600 of TCHAR when __STDC__ is defined when using the uncommon -Za compiler
9601 switch with the microsoft compiler.
9603 2002-01-27 Don Porter <dgp@users.sourceforge.net>
9605 * doc/package.n: Documented global namespace context for script
9606 evaluation by [package require].
9608 2002-01-27 Daniel Steffen <das@users.sourceforge.net>
9610 * generic/tclInt.decls:
9611 * generic/tclIntPlatDecls.h:
9617 * mac/tclMacResource.c:
9618 * mac/tclMacSock.c: TIP 27 CONSTification induced changes
9621 * tests/main.test: added catches/constraints to test that use features
9622 that don't exist on the mac.
9624 2002-01-25 Mo DeJong <mdejong@users.sourceforge.net>
9626 Make -eofchar and -translation options read only for server sockets.
9629 * generic/tclIO.c (Tcl_GetChannelOption, Tcl_SetChannelOption):
9630 Instead of returning nothing for the -translation option on a server
9631 socket, always return "auto". Return the empty string enclosed in
9632 quotes for the -eofchar option on a server socket. Fixup -eofchar
9633 usage message so that it matches the implementation.
9634 * tests/io.test: Add -eofchar tests and -translation tests to ensure
9635 options are read only on server sockets.
9636 * tests/socket.test: Update tests to account for -eofchar and
9637 -translation option changes.
9639 2002-01-25 Don Porter <dgp@users.sourceforge.net>
9641 * compat/strstr.c (strstr):
9642 * generic/tclCmdAH.c (Tcl_FormatObjCmd):
9643 * generic/tclCmdIL.c (InfoNameOfExecutableCmd):
9644 * generic/tclEnv.c (ReplaceString):
9645 * generic/tclFileName.c (ExtractWinRoot):
9646 * generic/tclIO.c (FlushChannel,Tcl_BadChannelOption):
9647 * generic/tclStringObj.c (AppendUnicodeToUtfRep):
9648 * generic/tclThreadTest.c (TclCreateThread):
9649 * generic/tclUtf.c (Tcl_UtfPrev):
9650 * mac/tclMacFCmd.c (TclpObjListVolumes):
9651 * mac/tclMacResource.c (TclMacRegisterResourceFork)
9652 (BuildResourceForkList):
9653 * win/tclWinInit.c (AppendEnvironment): Sought out and eliminated
9654 instances of CONST-casting that are no longer needed after the
9657 * Following is [Patch 501006]
9658 * generic/tclInt.decls (Tcl_AddInterpResolvers, Tcl_Export)
9659 (Tcl_FindNamespace, Tcl_GetInterpResolvers, Tcl_ForgetImport)
9660 (Tcl_Import, Tcl_RemoveInterpResolvers):
9661 * generic/tclNamesp.c (Tcl_Export, Tcl_Import, Tcl_ForgetImport)
9662 (Tcl_FindNamespace):
9663 * generic/tclResolve.c (Tcl_AddInterpResolvers,Tcl_GetInterpResolvers,
9664 (Tcl_RemoveInterpResolvers): Updated APIs in generic/tclResolve.c and
9665 generic/tclNamesp.c according to the guidelines of TIP 27.
9666 * generic/tclIntDecls.h: make genstubs
9668 * Following is [Patch 505630]
9669 * doc/AddErrorInfo.3:
9670 * generic/tcl.decls (Tcl_LogCommandInfo):
9671 * generic/tclBasic.c (Tcl_LogCommandInfo): Updated interfaces
9672 of generic/tclBasic.cc according to TIP 27.
9673 * generic/tclDecls.h: make genstubs
9675 * Following is [Patch 506818]
9677 * generic/tcl.decls (Tcl_HashStats):
9678 * generic/tclHash.c (Tcl_HashStats): Updated APIs of generic/tclHash.c
9679 according to guidelines of TIP 27.
9680 * generic/tclDecls.h: make genstubs
9681 * generic/tclVar.c (Tcl_ArrayObjCmd): Updated callers.
9683 * Following is [Patch 506807]
9685 * generic/tcl.decls (Tcl_GetObjType):
9686 * generic/tclObj.c (Tcl_GetObjType): Updated APIs of generic/tclObj.c
9687 according to guidelines of TIP 27.
9688 * generic/tclDecls.h: make genstubs
9690 * Following is [Patch 507304]
9692 * generic/tcl.decls (Tcl_WinUtfToTChar,Tcl_WinTCharToUtf):
9693 * win/tclWin32Dll.c (Tcl_WinUtfToTChar,Tcl_WinTCharToUtf):
9694 Updated interfaces in win/tclWin32Dll.c according to TIP 27.
9695 * generic/tclPlatDecls.h: make genstubs
9696 * generic/tclIOUtil.c (TclpNativeToNormalized):
9697 * win/tclWinFCmd.c (TclpObjNormalizePath):
9698 * win/tclWinFile.c (TclpFindExecutable,TclpMatchInDirectory)
9699 (NativeIsExec,NativeStat):
9700 * win/tclWinLoad.c (TclpLoadFile):
9701 * win/tclWinPipe.c (TclpOpenFile,ApplicationType):
9702 * win/tclWinReg.c (regConnectRegistryProc,RecursiveDeleteKey,DeleteKey)
9703 (GetKeyNames,GetType,GetValue,OpenSubKey,SetValue):
9704 * win/tclWinSerial.c (SerialSetOptionProc): Update callers.
9706 * Following is [Patch 505072]
9711 * doc/OpenFileChnl.3
9717 * generic/tcl.h (Tcl_FSMatchInDirectoryProc):
9718 * generic/tclInt.h (TclpMatchInDirectory):
9719 * generic/tcl.decls (Tcl_Concat,Tcl_GetStringResult,Tcl_GetVar,
9720 (Tcl_GetVar2,Tcl_JoinPath,Tcl_Merge,Tcl_OpenCommandChannel,Tcl_SetVar)
9721 (Tcl_SetVar2,Tcl_SplitList,Tcl_SplitPath,Tcl_TranslateFileName)
9722 (Tcl_ExternalToUtfDString,Tcl_GetEncodingName,Tcl_UtfToExternalDString)
9723 (Tcl_GetDefaultEncodingDir,Tcl_SetDefaultEncodingDir)
9724 (Tcl_FSMatchInDirectory,Tcl_MacEvalResource,Tcl_MacFindResource):
9725 * generic/tclInt.decls (TclCreatePipeline,TclGetEnv,TclpGetCwd,
9726 (TclpCreateProcess):
9727 * mac/tclMacFile.c (TclpGetCwd):
9728 * generic/tclEncoding.c (Tcl_GetDefaultEncodingDir)
9729 (Tcl_SetDefaultEncodingDir,Tcl_GetEncodingName)
9730 (Tcl_ExternalToUtfDString,Tcl_UtfToExternalDString, OpenEncodingFile)
9731 (LoadEscapeEncoding):
9732 * generic/tclFileName.c (DoTildeSubst,Tcl_JoinPath,Tcl_SplitPath,
9733 (Tcl_TranslateFileName):
9734 * generic/tclIOUtil.c (Tcl_FSMatchInDirectory):
9735 * generic/tclPipe.c (FileForRedirect,TclCreatePipeline)
9736 (Tcl_OpenCommandChannel):
9737 * generic/tclResult.c (Tcl_GetStringResult):
9738 * generic/tclUtil.c (Tcl_Concat,Tcl_SplitList,Tcl_Merge):
9739 * generic/tclVar.c (Tcl_GetVar,Tcl_GetVar2,Tcl_SetVar,Tcl_SetVar2):
9740 * mac/tclMacResource.c (Tcl_MacEvalResource,Tcl_MacFindResource):
9741 Updated interfaces of generic/tclEncoding, generic/tclFilename.c,
9742 generic/tclIOUtil.c, generic/tclPipe.c, generic/tclResult.c,
9743 generic/tclUtil.c, generic/tclVar.c and mac/tclMacResource.c according
9744 to TIP 27. Tcl_TranslateFileName rewritten as wrapper around
9746 ***POTENTIAL INCOMPATIBILITY***
9747 Includes source incompatibilities: argv arguments of Tcl_Concat,
9748 Tcl_JoinPath, Tcl_OpenCommandChannel, Tcl_Merge; argvPtr arguments of
9749 Tcl_SplitList and Tcl_SplitPath.
9750 * generic/tclDecls.h:
9751 * generic/tclIntDecls.h: make genstubs
9753 * generic/tclCkalloc.c (MemoryCmd):
9754 * generic/tclClock.c (FormatClock):
9755 * generic/tclCmdAH.c (Tcl_CaseObjCmd,Tcl_EncodingObjCmd,Tcl_FileObjCmd):
9756 * generic/tclCmdIL.c (InfoLibraryCmd,InfoPatchLevelCmd,
9757 (InfoTclVersionCmd):
9758 * generic/tclCompCmds.c (TclCompileForeachCmd):
9759 * generic/tclCompCmds.h (TclCompileForeachCmd):
9760 * generic/tclCompile.c (TclFindCompiledLocal):
9761 * generic/tclEnv.c (TclSetupEnv,TclSetEnv,Tcl_PutEnv,TclGetEnv,
9763 * generic/tclEvent.c (Tcl_BackgroundError):
9764 * generic/tclIO.c (Tcl_BadChannelOption,Tcl_SetChannelOption):
9765 * generic/tclIOCmd.c (Tcl_ExecObjCmd,Tcl_OpenObjCmd):
9766 * generic/tclIOSock.c (TclSockGetPort):
9767 * generic/tclIOUtil.c (SetFsPathFromAny):
9768 * generic/tclLink.c (LinkTraceProc):
9769 * generic/tclMain.c (Tcl_Main):
9770 * generic/tclNamesp.c (TclTeardownNamespace):
9771 * generic/tclProc.c (TclCreateProc):
9772 * generic/tclTest.c (TestregexpObjCmd,TesttranslatefilenameCmd,
9773 (TestchmodCmd,GetTimesCmd,TestsetCmd,TestOpenFileChannelProc1,
9774 (TestOpenFileChannelProc2,TestOpenFileChannelProc3,AsyncHandlerProc,
9776 * generic/tclThreadTest.c (ThreadErrorProc,ThreadEventProc):
9777 * generic/tclUtil.c (TclPrecTraceProc):
9778 * mac/tclMacFCmd.c (GetFileSpecs):
9779 * mac/tclMacFile.c (TclpMatchInDirectory):
9780 * mac/tclMacInit.c (TclpInitLibraryPath,Tcl_SourceRCFile):
9781 * mac/tclMacOSA.c (tclOSAStore,tclOSALoad):
9782 * mac/tclMacResource.c (Tcl_MacEvalResource):
9783 * unix/tclUnixFCmd.c (TclpObjNormalizePath):
9784 * unix/tclUnixFile.c (TclpMatchInDirectory,TclpGetUserHome,TclpGetCwd,
9786 * unix/tclUnixInit.c (TclpInitLibraryPath,TclpSetVariables,
9788 * unix/tclUnixPipe.c (TclpOpenFile,TclpCreateTempFile,
9789 (TclpCreateProcess):
9790 * win/tclWinFile.c (TclpGetCwd,TclpMatchInDirectory):
9791 * win/tclWinInit.c (TclpInitLibraryPath,Tcl_SourceRCFile,
9793 * win/tclWinPipe.c (TclpCreateProcess): Updated callers.
9795 2002-01-24 Don Porter <dgp@users.sourceforge.net>
9797 * generic/tclIOUtil.c (SetFsPathFromAny): Corrected tilde-substitution
9798 of pathnames where > 1 separator follows the ~. [Bug 504950]
9800 2002-01-24 Jeff Hobbs <jeffh@ActiveState.com>
9802 * library/http/pkgIndex.tcl:
9803 * library/http/http.tcl: don't add port in default case to handle
9804 broken servers. http bumped to 2.4.1 [Bug 504508]
9806 2002-01-23 Andreas Kupries <andreas_kupries@users.sourceforge.net>
9808 * unix/mkLinks: Regenerated.
9810 * doc/ChnlStack.3: Moved documentation for 'Tcl_GetTopChannel' from
9811 'CrtChannel' to 'ChnlStack'. Added documentation of
9812 'Tcl_GetStackedChannel'. [Bug 506147] reported by Mark Patton
9813 <msp@users.sourceforge.net>
9815 2002-01-23 Don Porter <dgp@users.sourceforge.net>
9817 * win/tclWinFile.c (NativeAccess,NativeStat,NativeIsExec,
9819 * win/tclWinPort.h (TclWinSerialReopen):
9820 * win/tclWinSerial.c (TclWinSerialReopen):
9821 * win/tclWinSock.c (Tcl_OpenTcpServer): Corrections to earlier TIP
9822 #27 changes. Thanks to Andreas Kupries for the feedback.
9823 * generic/tclPlatDecls.h: make genstubs
9825 * doc/GetHostName.3:
9828 * tcl.decls (Tcl_GetHostName,Tcl_GetOpenFile,Tcl_OpenTcpClient,
9829 (Tcl_OpenTclServer):
9830 * mac/tclMacSock.c (CreateSocket,Tcl_OpenTcpClient,Tcl_OpenTcpServer,
9831 (Tcl_GetHostName,GetHostFromString):
9832 * unix/tclUnixChan.c (CreateSocket,CreateSocketAddress,
9833 (Tcl_OpenTcpClient,Tcl_OpenTcpServer,Tcl_GetOpenFile):
9834 * unix/tclUnixSock.c (Tcl_GetHostName):
9835 * win/tclWinSock.c (CreateSocket,CreateSocketAddress,
9836 (Tcl_OpenTcpClient,Tcl_OpenTcpServer,Tcl_GetHostName):
9837 Updated socket interfaces according to TIP 27.
9838 * generic/tclCmdIL.c (InfoHostnameCmd): Updated callers.
9839 * generic/tclDecls.h: make genstubs
9841 2002-01-21 David Gravereaux <davygrvy@pobox.com>
9843 * generic/tclLoadNone.c: TclpLoadFile() didn't match proto of typedef
9844 Tcl_FSLoadFileProc. OK'd by vincentdarley. [Patch 502488]
9846 2002-01-21 Andreas Kupries <andreas_kupries@users.sourceforge.net>
9848 * generic/tclIO.c (WriteChars): Fix for [Bug 506297], reported by
9849 Martin Forssen <ruric@users.sourceforge.net>. The encoding chosen in
9850 the script exposing the bug writes out three intro characters when
9851 TCL_ENCODING_START is set, but does not consume any input as
9852 TCL_ENCODING_END is cleared. As some output was generated the
9853 enclosing loop calls UtfToExternal again, again with START set. Three
9854 more characters in the out and still no use of input ... To break this
9855 infinite loop we remove TCL_ENCODING_START from the set of flags after
9856 the first call (no condition is required, the later calls remove an
9857 unset flag, which is a no-op). This causes the subsequent calls to
9858 UtfToExternal to consume and convert the actual input.
9860 2002-01-21 Don Porter <dgp@users.sourceforge.net>
9862 * generic/tclTest.c: Converted declarations of TestReport file system
9863 to more portable form. [Bug 501417].
9865 * generic/tcl.decls (Tcl_TraceCommand,Tcl_UntraceCommand,
9866 (Tcl_CommandTraceInfo):
9867 * generic/tclCmdMZ.c (Tcl_TraceCommand,Tcl_UntraceCommand,
9868 (Tcl_CommandTraceInfo): Updated APIs in generic/tclCmdMZ.c
9869 according to the guidelines of TIP 27.
9870 * generic/tclDecls.h: make genstubs
9872 2002-01-18 Don Porter <dgp@users.sourceforge.net>
9876 * win/tclWinFile.c: Overlooked callers of Tcl_FSGetNativePath
9879 * win/tclWinReg.c: Overlooked callers of Tcl_GetIndexFromObj
9881 2002-01-18 Daniel Steffen <das@users.sourceforge.net>
9883 * generic/tclThreadTest.c:
9888 * mac/tclMacResource.c: TIP 27 CONSTification broke the mac build in a
9891 2002-01-17 Andreas Kupries <andreas_kupries@users.sourceforge.net>
9893 * generic/tclIOCmd.c (Tcl_GetsObjCmd): Fixed [Bug 504642] as reported
9894 by Brian Griffin <bgriffin@users.sourceforge.net>, using his patch.
9895 Before the patch the generic I/O layer held an unannounced reference
9896 to the interp result to store the read line into. This unfortunately
9897 has disastrous results if the channel driver executes a Tcl script to
9898 perform its operation, this freeing the interp result. In that case we
9899 are dereferencing essentially a dangling reference. It is not truly
9900 dangling because the object is in the free list, but this only causes
9901 us to smash the free list and have the error occur later somewhere
9902 else. The patch simply creates a new object for the line and later
9903 sets it into the interp result when we are done with reading.
9905 2002-01-16 Mo DeJong <mdejong@users.sourceforge.net>
9907 * unix/tcl.m4 (SC_LOAD_TCLCONFIG):
9908 * win/tcl.m4 (SC_LOAD_TCLCONFIG): Subst TCL_DBGX into
9909 TCL_STUB_LIB_FILE and TCL_STUB_LIB_FLAG variables so that an extension
9910 does not need to subst TCL_DBGX into its makefile. [Tk Bug 504356]
9912 2002-01-16 Don Porter <dgp@users.sourceforge.net>
9917 * generic/tcl.decls (Tcl_GetIndexFromObj, Tcl_GetIndexFromObjStruct,
9918 (Tcl_GetCwd, Tcl_FSFileAttrStrings, Tcl_FSGetNativePath,
9919 (Tcl_FSGetTranslatedStringPath):
9920 * generic/tcl.h (Tcl_FSFileAttrStringsProc):
9921 * generic/tclFCmd.c (TclFileAttrsCmd):
9922 * generic/tclIOUtil.c (Tcl_GetCwd,NativeFileAttrStrings,
9923 (Tcl_FSFileAttrStrings,Tcl_FSGetTranslatedStringPath,
9924 (Tcl_FSGetNativePath):
9925 * generic/tclIndexObj.c (Tcl_GetIndexFromObj,Tcl_GetIndexFromObjStruct):
9926 More TIP 27 updates in tclIOUtil.c and tclIndexObj.c that were
9927 overlooked before. [Patch 504671]
9928 ***POTENTIAL INCOMPATIBILITY***
9929 Includes a source incompatibility in the tablePtr arguments of the
9930 Tcl_GetIndexFromObj* routines.
9931 * generic/tclDecls.h: make genstubs
9933 * generic/tclBinary.c (Tcl_BinaryObjCmd):
9934 * generic/tclClock.c (Tcl_ClockObjCmd):
9935 * generic/tclCmdAH.c (Tcl_EncodingObjCmd, Tcl_FileObjCmd):
9936 * generic/tclCmdIL.c (Tcl_InfoObjCmd,Tcl_LsearchObjCmd,Tcl_LsortObjCmd):
9937 * generic/tclCmdMZ.c (Tcl_TraceObjCmd,Tcl_RegexpObjCmd,Tcl_RegsubObjCmd,
9938 (Tcl_StringObjCmd,Tcl_SubstObjCmd,Tcl_SwitchObjCmd,
9939 (TclTraceCommandObjCmd,TclTraceVariableObjCmd):
9940 * generic/tclCompCmds.c (TclCompileStringCmd):
9941 * generic/tclEvent.c (Tcl_UpdateObjCmd):
9942 * generic/tclFileName.c (Tcl_GlobObjCmd):
9943 * generic/tclIO.c (Tcl_FileEventObjCmd):
9944 * generic/tclIOCmd.c (Tcl_SeekObjCmd,Tcl_ExecObjCmd,Tcl_SocketObjCmd,
9946 * generic/tclInterp.c (Tcl_InterpObjCmd,SlaveObjCmd):
9947 * generic/tclNamesp.c (Tcl_NamespaceObjCmd):
9948 * generic/tclPkg.c (Tcl_PackageObjCmd):
9949 * generic/tclTest.c (Tcltest_Init,TestencodingObjCmd,TestgetplatformCmd,
9950 (TestlocaleCmd,TestregexpObjCmd,TestsaveresultCmd,
9951 (TestGetIndexFromObjStructObjCmd,TestReportFileAttrStrings):
9952 * generic/tclTestObj.c (TestindexObjCmd,TeststringObjCmd):
9953 * generic/tclTimer.c (Tcl_AfterObjCmd):
9954 * generic/tclVar.c (Tcl_ArrayObjCmd):
9955 * mac/tclMacFCmd.c (SetFileFinderAttributes):
9956 * unix/tclUnixChan.c (TclpOpenFileChannel):
9957 * unix/tclUnixFCmd.c (tclpFileAttrStrings):
9958 * unix/tclUnixFile.c (TclpObjAccess,TclpObjChdir,TclpObjStat,
9960 * win/tclWinFCmd.c (tclpFileAttrStrings): Updated callers.
9964 * generic/tcl.decls:
9965 * generic/tclInt.decls:
9966 * generic/tclRegexp.c:
9967 * generic/tclUtf.c: Updated APIs in generic/tclUtf.c and
9968 generic/tclRegexp.c according to the guidelines of TIP 27.
9971 * generic/regc_locale.c (element,cclass):
9972 * generic/tclCmdMZ.c (Tcl_StringObjCmd):
9973 * generic/tclFileName.c (TclpGetNativePathType,SplitMacPath):
9974 * generic/tclIO.c (ReadChars):
9975 * mac/tclMacLoad.c (TclpLoadFile):
9976 * win/tclWinFile.c (TclpGetUserHome): Updated callers.
9978 * generic/tclDecls.h:
9979 * generic/tclIntDecls.h: make genstubs
9981 * doc/ParseCmd.3 (Tcl_ParseVar):
9982 * generic/tcl.decls (Tcl_ParseVar):
9983 * generic/tclParse.c (Tcl_ParseVar):
9984 * generic/tclTest.c (TestparsevarObjCmd): Updated APIs in
9985 generic/tclParse.c according to the guidelines of TIP 27. Updated
9986 callers. [Patch 501046]
9987 * generic/tclDecls.h: make genstubs
9989 * generic/tcl.decls (Tcl_RecordAndEval):
9990 * generic/tclDecls.h: make genstubs
9991 * generic/tclHistory.c (Tcl_RecordAndEval): Updated APIs in
9992 generic/tclHistory.c according to the guidelines of TIP 27.
9996 * generic/tcl.decls (Tcl_CreateAlias, Tcl_CreateAliasObj,
9997 (Tcl_CreateSlave, Tcl_GetAlias, Tcl_GetAliasObj, Tcl_GetSlave):
9998 * generic/tclInterp.c (Tcl_CreateAlias, Tcl_CreateAliasObj,
9999 (Tcl_CreateSlave, Tcl_GetAlias, Tcl_GetAliasObj, Tcl_GetSlave):
10000 Updated APIs in the file generic/tclInterp.c according to the
10001 guidelines of TIP 27. [Patch 501371]
10002 ***POTENTIAL INCOMPATIBILITY***
10003 Includes a source incompatibility in the targetCmdPtr arguments of
10004 the Tcl_GetAlias* routines.
10006 * generic/tclDecls.h: make genstubs
10008 2002-01-15 Don Porter <dgp@users.sourceforge.net>
10010 * doc/SetErrno.3 (Tcl_ErrnoMsg): Corrected documentation for
10011 Tcl_ErrnoMsg; it takes an integer argument. Thanks to Georgios
10012 Petasis. [Bug 468183]
10014 * doc/AddErrInfo.3 (Tcl_PosixError):
10015 * doc/Eval.3 (Tcl_EvalFile):
10016 * doc/FileSystem.c (Tcl_FSOpenFileChannel,Tcl_FSOpenFileChannelProc):
10017 * doc/OpenFileChnl.3 (Tcl_OpenFileChannel):
10018 * doc/SetErrno.3 (Tcl_ErrnoId,Tcl_ErrnoMsg):
10019 * doc/Signal.3 (Tcl_SignalId,Tcl_SignalMsg):
10020 * generic/tcl.decls (Tcl_ErrnoId,TclErrnoMsg,Tcl_EvalFile,
10021 (Tcl_OpenFileChannel,Tcl_PosixError,Tcl_SignalId,Tcl_SignalMsg,
10022 (Tcl_FSOpenFileChannel):
10023 * generic/tcl.h (Tcl_FSOpenFileChannelProc):
10024 * generic/tclIO.c (FlushChannel):
10025 * generic/tclIOUtil.c (Tcl_OpenFileChannel,Tcl_EvalFile,TclGetOpenMode,
10026 (Tcl_PosixError,Tcl_FSOpenFileChannel):
10027 * generic/tclInt.decls (TclGetOpenMode):
10028 * generic/tclInt.h (TclOpenFileChannelProc_,TclGetOpenMode,
10029 (TclpOpenFileChannel):
10030 * generic/tclPipe.c (TclCleanupChildren):
10031 * generic/tclPosixStr.c (Tcl_ErrnoId,Tcl_ErrnoMsg,Tcl_SignalId,
10033 * generic.tclTest.c (PretendTclpOpenFileChannel,
10034 (TestOpenFileChannelProc1,TestOpenFileChannelProc2,
10035 (TestOpenFileChannelProc3,TestReportOpenFileChannel):
10036 * mac/tclMacChan.c (TclpOpenFileChannel):
10037 * unix/tclUnixChan.c (TclpOpenFileChannel):
10038 * win/tclWinChan.c (TclpOpenFileChannel): Updated APIs in
10039 generic/tclIOUtil.c and generic/tclPosixStr.c according to the
10040 guidelines of TIP 27. Updated callers. [Patch 499196]
10042 * generic/tclDecls.h:
10043 * generic/tclIntDecls.h: make genstubs
10045 * doc/CrtChannel.3:
10046 * doc/OpenFileChnl.3:
10047 * generic/tcl.decls:
10049 * generic/tclIO.c (DoWrite, Tcl_RegisterChannel, Tcl_GetChannel,
10050 (Tcl_CreateChannel, Tcl_GetChannelName, CloseChannel, Tcl_Write,
10051 (Tcl_WriteRaw, Tcl_Ungets, Tcl_BadChannelOption, Tcl_GetChannelOption,
10052 (Tcl_SetChannelOption, Tcl_GetChannelNamesEx, Tcl_ChannelName):
10053 Updated APIs in the file generic/tclIO.c according to the guidelines
10054 of TIP 27. Several minor documentation corrections as well. [Patch
10056 * generic/tclDecls.h: make genstubs
10058 * generic/tcl.h (Tcl_DriverOutputProc, Tcl_DriverGetOptionProc,
10059 (Tcl_DriverSetOptionProc):
10060 * generic/tclIOGT.c (TransformOutputProc, TransformGetOptionProc,
10061 (TransformSetOptionProc):
10062 * mac/tclMacChan.c (FileOutput, StdIOOutput):
10063 * man/tclMacSock.c (TcpGetOptionProc, TcpOutput):
10064 * unix/tclUnixChan.c (FileOutputProc, TcpGetOptionProc, TcpOutputProc,
10065 (TtyGetOptionProc, TtySetOptionProc):
10066 * unix/tclUnixPipe.c (PipeOuputProc):
10067 * win/tclWinChan.c (FileOutputProc):
10068 * win/tclWinConsole.c (ConsleOutputProc):
10069 * win/tclWinPipe.c (PipeOuputProc):
10070 * win/tclWinSerial.c (SerialOutputProc, SerialGetOptionProc,
10071 (SerialSetOptionProc):
10072 * win/tclWinSock.c (TcpGetOptionProc, TcpOutput): Updated channel
10073 driver interface according to the guidelines of TIP 27. See also [Bug
10076 * doc/CrtChannel.3:
10080 * generic/tclInt.h:
10081 * tools/checkLibraryDoc.tcl:
10082 Moved Tcl_EolTranslation enum declaration from generic/tcl.h to
10083 generic/tclInt.h (renamed to TclEolTranslation). It is not used
10084 anywhere in Tcl's public interface.
10086 2002-01-14 Don Porter <dgp@users.sourceforge.net>
10089 * doc/WrongNumArgs.3:
10090 * generic/tcl.decls (Tcl_GetIndexFromObj, Tcl_GetIndexFromObjStruct,
10091 (Tcl_WrongNumArgs):
10092 * generic/tclIndexObj.c (Tcl_GetIndexFromObj, Tcl_GetIndexFromObjStruct,
10093 (Tcl_WrongNumArgs): Updated APIs in the file generic/tclIndexObj.c
10094 according to the guidelines of TIP 27. [Patch 501491]
10095 * generic/tclDecls.h: make genstubs
10097 2002-01-11 Mo DeJong <mdejong@users.sourceforge.net>
10099 * unix/configure: Regen.
10100 * unix/configure.in:
10101 * win/configure: Regen.
10102 * win/configure.in: Use ${libdir} instead of ${exec_prefix}/lib
10103 to properly support the --libdir option to configure. [Bug 489370]
10105 2002-01-11 Andreas Kupries <andreas_kupries@users.sourceforge.net>
10107 * win/tclWinSerial.c (SerialSetOptionProc): Applied patch for [Bug
10108 500348] supplied by Rolf Schroedter <schroedter@users.sf.net>. The
10109 function modified the contents of the the 'value' string and now does
10110 not do this anymore. This is a followup to the change made on
10113 2002-01-11 David Gravereaux <davygrvy@pobox.com>
10115 * win/makefile.vc: Removed -GD compiler option. It was intended for
10116 future use, but MS is again changing the future at their whim. The
10117 D4002 warning was harmless though, but someone using VC .NET logged it
10118 as a concern. [Bug 501565]
10120 2002-01-11 Mo DeJong <mdejong@users.sourceforge.net>
10122 * unix/Makefile.in: Burn Tcl build directory into tcltest executable
10123 to avoid crashes caused by ld loading a previously installed version
10124 of the tcl shared library. [Bug 218110]
10126 2002-01-10 Don Porter <dgp@users.sourceforge.net>,
10127 Kevin Kenny <kennykb@users.sourceforge.net>
10129 * unix/tclLoadDld.c (TclpLoadFile): syntax error: unbalanced parens.
10130 Kevin notes that it's far from clear that this file is ever included
10131 in an actual build; Linux without dlopen appears to be a nonexistent
10134 2002-01-08 Don Porter <dgp@users.sourceforge.net>,
10135 Kevin Kenny <kennykb@users.sourceforge.net>
10137 * doc/StaticPkg.3 (Tcl_StaticPackage):
10138 * generic/tcl.decls (Tcl_StaticPackage):
10139 * generic/tclDecls.h (Tcl_StaticPackage):
10140 * generic/tclInt.decls (TclGuessPackageName):
10141 * generic/tclInt.h (TclGuessPackageName):
10142 * generic/tclLoad.c (Tcl_StaticPackage):
10143 * generic/tclLoadNone.c (TclGuessPackageName):
10144 * mac/tclMacLoad.c (TclGuessPackageName):
10145 * unix/tclLoadAout.c (TclGuessPackageName):
10146 * unix/tclLoadDl.c (TclGuessPackageName):
10147 * unix/tclLoadDld.c (TclGuessPackageName):
10148 * unix/tclLoadDyld.c (TclGuessPackageName):
10149 * unix/tclLoadNext.c (TclGuessPackageName):
10150 * unix/tclLoadOSF.c (TclGuessPackageName):
10151 * unix/tclLoadShl.c (TclGuessPackageName):
10152 * win/tclWinLoad.c (TclGuessPackageName): Updated APIs in the files
10153 */tcl*Load*.c according to the guidelines of TIP 27. [Patch 501096]
10155 2002-01-09 Don Porter <dgp@users.sourceforge.net>
10157 * generic/tclTest.c (MainLoop):
10158 * tests/main.test (Tcl_Main-1.{3,4,5,6}): Corrected some non-portable
10159 tests from the new Tcl_Main changes. Thanks to Kevin Kenny.
10161 2002-01-07 Don Porter <dgp@users.sourceforge.net>
10163 * generic/tclEvent.c (TclInExit):
10164 * generic/tclIOUtil.c (SetFsPathFromAbsoluteNormalized,
10165 (SetFsPathFromAny,Tcl_FSNewNativePath,DupFsPathInternalRep):
10166 * generic/tclListObj.c (TclLsetList,TclLsetFlat): Added some type
10167 casts to satisfy picky compilers.
10169 * generic/tclMain.c: Bug fix: neglected the NULL case in
10170 TclGetStartupScriptFileName(). Broke Tk/wish.
10172 2002-01-05 Don Porter <dgp@users.sourceforge.net>
10175 * generic/tclMain.c: Substantial rewrite and expanded documentation
10176 of Tcl_Main to correct a number of bugs and flaws:
10178 * Interactive Tcl_Main can now enter a main loop, exit that
10179 loop and continue interactive operations. The loop may even
10180 exit in the midst of interactive command typing without loss
10181 of the partial command. [Bugs 486453, 474131]
10182 * Tcl_Main now gracefully handles deletion of its master
10184 * Interactive Tcl_Main can now operate with non-blocking stdin
10185 * Interactive Tcl_Main can now detect EOF on stdin even in
10186 mid-command. [Bug 491341]
10187 * Added VFS-aware internal routines for managing the startup
10189 * Tcl variable 'tcl_interactive' is now linked to C variable
10190 'tty' so that one can disable/enable interactive prompts at
10191 the script level when there is no startup script. This is
10192 meant for use by the test suite.
10193 * Consistent use of the Tcl libraries standard channels as
10194 returned by Tcl_GetStdChannel(); as opposed to the channels
10195 named 'stdin', 'stdout', and 'stderr' in the master interp,
10196 which can be different or unavailable.
10197 * Tcl_Main now calls Tcl_Exit() if evaluation of [exit] in the
10198 master interpreter returns, assuring Tcl_Main does not
10200 * Documented Tcl_Main's absence from public stub table
10201 * Documented that Tcl_Main does not return.
10202 * Documented Tcl variables set by Tcl_Main.
10203 * All prompts are done from a single procedure, Prompt.
10204 * Use of Tcl_Obj-enabled interfaces everywhere.
10206 * generic/tclInt.decls (TclGetStartupScriptPath,
10207 (TclSetStartupScriptPath): New internal VFS-aware routines for
10208 managing the startup script of Tcl_Main.
10209 * generic/tclIntDecls.h:
10210 * generic/tclStubInit.c: make genstubs
10212 * generic/tclTest.c (TestsetmainloopCmd,TestexitmainloopCmd,
10213 (Tcltest_Init,TestinterpdeleteCmd):
10214 * tests/main.test (new): Added new file to test suite that thoroughly
10215 tests generic/tclMain.c; added some new test commands for testing
10218 2002-01-04 Don Porter <dgp@users.sourceforge.net>
10222 * doc/CrtMathFnc.3:
10226 * doc/ObjectType.3:
10227 * doc/PkgRequire.3:
10232 * doc/TCL_MEM_DEBUG.3: Updated documentation to describe the ckalloc,
10233 ckfree, ckrealloc, attemptckalloc, and attemptckrealloc macros, and to
10234 accurately describe when and how they are used. [Bug 497459]
10236 * generic/tclThreadJoin.c (TclRememberJoinableThread,TclJoinThread):
10237 Replaced Tcl_Alloc and Tcl_Free calls with ckalloc and ckfree so that
10238 memory debugging is supported.
10240 2002-01-04 Daniel Steffen <das@users.sourceforge.net>
10242 * mac/tclMacTime.c (TclpGetTZName): fix for daylight savings TZName
10245 2002-01-03 Don Porter <dgp@users.sourceforge.net>
10247 * doc/FileSystem.3:
10248 * generic/tclIOUtil.c: Updated some old uses of "fileName" to new VFS
10249 terminology, "pathPtr".
10251 2002-01-03 Donal K. Fellows <fellowsd@cs.man.ac.uk>
10253 * tests/basic.test (basic-39.4): Greatly simplified test while still
10254 leaving it so that it crashes when run without the fix to the
10255 [foreach] implementation.
10256 * generic/tclCmdAH.c (Tcl_ForeachObjCmd): Stopped [Bug 494348] from
10257 happening by not trying to be so clever with cacheing; if nothing
10258 untoward is happening anyway, the less efficient technique will only
10259 add a few instruction cycles (one function call and a few
10260 derefs/assigns per list per iteration, with no change in the number of
10261 tests) and if something odd *is* going on, the code is now far more
10264 * tests/basic.test (basic-39.4): Reproducable script from [Bug 494348]
10266 2002-01-02 Donal K. Fellows <fellowsd@cs.man.ac.uk>
10268 * tests/util.test (Wrapper_Tcl_StringMatch,util-5.*): Rewrote so the
10269 test is performed with the right internal function since [string
10270 match] no longer uses Tcl_StringCaseMatch internally.
10272 * tests/string.test (string-11.51):
10273 * generic/tclUtf.c (Tcl_UniCharCaseMatch):
10274 * generic/tclUtil.c (Tcl_StringCaseMatch): Fault with matching
10275 case-insensitive non-ASCII patterns containing upper case characters.
10278 ******************************************************************
10279 *** CHANGELOG ENTRIES FOR 2001 IN "ChangeLog.2001" ***
10280 *** CHANGELOG ENTRIES FOR 2000 IN "ChangeLog.2000" ***
10281 *** CHANGELOG ENTRIES FOR 1999 AND EARLIER IN "ChangeLog.1999" ***
10282 ******************************************************************