Debian Codegraph @

ChangeLog

raw
1 A NOTE ON THE CHANGELOG:
2 Starting in early 2011, Tcl source code has been under the management of
3 fossil, hosted at https://core.tcl-lang.org/tcl/ . Fossil presents a "Timeline"
4 view of changes made that is superior in every way to a hand edited log file.
5 Because of this, many Tcl developers are now out of the habit of maintaining
6 this log file. You may still find useful things in it, but the Timeline is
7 a better first place to look now.
8 ============================================================================
9
10 2013-09-19 Don Porter <[email protected]>
11
12 *** 8.6.1 TAGGED FOR RELEASE ***
13
14 * generic/tcl.h: Bump version number to 8.6.1.
15 * library/init.tcl:
16 * unix/configure.in:
17 * win/configure.in:
18 * unix/tcl.spec:
19 * README:
20
21 * unix/configure: autoconf-2.59
22 * win/configure:
23
24 2013-09-19 Donal Fellows <[email protected]>
25
26 * doc/next.n (METHOD SEARCH ORDER): Bug [3606943]: Corrected
27 description of method search order.
28
29 2013-09-18 Donal Fellows <[email protected]>
30
31 Bump TclOO version to 1.0.1 for release.
32
33 2013-09-17 Donal Fellows <[email protected]>
34
35 * generic/tclBinary.c (BinaryEncodeUu, BinaryDecodeUu): [Bug 2152292]:
36 Corrected implementation of the core of uuencode handling so that the
37 line length processing is correctly applied.
38 ***POTENTIAL INCOMPATIBILITY***
39 Existing code that was using the old versions and working around the
40 limitations will now need to do far less. The -maxlen option now has
41 strict limits on the range of supported lengths; this is a limitation
42 of the format itself.
43
44 2013-09-09 Donal Fellows <[email protected]>
45
46 * generic/tclOOMethod.c (CloneProcedureMethod): [Bug 3609693]: Strip
47 the internal representation of method bodies during cloning in order
48 to ensure that any bound references to instance variables are removed.
49
50 2013-09-01 Donal Fellows <[email protected]>
51
52 * generic/tclBinary.c (BinaryDecodeHex): [Bug b98fa55285]: Ensure that
53 whitespace at the end of a string don't cause the decoder to drop the
54 last decoded byte.
55
56 2013-08-03 Donal Fellows <[email protected]>
57
58 * library/auto.tcl: [Patch 3611643]: Allow TclOO classes to be found
59 by the autoloading mechanism.
60
61 2013-08-02 Donal Fellows <[email protected]>
62
63 * generic/tclOODefineCmds.c (ClassSuperSet): Bug [9d61624b3d]: Stop
64 crashes when emptying the superclass slot, even when doing elaborate
65 things with metaclasses.
66
67 2013-08-01 Harald Oehlmann <[email protected]>
68
69 * tclUnixNotify.c (Tcl_InitNotifier): Bug [a0bc856dcd]: Start notifier
70 thread again if we were forked, to solve Rivet bug 55153.
71
72 2013-07-05 Kevin B. Kenny <[email protected]>
73
74 * library/tzdata/Africa/Casablanca:
75 * library/tzdata/America/Asuncion:
76 * library/tzdata/Antarctica/Macquarie:
77 * library/tzdata/Asia/Gaza:
78 * library/tzdata/Asia/Hebron:
79 * library/tzdata/Asia/Jerusalem:
80 http://www.iana.org/time-zones/repository/releases/tzdata2013d.tar.gz
81
82 2013-07-03 Jan Nijtmans <[email protected]>
83
84 * unix/tclXtNotify.c: Bug [817249]: bring tclXtNotify.c up to date with
85 Tcl_SetNotifier() change.
86
87 2013-07-02 Jan Nijtmans <[email protected]>
88
89 * unix/tcl.m4: Bug [32afa6e256]: dirent64 check is incorrect in tcl.m4
90 * unix/configure: (thanks to Brian Griffin)
91
92 2013-06-27 Jan Nijtmans <[email protected]>
93
94 * generic/tclConfig.c: Bug [9b2e636361]: Tcl_CreateInterp() needs
95 * generic/tclMain.c: initialized encodings.
96
97 2013-06-18 Jan Nijtmans <[email protected]>
98
99 * generic/tclEvent.c: Bug [3611974]: InitSubsystems multiple thread
100 issue.
101
102 2013-06-17 Jan Nijtmans <[email protected]>
103
104 * generic/regc_locale.c: Bug [a876646efe]: re_expr character class
105 [:cntrl:] should contain \u0000 - \u001f
106
107 2013-06-09 Donal K. Fellows <[email protected]>
108
109 * generic/tclCompCmdsSZ.c (TclCompileTryCmd): [Bug 779d38b996]:
110 Rewrote the [try] compiler to generate better code in some cases and
111 to behave correctly in others; when an error happens during the
112 processing of an exception-trap clause or a finally clause, the
113 *original* return options are now captured in a -during option, even
114 when fully compiled.
115
116 2013-06-05 Donal K. Fellows <[email protected]>
117
118 * generic/tclExecute.c (INST_EXPAND_DROP): [Bugs 2835313, 3614226]:
119 New opcode to allow resetting the stack to get rid of an expansion,
120 restoring the stack to a known state in the process.
121 * generic/tclCompile.c, generic/tclCompCmds.c: Adjusted the compilers
122 for [break] and [continue] to get stack cleanup right in the majority
123 of cases.
124 * tests/for.test (for-7.*): Set of tests for these evil cases.
125
126 2013-06-04 Jan Nijtmans <[email protected]>
127
128 * unix/tcl.m4: Eliminate NO_VIZ macro as current zlib uses HAVE_HIDDEN
129 instead. One more last-moment fix for FreeBSD by Pietro Cerutti
130
131 2013-06-03 Miguel Sofer <[email protected]>
132
133 * generic/tclExecute.c: fix for perf bug detected by Kieran
134 (https://groups.google.com/forum/?fromgroups#!topic/comp.lang.tcl/vfpI3bc-DkQ),
135 diagnosed by dgp to be a close relative of [Bug 781585], which was
136 fixed by commit [f46fb50cb3]. This bug was introduced by myself in
137 commit [cbfe055d8c].
138
139 2013-06-03 Donal K. Fellows <[email protected]>
140
141 * generic/tclCompCmds.c (TclCompileBreakCmd, TclCompileContinueCmd):
142 Added code to allow [break] and [continue] to be issued as a jump (in
143 the most common cases) rather than using the more expensive exception
144 processing path in the bytecode engine. [Bug 3614226]: Partial fix for
145 the issues relating to cleaning up the stack when dealing with [break]
146 and [continue].
147
148 2013-05-27 Harald Oehlmann <[email protected]>
149
150 * library/msgcat/msgcat.tcl: [Bug 3036566]: Also get locale from
151 registry key HCU\Control Panel\Desktop : PreferredUILanguages to honor
152 installed language packs on Vista+.
153 Bumped msgcat version to 1.5.2
154
155 2013-05-22 Andreas Kupries <[email protected]>
156
157 * tclCompile.c: Removed duplicate const qualifier causing the HP
158 native cc to error out.
159
160 2013-05-22 Donal K. Fellows <[email protected]>
161
162 * generic/tclUtf.c (TclUtfCasecmp): [Bug 3613609]: Replace problematic
163 uses of strcasecmp with a proper UTF-8-aware version. Affects both
164 [lsearch -nocase] and [lsort -nocase].
165
166 2013-05-22 Donal K. Fellows <[email protected]>
167
168 * doc/file.n: [Bug 3613671]: Added note to portability section on the
169 fact that [file owned] does not produce useful results on Windows.
170
171 2013-05-20 Donal K. Fellows <[email protected]>
172
173 * unix/tclUnixFCmd.c (DefaultTempDir): [Bug 3613567]: Corrected logic
174 for checking return code of access() system call, which was inverted.
175
176 2013-05-19 Jan Nijtmans <[email protected]>
177
178 * unix/tcl.m4: Fix for FreeBSD, and remove support for older
179 * unix/configure: FreeBSD versions. Patch by Pietro Cerutti.
180
181 2013-05-18 Donal K. Fellows <[email protected]>
182
183 * generic/tclCompCmdsGR.c: Split tclCompCmds.c again to keep size of
184 code down.
185
186 2013-05-16 Jan Nijtmans <[email protected]>
187
188 * generic/tclBasic.c: Add panic in order to detect incompatible
189 mingw32 sys/stat.h and sys/time.h headers.
190
191 2013-05-13 Jan Nijtmans <[email protected]>
192
193 * compat/zlib/*: Upgrade to zlib 1.2.8
194
195 2013-05-10 Donal K. Fellows <[email protected]>
196
197 Optimizations and general bytecode generation improvements.
198 * generic/tclCompCmds.c (TclCompileAppendCmd, TclCompileLappendCmd):
199 (TclCompileReturnCmd): Make these generate bytecode in more cases.
200 (TclCompileListCmd): Make this able to push a literal when it can.
201 * generic/tclCompile.c (TclSetByteCodeFromAny, PeepholeOptimize):
202 Added checks to see if we can apply some simple cross-command-boundary
203 optimizations, and defined a small number of such optimizations.
204 (TclCompileScript): Added the special ability to compile the list
205 command with expansion ([list {*}blah]) into bytecode that does not
206 call an external command.
207
208 2013-05-06 Jan Nijtmans <[email protected]>
209
210 * generic/tclStubInit.c: Add support for Cygwin64, which has a 64-bit
211 * generic/tclDecls.h: "long" type. Binary compatibility with win64
212 requires that all stub entries use 32-bit long's, therefore the need
213 for various wrapper functions/macros. For Tcl 9 a better solution is
214 needed, but that cannot be done without introducing binary
215 incompatibility.
216
217 2013-04-30 Andreas Kupries <[email protected]>
218
219 * library/platform/platform.tcl (::platform::LibcVersion):
220 * library/platform/pkgIndex.tcl: Followup to the 2013-01-30 change.
221 The RE become too restrictive again. SuSe added a timestamp after the
222 version. Loosened up a bit. Bumped package to version 1.0.12.
223
224 2013-04-29 Donal K. Fellows <[email protected]>
225
226 * generic/tclCompCmds.c (TclCompileArraySetCmd): Generate better code
227 when the list of things to set is a literal.
228
229 2013-04-25 Jan Nijtmans <[email protected]>
230
231 * generic/tclDecls.h: Implement Tcl_NewBooleanObj, Tcl_DbNewBooleanObj
232 and Tcl_SetBooleanObj as macros using Tcl_NewIntObj, Tcl_DbNewLongObj
233 and Tcl_SetIntObj. Starting with Tcl 8.5, this is exactly the same, it
234 only eliminates code duplication.
235 * generic/tclInt.h: Eliminate use of NO_WIDE_TYPE everywhere: It's
236 exactly the same as TCL_WIDE_INT_IS_LONG
237
238 2013-04-19 Jan Nijtmans <[email protected]>
239
240 * generic/tclDecls.h: Implement many Tcl_*Var* functions and
241 Tcl_GetIndexFromObj as (faster/stack-saving) macros around resp their
242 Tcl_*Var*2 equivalent and Tcl_GetIndexFromObjStruct.
243
244 2013-04-12 Jan Nijtmans <[email protected]>
245
246 * generic/tclDecls.h: Implement Tcl_Pkg* functions as
247 (faster/stack-saving) macros around Tcl_Pkg*Ex functions.
248
249 2013-04-08 Don Porter <[email protected]>
250
251 * generic/regc_color.c: [Bug 3610026]: Stop crash when the number of
252 * generic/regerrs.h: "colors" in a regular expression overflows a
253 * generic/regex.h: short int. Thanks to Heikki Linnakangas for
254 * generic/regguts.h: the report and the patch.
255 * tests/regexp.test:
256
257 2013-04-04 Reinhard Max <[email protected]>
258
259 * library/http/http.tcl (http::geturl): Allow URLs that don't have a
260 path, but a query query, e.g. http://example.com?foo=bar
261 * Bump the http package to 2.8.7.
262
263 2013-03-22 Venkat Iyer <[email protected]>
264 * library/tzdata/Africa/Cairo: Update to tzdata2013b.
265 * library/tzdata/Africa/Casablanca:
266 * library/tzdata/Africa/Gaborone:
267 * library/tzdata/Africa/Tripoli:
268 * library/tzdata/America/Asuncion:
269 * library/tzdata/America/Barbados:
270 * library/tzdata/America/Bogota:
271 * library/tzdata/America/Costa_Rica:
272 * library/tzdata/America/Curacao:
273 * library/tzdata/America/Nassau:
274 * library/tzdata/America/Port-au-Prince:
275 * library/tzdata/America/Santiago:
276 * library/tzdata/Antarctica/Palmer:
277 * library/tzdata/Asia/Aden:
278 * library/tzdata/Asia/Hong_Kong:
279 * library/tzdata/Asia/Muscat:
280 * library/tzdata/Asia/Rangoon:
281 * library/tzdata/Asia/Shanghai:
282 * library/tzdata/Atlantic/Bermuda:
283 * library/tzdata/Europe/Vienna:
284 * library/tzdata/Pacific/Easter:
285 * library/tzdata/Pacific/Fiji:
286 * library/tzdata/Asia/Khandyga: (new)
287 * library/tzdata/Asia/Ust-Nera: (new)
288 * library/tzdata/Europe/Busingen: (new)
289
290 2013-03-21 Don Porter <[email protected]>
291
292 * library/auto.tcl: [Bug 2102614]: Add ensemble indexing support to
293 * tests/autoMkindex.test: [auto_mkindex]. Thanks Brian Griffin.
294
295 2013-03-19 Don Porter <[email protected]>
296
297 * generic/tclFCmd.c: [Bug 3597000]: Consistent [file copy] result.
298 * tests/fileSystem.test:
299
300 2013-03-19 Jan Nijtmans <[email protected]>
301
302 * win/tclWinFile.c: [Bug 3608360]: Incompatible behaviour of "file
303 exists".
304
305 2013-03-18 Donal K. Fellows <[email protected]>
306
307 * tests/cmdAH.test (cmdAH-19.12): [Bug 3608360]: Added test to ensure
308 that we never ever allow [file exists] to do globbing.
309
310 2013-03-12 Jan Nijtmans <[email protected]>
311
312 * unix/tcl.m4: Patch by Andrew Shadura, providing better support for
313 three architectures they have in Debian.
314
315 2013-03-11 Don Porter <[email protected]>
316
317 * generic/tclCompile.c: [Bugs 3607246,3607372]: Unbalanced refcounts
318 * generic/tclLiteral.c: of literals in the global literal table.
319
320 2013-03-06 Don Porter <[email protected]>
321
322 * generic/regc_nfa.c: [Bugs 3604074,3606683]: Rewrite of the
323 * generic/regcomp.c: fixempties() routine (and supporting routines)
324 to completely eliminate the infinite loop hazard. Thanks to Tom Lane
325 for the much improved solution.
326
327 2013-02-28 Don Porter <[email protected]>
328
329 * generic/tclLiteral.c: Revise TclReleaseLiteral() to tolerate a NULL
330 interp argument.
331
332 * generic/tclCompile.c: Update callers and revise mistaken comments.
333 * generic/tclProc.c:
334
335 2013-02-27 Jan Nijtmans <[email protected]>
336
337 * generic/regcomp.c: [Bug 3606139]: missing error check allows
338 * tests/regexp.test: regexp to crash Tcl. Thanks to Tom Lane for
339 providing the test-case and the patch.
340
341 2013-02-26 Donal K. Fellows <[email protected]>
342
343 * tests/chanio.test (chan-io-28.7): [Bug 3605120]: Stop test from
344 hanging when run standalone.
345
346 2013-02-26 Jan Nijtmans <[email protected]>
347
348 * generic/tclObj.c: Don't panic if Tcl_ConvertToType is called for a
349 type that doesn't have a setFromAnyProc, create a proper error message.
350
351 2013-02-25 Donal K. Fellows <[email protected]>
352
353 * tests/binary.test (binary-41.*): [Bug 3605721]: Test independence
354 fixes. Thanks to Rolf Ade for pointing out the problem.
355
356 2013-02-25 Don Porter <[email protected]>
357
358 * tests/assocd.test: [Bugs 3605719,3605720]: Test independence.
359 * tests/basic.test: Thanks Rolf Ade for patches.
360
361 2013-02-23 Jan Nijtmans <[email protected]>
362
363 * compat/fake-rfc2553.c: [Bug 3599194]: compat/fake-rfc2553.c is
364 broken.
365
366 2013-02-22 Don Porter <[email protected]>
367
368 * generic/tclAssembly.c: Shift more burden of smart cleanup
369 * generic/tclCompile.c: onto the TclFreeCompileEnv() routine.
370 Stop crashes when the hookProc raises an error.
371
372 2013-02-20 Don Porter <[email protected]>
373
374 * generic/tclNamesp.c: [Bug 3605447]: Make sure the -clear option
375 * tests/namespace.test: to [namespace export] always clears, whether
376 or not new export patterns are specified.
377
378 2013-02-20 Jan Nijtmans <[email protected]>
379
380 * win/tclWinDde.c: [Bug 3605401]: Compiler error with latest mingw-w64
381 headers.
382
383 2013-02-19 Jan Nijtmans <[email protected]>
384
385 * generic/tclTrace.c: [Bug 2438181]: Incorrect error reporting in
386 * tests/trace.test: traces. Test-case and fix provided by Poor
387 Yorick.
388
389 2013-02-15 Don Porter <[email protected]>
390
391 * generic/regc_nfa.c: [Bug 3604074]: Fix regexp optimization to
392 * tests/regexp.test: stop hanging on the expression
393 ((((((((a)*)*)*)*)*)*)*)* . Thanks to Bjørn Grathwohl for discovery.
394
395 2013-02-14 Harald Oehlmann <[email protected]>
396
397 * library/msgcat/msgcat.tcl: [Bug 3604576]: Catch missing registry
398 entry "HCU\Control Panel\International".
399 Bumped msgcat version to 1.5.1
400
401 2013-02-11 Donal K. Fellows <[email protected]>
402
403 * generic/tclZlib.c (ZlibTransformOutput): [Bug 3603553]: Ensure that
404 data gets written to the underlying stream by compressing transforms
405 when the amount of data to be written is one buffer's-worth; problem
406 was particularly likely to occur when compressing large quantities of
407 not-very-compressible data. Many thanks to Piera Poggio (vampiera) for
408 reporting.
409
410 2013-02-09 Donal K. Fellows <[email protected]>
411
412 * generic/tclOOBasic.c (TclOO_Object_VarName): [Bug 3603695]: Change
413 the way that the 'varname' method is implemented so that there are no
414 longer problems with interactions due to the resolver. Thanks to
415 Taylor Venable <[email protected]> for identifying the problem.
416
417 2013-02-08 Donal K. Fellows <[email protected]>
418
419 * generic/regc_nfa.c (duptraverse): [Bug 3603557]: Increase the
420 maximum depth of recursion used when duplicating an automaton in
421 response to encountering a "wild" RE that hit the previous limit.
422 Allow the limit (DUPTRAVERSE_MAX_DEPTH) to be set by defining its
423 value in the Makefile. Problem reported by Jonathan Mills.
424
425 2013-02-05 Don Porter <[email protected]>
426
427 * win/tclWinFile.c: [Bug 3603434]: Make sure TclpObjNormalizePath()
428 properly declares "a:/" to be normalized, even when no "A:" drive is
429 present on the system.
430
431 2013-02-05 Donal K. Fellows <[email protected]>
432
433 * generic/tclLoadNone.c (TclpLoadMemory): [Bug 3433012]: Added dummy
434 version of this function to use in the event that a platform thinks it
435 can load from memory but cannot actually do so due to it being
436 disabled at configuration time.
437
438 2013-02-04 Donal K. Fellows <[email protected]>
439
440 * generic/tclCompCmds.c (TclCompileArraySetCmd): [Bug 3603163]: Stop
441 crash in weird case where [eval] is used to make [array set] get
442 confused about whether there is a local variable table or not. Thanks
443 to Poor Yorick for identifying a reproducible crashing case.
444
445 2013-01-30 Andreas Kupries <[email protected]>
446
447 * library/platform/platform.tcl (::platform::LibcVersion): See
448 * library/platform/pkgIndex.tcl: [Bug 3599098]: Fixed the RE
449 * unix/Makefile.in: extracting the version to avoid issues with
450 * win/Makefile.in: recent changes to the glibc banner. Now targeting a
451 less variable part of the string. Bumped package to version 1.0.11.
452
453 2013-01-28 Donal K. Fellows <[email protected]>
454
455 * generic/tclCompCmds.c (TclCompileArraySetCmd)
456 (TclCompileArrayUnsetCmd, TclCompileDictAppendCmd)
457 (TclCompileDictCreateCmd, CompileDictEachCmd, TclCompileDictIncrCmd)
458 (TclCompileDictLappendCmd, TclCompileDictMergeCmd)
459 (TclCompileDictUnsetCmd, TclCompileDictUpdateCmd)
460 (TclCompileDictWithCmd, TclCompileInfoCommandsCmd):
461 * generic/tclCompCmdsSZ.c (TclCompileStringMatchCmd)
462 (TclCompileStringMapCmd): Improve the code generation in cases where
463 full compilation is impossible but a full ensemble invoke is provably
464 not necessary.
465
466 2013-01-26 Jan Nijtmans <[email protected]>
467
468 * unix/tclUnixCompat.c: [Bug 3601804]: platformCPUID segmentation
469 fault on Darwin.
470
471 2013-01-23 Donal K. Fellows <[email protected]>
472
473 * library/http/http.tcl (http::geturl): [Bug 2911139]: Do not do vwait
474 for connect to avoid reentrancy problems (except when operating
475 without a -command option). Internally, this means that all sockets
476 created by the http package will always be operated in asynchronous
477 mode.
478
479 2013-01-21 Jan Nijtmans <[email protected]>
480
481 * generic/tclInt.decls: Put back Tcl[GS]etStartupScript(Path|FileName)
482 in private stub table, so extensions using this (like Tk 8.4) will
483 continue to work in all Tcl 8.x versions. Extensions using this
484 still cannot be compiled against Tcl 8.6 headers.
485
486 2013-01-18 Jan Nijtmans <[email protected]>
487
488 * generic/tclPort.h: [Bug 3598300]: unix: tcl.h does not include
489 sys/stat.h
490
491 2013-01-17 Donal K. Fellows <[email protected]>
492
493 * generic/tclCompCmds.c (PushVarName): [Bug 3600328]: Added mechanism
494 for suppressing compilation of variables when we couldn't cope with
495 the results. Useful for some [array] subcommands.
496 * generic/tclEnsemble.c (CompileToCompiledCommand): Must restore the
497 compilation environment when a command compiler fails.
498
499 2013-01-16 Donal K. Fellows <[email protected]>
500
501 * generic/tclZlib.c (TclZlibInit): [Bug 3601086]: Register the config
502 info in the iso8859-1 encoding as that is guaranteed to be present.
503
504 2013-01-16 Jan Nijtmans <[email protected]>
505
506 * Makefile.in: Allow win32 build with -DTCL_NO_DEPRECATED, just as
507 * generic/tcl.h: in the UNIX build. Define Tcl_EvalObj and
508 * generic/tclDecls.h: Tcl_GlobalEvalObj as macros, even when
509 * generic/tclBasic.c: TCL_NO_DEPRECATED is defined, so Tk can benefit
510 from it too.
511
512 2013-01-14 Jan Nijtmans <[email protected]>
513
514 * win/tcl.m4: More flexible search for win32 tclConfig.sh, backported
515 from TEA (not actually used in Tcl, only for Tk)
516
517 2013-01-14 Jan Nijtmans <[email protected]>
518
519 * generic/tclInt.decls: Put back Tcl_[GS]etStartupScript in internal
520 stub table, so extensions using this, compiled against 8.5 headers
521 still run in Tcl 8.6.
522
523 2013-01-13 Alexandre Ferrieux <[email protected]>
524
525 * doc/fileevent.n: [Bug 3436609]: Clarify readable fileevent "false
526 positives" in the case of multibyte encodings/transforms.
527
528 2013-01-13 Jan Nijtmans <[email protected]>
529
530 * generic/tclIntDecls.h: If TCL_NO_DEPRECATED is defined, make sure
531 that TIP #139 functions all are taken from the public stub table, even
532 if the inclusion is through tclInt.h.
533
534 2013-01-12 Jan Nijtmans <[email protected]>
535
536 * generic/tclInt.decls: Put back TclBackgroundException in internal
537 stub table, so extensions using this, compiled against 8.5 headers
538 still run in Tcl 8.6.
539
540 2013-01-09 Jan Nijtmans <[email protected]>
541
542 * library/http/http.tcl: [Bug 3599395]: http assumes status line is a
543 proper Tcl list.
544
545 2013-01-08 Jan Nijtmans <[email protected]>
546
547 * win/tclWinFile.c: [Bug 3092089]: [file normalize] can remove path
548 components. [Bug 3587096]: win vista/7: "can't find init.tcl" when
549 called via junction without folder list access.
550
551 2013-01-07 Jan Nijtmans <[email protected]>
552
553 * generic/tclOOStubLib.c: Restrict the stub library to only use
554 * generic/tclTomMathStubLib.c: Tcl_PkgRequireEx, Tcl_ResetResult and
555 Tcl_AppendResult, not any other function. This puts least restrictions
556 on eventual Tcl 9 stubs re-organization, and it works on the widest
557 range of Tcl versions.
558
559 2013-01-06 Jan Nijtmans <[email protected]>
560
561 * library/http/http.tcl: Don't depend on Spencer-specific regexp
562 * tests/env.test: syntax (/u and /U) any more in unrelated places.
563 * tests/exec.test:
564 Bump http package to 2.8.6.
565
566 2013-01-04 Donal K. Fellows <[email protected]>
567
568 * generic/tclEnsemble.c (CompileBasicNArgCommand): Added very simple
569 compiler (which just compiles to a normal invoke of the implementation
570 command) for many ensemble subcommands where we can prove that there
571 is no way for scripts to detect the difference even through error
572 handling or [info level]/[info frame]. This improves the code produced
573 from some ensembles (e.g., [info], [string]) to the point where the
574 ensemble is now not normally seen at the bytecode level at all.
575
576 2013-01-04 Miguel Sofer <[email protected]>
577
578 * generic/tclInt.h: Insure that PURIFY builds cannot exploit the
579 * generic/tclExecute.c: Tcl stack to hide mem defects.
580
581 2013-01-03 Donal K. Fellows <[email protected]>
582
583 * doc/fconfigure.n, doc/CrtChannel.3: Updated to reflect the fact that
584 the minimum buffer size is one byte, not ten. Identified by Schelte
585 Bron on the Tcler's Chat.
586
587 * generic/tclExecute.c (TEBCresume:INST_INVOKE_REPLACE):
588 * generic/tclEnsemble.c (TclCompileEnsemble): Added new mechanism to
589 allow for more efficient dispatch of non-bytecode-compiled subcommands
590 of bytecode-compiled ensembles. This can provide substantial speed
591 benefits in some cases.
592
593 2013-01-02 Miguel Sofer <[email protected]>
594
595 * generic/tclEnsemble.c: Remove stray calls to Tcl_Alloc and friends:
596 * generic/tclExecute.c: the core should only use ckalloc to allow
597 * generic/tclIORTrans.c: MEM_DEBUG to work properly.
598 * generic/tclTomMathInterface.c:
599
600 2012-12-31 Donal K. Fellows <[email protected]>
601
602 * doc/string.n: Noted the obsolescence of the 'bytelength',
603 'wordstart' and 'wordend' subcommands, and moved them to later in the
604 file.
605
606 2012-12-27 Jan Nijtmans <[email protected]>
607
608 * generic/tclListObj.c: [Bug 3598580]: Tcl_ListObjReplace may release
609 deleted elements too early.
610
611 2012-12-22 Alexandre Ferrieux <[email protected]>
612
613 * generic/tclUtil.c: [Bug 3598150]: Stop leaking allocated space when
614 objifying a zero-length DString. Spotted by afredd.
615
616 2012-12-21 Jan Nijtmans <[email protected]>
617
618 * unix/dltest/pkgb.c: Inline compat Tcl_GetDefaultEncodingDir.
619 * generic/tclStubLib.c: Eliminate unnecessary static HasStubSupport()
620 and isDigit() functions, just do the same inline.
621
622 2012-12-18 Donal K. Fellows <[email protected]>
623
624 * generic/tclCompCmdsSZ.c (TclSubstCompile): Improved the sequence of
625 instructions issued for [subst] when dealing with simple variable
626 references.
627
628 2012-12-14 Don Porter <[email protected]>
629
630 *** 8.6.0 TAGGED FOR RELEASE ***
631
632 * changes: updates for 8.6.0
633
634 2012-12-13 Don Porter <[email protected]>
635
636 * generic/tclZlib.c: Repair same issue with misusing the
637 * tests/zlib.test: 'fire and forget' nature of Tcl_ObjSetVar2
638 in the new TIP 400 implementation.
639
640 2012-12-13 Miguel Sofer <[email protected]>
641
642 * generic/tclCmdAH.c: (CatchObjCmdCallback): do not decrRefCount
643 * tests/cmdAH.test: the newValuePtr sent to Tcl_ObjSetVar2:
644 TOSV2 is 'fire and forget', it decrs on its own.
645 Fix for [Bug 3595576], found by andrewsh.
646
647 2012-12-13 Jan Nijtmans <[email protected]>
648
649 * generic/tcl.h: Fix Tcl_DecrRefCount macro such that it doesn't
650 access its objPtr parameter twice any more.
651
652 2012-12-11 Don Porter <[email protected]>
653
654 * generic/tcl.h: Bump version number to 8.6.0.
655 * library/init.tcl:
656 * unix/configure.in:
657 * win/configure.in:
658 * unix/tcl.spec:
659 * README:
660
661 * unix/configure: autoconf-2.59
662 * win/configure:
663
664 2012-12-10 Donal K. Fellows <[email protected]>
665
666 * tools/tcltk-man2html.tcl (plus-pkgs): Increased robustness of
667 version number detection code to deal with packages whose names are
668 prefixes of other packages.
669 * unix/Makefile.in (dist): Added pkgs/package.list.txt to distribution
670 builds to ensure that 'make html' will work better.
671
672 2012-12-09 Alexandre Ferrieux <[email protected]>
673
674 * tests/chan.test: Clean up unwanted eofchar side-effect of chan-4.6
675 leading to a spurious "'" at end of chan.test under certain conditions
676 (see [Bug 3389289] and [Bug 3389251]).
677
678 * doc/expr.n: [Bug 3594188]: Clarifications about commas.
679
680 2012-12-08 Alexandre Ferrieux <[email protected]>
681
682 * generic/tclIO.c: Fix busyloop at exit under TCL_FINALIZE_ON_EXIT
683 when there are unflushed nonblocking channels. Thanks Miguel for
684 spotting.
685
686 2012-12-07 Jan Nijtmans <[email protected]>
687
688 * unix/dltest/pkgb.c: Turn pkgb.so into a Tcl9 interoperability test
689 library: Whatever Tcl9 looks like, loading pkgb.so in Tcl 9 should
690 either result in an error-message, either succeed, but never crash.
691
692 2012-11-28 Donal K. Fellows <[email protected]>
693
694 * generic/tclZlib.c (ZlibStreamSubcmd): [Bug 3590483]: Use a mechanism
695 for complex option resolution that has fewer problems with more
696 finicky compilers.
697
698 2012-11-26 Reinhard Max <[email protected]>
699
700 * unix/tclUnixSock.c: Factor out creation of the -sockname and
701 -peername lists from TcpGetOptionProc() to TcpHostPortList(). Make it
702 robust against implementations of getnameinfo() that error out if
703 reverse mapping fails instead of falling back to the numeric
704 representation.
705
706 2012-11-20 Donal K. Fellows <[email protected]>
707
708 * generic/tclBinary.c (BinaryDecode64): [Bug 3033307]: Corrected
709 handling of trailing whitespace when decoding base64. Thanks to Anton
710 Kovalenko for reporting, and Andy Goth for the fix and tests.
711
712 2012-11-19 Donal K. Fellows <[email protected]>
713
714 * generic/tclExecute.c (INST_STR_RANGE_IMM): [Bug 3588366]: Corrected
715 implementation of bounds restriction for end-indexed compiled [string
716 range]. Thanks to Emiliano Gavilan for diagnosis and fix.
717
718 2012-11-15 Jan Nijtmans <[email protected]>
719
720 IMPLEMENTATION OF TIP#416
721
722 New Options for 'load': -global and -lazy
723
724 * generic/tcl.h:
725 * generic/tclLoad.c
726 * unix/tclLoadDl.c
727 * unix/tclLoadDyld.c
728 * tests/load.test
729 * doc/Load.3
730 * doc/load.n
731
732 2012-11-14 Donal K. Fellows <[email protected]>
733
734 * unix/tclUnixFCmd.c (TclUnixOpenTemporaryFile): [Bug 2933003]: Factor
735 out all the code to do temporary file creation so that it is possible
736 to make it correct in one place. Allow overriding of the back-stop
737 default temporary file location at compile time by setting the
738 TCL_TEMPORARY_FILE_DIRECTORY #def to a string containing the directory
739 name (defaults to "/tmp" as that is the most common default).
740
741 2012-11-13 Joe Mistachkin <[email protected]>
742
743 * win/tclWinInit.c: also search for the library directory (init.tcl,
744 encodings, etc) relative to the build directory associated with the
745 source checkout.
746
747 2012-11-10 Miguel Sofer <[email protected]>
748
749 * generic/tclBasic.c: re-enable bcc-tailcall, after fixing an
750 * generic/tclExecute.c: infinite loop in the TCL_COMPILE_DEBUG mode
751
752
753 2012-11-07 Kevin B. Kenny <[email protected]>
754
755 * library/tzdata/Africa/Casablanca:
756 * library/tzdata/America/Araguaina:
757 * library/tzdata/America/Bahia:
758 * library/tzdata/America/Havana:
759 * library/tzdata/Asia/Amman:
760 * library/tzdata/Asia/Gaza:
761 * library/tzdata/Asia/Hebron:
762 * library/tzdata/Asia/Jerusalem:
763 * library/tzdata/Pacific/Apia:
764 * library/tzdata/Pacific/Fakaofo:
765 * library/tzdata/Pacific/Fiji: Import tzdata2012i.
766
767 2012-11-06 Donal K. Fellows <[email protected]>
768
769 * library/http/http.tcl (http::Finish): [Bug 3581754]: Ensure that
770 callbacks are done at most once to prevent problems with timeouts on a
771 keep-alive connection (combined with reentrant http package use)
772 causing excessive stack growth. Not a fix for the underlying problem,
773 but ensures that pain will be mostly kept away from users.
774 Bump http package to 2.8.5.
775
776 2012-11-05 Donal K. Fellows <[email protected]>
777
778 Added bytecode compilation of many Tcl commands. Some of these are
779 total compilations and some are only partial (i.e., only compile in
780 some cases). The (sub-)commands affected are:
781 * array: exists, set, unset
782 * dict: create, exists, merge
783 * format: (simple cases only)
784 * info: commands, coroutine, level, object
785 * info object: class, isa object, namespace
786 * namespace: current, code, qualifiers, tail, which
787 * regsub: (only cases convertable to simple [string map])
788 * self: (only no-argument and [self object] cases)
789 * string: first, last, map, range
790 * tailcall:
791 * yield:
792
793 [This was work originally done on the 'dkf-compile-misc-info' branch.]
794
795 2012-11-05 Jan Nijtmans <[email protected]>
796
797 IMPLEMENTATION OF TIP#413
798
799 Align the [string trim] and [string is space] commands, such that
800 [string trim] by default trims all characters for which [string is
801 space] returns 1, augmented with the NUL character.
802
803 * generic/tclUtf.c: Add NEL, BOM and two more characters to [string is
804 space]
805 * generic/tclCmdMZ.c: Modify [string trim] for Unicode modifications.
806 * generic/regc_locale.c: Regexp engine must match [string is space]
807 * doc/string.n
808 * tests/string.test
809 ***POTENTIAL INCOMPATIBILITY***
810 Code that relied on characters not previously trimmed being not
811 removed will notice a difference; it is believed that this is rare,
812 but a workaround to get the behavior in Tcl 8.5 is to use " \t\n\r" as
813 an explicit trim set.
814
815 2012-10-31 Jan Nijtmans <[email protected]>
816
817 * win/Makefile.in: Dde version number to 1.4.0, ready for Tcl 8.6.0rc1
818 * win/makefile.vc
819 * win/tclWinDde.c
820 * library/dde/pkgIndex.tcl
821 * tests/winDde.test
822
823 2012-10-24 Donal K. Fellows <[email protected]>
824
825 * generic/tclCompCmds.c (TclCompileDictUnsetCmd): Added compilation of
826 the [dict unset] command (for scalar var in LVT only).
827
828 2012-10-23 Jan Nijtmans <[email protected]>
829
830 * generic/tclInt.h: Add "flags" parameter from Tcl_LoadFile to
831 * generic/tclIOUtil.c: to various internal functions, so these
832 * generic/tclLoadNone.c: flags are available through the whole
833 * unix/tclLoad*.c: filesystem for (future) internal use.
834 * win/tclWinLoad.c:
835
836 2012-10-17 Miguel Sofer <[email protected]>
837
838 * generic/tclBasic.c (TclNRCoroutineObjCmd): insure that numlevels
839 are properly set, fix bug discovered by dkf and reported at
840 http://code.activestate.com/lists/tcl-core/12213/
841
842 2012-10-16 Donal K. Fellows <[email protected]>
843
844 IMPLEMENTATION OF TIP#405
845
846 New commands for applying a transformation to the elements of a list
847 to produce another list (the [lmap] command) and to the mappings of a
848 dictionary to produce another dictionary (the [dict map] command). In
849 both cases, a [continue] will cause the skipping of an element/pair,
850 and a [break] will terminate the construction early and successfully.
851
852 * generic/tclCmdAH.c (Tcl_LmapObjCmd, TclNRLmapCmd): Implementation of
853 the new [lmap] command, based on (and sharing much of) [foreach].
854 * generic/tclDictObj.c (DictMapNRCmd): Implementation of the new [dict
855 map] subcommand, based on (and sharing much of) [dict for].
856 * generic/tclCompCmds.c (TclCompileLmapCmd, TclCompileDictMapCmd):
857 Compilation engines for [lmap] and [dict map].
858
859 IMPLEMENTATION OF TIP#400
860
861 * generic/tclZlib.c: Allow the specification of a compression
862 dictionary (a binary blob used to seed the compression engine) in both
863 streams and channel transformations. Also some reorganization to allow
864 for getting gzip header dictionaries and controlling buffering levels
865 in channel transformations (allowing a trade-off between formal
866 correctness and speed).
867 (Tcl_ZlibStreamSetCompressionDictionary): New C API to allow setting
868 the compression dictionary without using a Tcl script.
869
870 2012-10-14 Jan Nijtmans <[email protected]>
871
872 * generic/tclDictObj.c: [Bug 3576509]: ::tcl::Bgerror crashes with
873 * generic/tclEvent.c: invalid arguments. Better fix, which helps
874 for all Tcl_DictObjGet() calls in Tcl's source code.
875
876 2012-10-13 Jan Nijtmans <[email protected]>
877
878 * generic/tclEvent.c: [Bug 3576509]: tcl::Bgerror crashes with invalid
879 arguments
880
881 2012-10-06 Jan Nijtmans <[email protected]>
882
883 * win/Makefile.in: [Bug 2459774]: tcl/win/Makefile.in not compatible
884 with msys 0.8.
885
886 2012-10-03 Don Porter <[email protected]>
887
888 * generic/tclIO.c: When checking for std channels being closed,
889 compare the channel state, not the channel itself so that stacked
890 channels do not cause trouble.
891
892 2012-09-26 Reinhard Max <[email protected]>
893
894 * generic/tclIOSock.c (TclCreateSocketAddress): Work around a bug in
895 getaddrinfo() on OSX that caused name resolution to fail for [socket
896 -server foo -myaddr localhost 0].
897
898 2012-09-20 Jan Nijtmans <[email protected]>
899
900 * win/configure.in: New import libraries for zlib 1.2.7, usable for
901 * win/configure: all win32/win64 compilers
902 * compat/zlib/win32/zdll.lib:
903 * compat/zlib/win64/zdll.lib:
904
905 * win/tclWinDde.c: [FRQ 3527238]: Full unicode support for dde. Dde
906 version is now 1.4.0b2.
907 ***POTENTIAL INCOMPATIBILITY***
908
909 2012-09-19 Jan Nijtmans <[email protected]>
910
911 * generic/tcl.h: Make Tcl_Interp a fully opaque structure if
912 TCL_NO_DEPRECATED is set (TIP 330 and 336).
913 * win/nmakehlp.c: Let "nmakehlp -V" start searching digits after the
914 found match (suggested by Harald Oehlmann).
915
916 2012-09-19 Harald Oehlmann <[email protected]>
917
918 IMPLEMENTATION OF TIP#412.
919
920 * library/msgcat/msgcat.tcl: dynamic locale change with mc file
921 * library/clock.tcl: load on locale change.
922 clock uses new msgcat features.
923
924 2012-09-07 Harald Oehlmann <[email protected]>
925
926 *** 8.6b3 TAGGED FOR RELEASE ***
927
928 IMPLEMENTATION OF TIP#404.
929
930 * library/msgcat/msgcat.tcl: [FRQ 3544988]: New commands [mcflset]
931 * library/msgcat/pkgIndex.tcl: and [mcflmset] to set mc entries with
932 * unix/Makefile.in: implicit message file locale.
933 * win/Makefile.in: Bump to 1.5.0.
934
935 2012-08-25 Donal K. Fellows <[email protected]>
936
937 * library/msgs/uk.msg: [Bug 3561330]: Use the correct full name of
938 March in Ukrainian. Thanks to Mikhail Teterin for reporting.
939
940 2012-08-23 Jan Nijtmans <[email protected]>
941
942 * generic/tclBinary.c: [Bug 3496014]: Unecessary memset() in
943 Tcl_SetByteArrayObj().
944
945 2012-08-20 Don Porter <[email protected]>
946
947 * generic/tclPathObj.c: [Bug 3559678]: Fix bad filename normalization
948 when the last component is the empty string.
949
950 2012-08-20 Jan Nijtmans <[email protected]>
951
952 * win/tclWinPort.h: Remove wrapper macro for ntohs(): unnecessary,
953 because it doesn't require an initialized winsock_2 library. See:
954 <http://msdn.microsoft.com/en-us/library/windows/desktop/ms740075%28v=vs.85%29.aspx>
955 * win/tclWinSock.c:
956 * generic/tclStubInit.c:
957
958 2012-08-17 Jan Nijtmans <[email protected]>
959
960 * win/nmakehlp.c: Add "-V<num>" option, in order to be able to detect
961 partial version numbers.
962
963 2012-08-15 Jan Nijtmans <[email protected]>
964
965 * win/buildall.vc.bat: Only build the threaded builds by default
966 * win/rules.vc: Some code cleanup
967
968 2010-08-13 Stuart Cassoff <[email protected]>
969
970 * unix/tclUnixCompat.c: [Bug 3555454]: Rearrange a bit to quash
971 'declared but never defined' compiler warnings.
972
973 2012-08-13 Jan Nijtmans <[email protected]>
974
975 * compat/zlib/win64/zlib1.dll: Add 64-bit build of zlib1.dll, and use
976 * compat/zlib/win64/zdll.lib: it for the dynamic mingw-w64 build.
977 * win/Makefile.in:
978 * win/configure.in:
979 * win/configure:
980
981 2012-08-09 Reinhard Max <[email protected]>
982
983 * tests/http.test: Fix http-3.29 for machines without IPv6 support.
984
985 2010-08-08 Stuart Cassoff <[email protected]>
986
987 * unix/tclUnixCompat.c: Change one '#ifdef' to '#if defined()' for
988 improved consistency within the file.
989
990 2012-08-08 Jan Nijtmans <[email protected]>
991
992 * generic/tclfileName.c: [Bug #1536227]: Cygwin network pathname
993 * tests/fileName.test: support
994
995 2012-08-07 Don Porter <[email protected]>
996
997 * generic/tclIOUtil.c: [Bug 3554250]: Overlooked one field of cleanup
998 in the thread exit handler for the filesystem subsystem.
999
1000 2012-07-31 Donal K. Fellows <[email protected]>
1001
1002 * generic/tclInterp.c (Tcl_GetInterpPath):
1003 * unix/tclUnixPipe.c (TclGetAndDetachPids, Tcl_PidObjCmd):
1004 * win/tclWinPipe.c (TclGetAndDetachPids, Tcl_PidObjCmd):
1005 Purge use of Tcl_AppendElement, and corrected conversion of PIDs to
1006 integer objects.
1007
1008 2012-07-31 Jan Nijtmans <[email protected]>
1009
1010 * win/nmakehlp.c: Add -Q option from sampleextension.
1011 * win/Makefile.in: [FRQ 3544967]: Missing objectfiles in static lib
1012 * win/makefile.vc: (Thanks to Jos Decoster).
1013
1014 2012-07-29 Jan Nijtmans <[email protected]>
1015
1016 * win/Makefile.in: No longer build tcltest.exe to run the tests,
1017 but use tclsh86.exe in combination with tcltest86.dll to do that.
1018 * tests/*.test: load tcltest86.dll if necessary.
1019
1020 2012-07-28 Jan Nijtmans <[email protected]>
1021
1022 * tests/clock.test: [Bug 3549770]: Multiple test failures running
1023 * tests/registry.test: tcltest outside build tree
1024 * tests/winDde.test:
1025
1026 2012-07-27 Jan Nijtmans <[email protected]>
1027
1028 * generic/tclUniData.c: Support Unicode 6.2 (Add Turkish lira sign)
1029 * generic/regc_locale.c:
1030
1031 2012-07-25 Alexandre Ferrieux <[email protected]>
1032
1033 * win/tclWinPipe.c: [Bug 3547994]: Abandon the synchronous Windows
1034 pipe driver to its fate when needed to honour TIP#398.
1035
1036 2012-07-24 Trevor Davel <[email protected]>
1037
1038 * win/tclWinSock.c: [Bug: 3545363]: Loop over multiple underlying file
1039 descriptors for a socket where required (TcpCloseProc, SocketProc).
1040 Refactor socket/descriptor setup to manage linked list operations in
1041 one place. Fix memory leak in socket close (TcpCloseProc) and related
1042 dangling pointers in SocketEventProc.
1043
1044 2012-07-19 Reinhard Max <[email protected]>
1045
1046 * win/tclWinSock.c (TcpAccept): [Bug: 3545363]: Use a large enough
1047 buffer for accept()ing IPv6 connections. Fix conversion of host and
1048 port for passing to the accept proc to be independent of the IP
1049 version.
1050
1051 2012-07-23 Alexandre Ferrieux <[email protected]>
1052
1053 * generic/tclIO.c: [Bug 3545365]: Never try a bg-flush on a dead
1054 channel, just like before 2011-08-17.
1055
1056 2012-07-19 Joe Mistachkin <[email protected]>
1057
1058 * generic/tclTest.c: Fix several more missing mutex-locks in
1059 TestasyncCmd.
1060
1061 2012-07-19 Alexandre Ferrieux <[email protected]>
1062
1063 * generic/tclTest.c: [Bug 3544685]: Missing mutex-lock in
1064 TestasyncCmd since 2011-08-19. Unbounded gratitude to Stuart
1065 Cassoff for spotting it.
1066
1067 2012-07-17 Jan Nijtmans <[email protected]>
1068
1069 * win/makefile.vc: [Bug 3544932]: Visual studio compiler check fails
1070
1071 2012-07-16 Donal K. Fellows <[email protected]>
1072
1073 * generic/tclUtil.c (UpdateStringOfEndOffset): [Bug 3544658]: Stop
1074 1-byte overrun in memcpy, that object placement rules made harmless
1075 but which still caused compiler complaints.
1076
1077 2012-07-16 Jan Nijtmans <[email protected]>
1078
1079 * library/reg/pkgIndex.tcl: Make registry 1.3 package dynamically
1080 loadable when ::tcl::pkgconfig is available.
1081
1082 2012-07-11 Jan Nijtmans <[email protected]>
1083
1084 * win/tclWinReg.c: [Bug 3362446]: registry keys command fails
1085 with 8.5/8.6. Follow Microsofts example better in order to prevent
1086 problems when using HKEY_PERFORMANCE_DATA.
1087
1088 2012-07-10 Jan Nijtmans <[email protected]>
1089
1090 * unix/tclUnixNotfy.c: [Bug 3541646]: Don't panic on triggerPipe
1091 overrun.
1092
1093 2012-07-10 Donal K. Fellows <[email protected]>
1094
1095 * win/tclWinSock.c (InitializeHostName): Corrected logic that
1096 extracted the name of the computer from the gethostname call so that
1097 it would use the name on success, not failure. Also ensured that the
1098 buffer size is exactly that recommended by Microsoft.
1099
1100 2012-07-08 Reinhard Max <[email protected]>
1101
1102 * library/http/http.tcl: [Bug 3531209]: Add fix and test for URLs that
1103 * tests/http.test: contain literal IPv6 addresses.
1104
1105 2012-07-05 Don Porter <[email protected]>
1106
1107 * unix/tclUnixPipe.c: [Bug 1189293]: Make "<<" binary safe.
1108 * win/tclWinPipe.c:
1109
1110 2012-07-03 Donal K. Fellows <[email protected]>
1111
1112 * generic/tclUtil.c (TclDStringAppendObj, TclDStringAppendDString):
1113 * generic/tclInt.h (TclDStringAppendLiteral, TclDStringClear):
1114 * generic/tclCompile.h (TclDStringAppendToken): Added wrappers to make
1115 common cases of appending to Tcl_DStrings simpler to write. Prompted
1116 by looking at [FRQ 1357401] (these are an _internal_ implementation of
1117 that FRQ).
1118
1119 2012-06-29 Jan Nijtmans <[email protected]>
1120
1121 * library/msgcat/msgcat.tcl: Add tn, ro_MO and ru_MO to msgcat.
1122
1123 2012-06-29 Harald Oehlmann <[email protected]>
1124
1125 * library/msgcat/msgcat.tcl: [Bug 3536888]: Locale guessing of
1126 * library/msgcat/pkgIndex.tcl: msgcat fails on (some) Windows 7. Bump
1127 * unix/Makefile.in: to 1.4.5
1128 * win/Makefile.in:
1129
1130 2012-06-29 Donal K. Fellows <[email protected]>
1131
1132 * doc/GetIndex.3: Reinforced the description of the requirement for
1133 the tables of names to index over to be static, following posting to
1134 tcl-core by Brian Griffin about a bug caused by Tktreectrl not obeying
1135 this rule correctly. This does not represent a functionality change,
1136 merely a clearer documentation of a long-standing constraint.
1137
1138 2012-06-26 Jan Nijtmans <[email protected]>
1139
1140 * unix/tcl.m4: Let Cygwin shared build link with
1141 * unix/configure.in: zlib1.dll, not cygz.dll (two less
1142 * unix/configure: dependencies on cygwin-specific dll's)
1143 * unix/Makefile.in:
1144
1145 2012-06-26 Reinhard Max <[email protected]>
1146
1147 * generic/tclIOSock.c: Use EAI_SYSTEM only if it exists.
1148 * unix/tclUnixSock.c:
1149
1150 2012-06-25 Don Porter <[email protected]>
1151
1152 * generic/tclFileSystem.h: [Bug 3024359]: Make sure that the
1153 * generic/tclIOUtil.c: per-thread cache of the list of file systems
1154 * generic/tclPathObj.c: currently registered is only updated at times
1155 when no active loops are traversing it. Also reduce the amount of
1156 epoch storing and checking to where it can make a difference.
1157
1158 2012-06-25 Donal K. Fellows <[email protected]>
1159
1160 * generic/tclCmdAH.c (EncodingDirsObjCmd): [Bug 3537605]: Do the right
1161 thing when reporting errors with the number of arguments.
1162
1163 2012-06-25 Jan Nijtmans <[email protected]>
1164
1165 * generic/tclfileName.c: [Patch 1536227]: Cygwin network pathname
1166 * tests/fileName.test: support.
1167
1168 2012-06-23 Jan Nijtmans <[email protected]>
1169
1170 * unix/tclUnixNotfy.c: [Bug 3508771]: Cygwin notifier for handling
1171 win32 events.
1172
1173 2012-06-22 Reinhard Max <[email protected]>
1174
1175 * generic/tclIOSock.c: Rework the error message generation of [socket],
1176 * unix/tclUnixSock.c: so that the error code of getaddrinfo is used
1177 * win/tclWinSock.c: instead of errno unless it is EAI_SYSTEM.
1178
1179 2012-06-21 Jan Nijtmans <[email protected]>
1180
1181 * win/tclWinReg.c: [Bug 3362446]: registry keys command fails
1182 * tests/registry.test: with 8.5/8.6
1183
1184 2012-06-11 Don Porter <[email protected]>
1185
1186 * generic/tclBasic.c: [Bug 3532959]: Make sure the lifetime
1187 * generic/tclProc.c: management of entries in the linePBodyPtr
1188 * tests/proc.test: hash table can tolerate either order of
1189 teardown, interp first, or Proc first.
1190
1191 2012-06-08 Don Porter <[email protected]>
1192
1193 * unix/configure.in: Update autogoo for gettimeofday().
1194 * unix/tclUnixPort.h: Thanks Joe English.
1195 * unix/configure: autoconf 2.13
1196
1197 * unix/tclUnixPort.h: [Bug 3530533]: Centralize #include <pthread.h>
1198 * unix/tclUnixThrd.c: in the tclUnixPort.h header so that old unix
1199 systems that need inclusion in all compilation units are supported.
1200
1201 2012-06-08 Jan Nijtmans <[email protected]>
1202
1203 * win/tclWinDde.c: Revise the "null data" check: null strings are
1204 possible, but empty binary arrays are not.
1205 * tests/winDde.test: Add test-case (winDde-9.4) for transferring
1206 null-strings with dde. Convert tests to tcltest-2 syntax.
1207
1208 2012-06-06 Donal K. Fellows <[email protected]>
1209
1210 * generic/tclZlib.c (TclZlibInit): Declare that Tcl is publishing the
1211 zlib package (version 2.0) as part of its bootstrap process. This will
1212 have an impact on tclkit (which includes zlib 1.1) but otherwise be
1213 very low impact.
1214
1215 2012-06-06 Jan Nijtmans <[email protected]>
1216
1217 * unix/tclUnixInit.c: On Cygwin, use win32 API in stead of uname()
1218 to determine the tcl_platform variables.
1219
1220 2012-05-31 Jan Nijtmans <[email protected]>
1221
1222 * generic/tclZlib.c: [Bug 3530536]: zlib-7.4 fails on IRIX64
1223 * tests/zlib.test:
1224 * doc/zlib.n: Document that [stream checksum] doesn't do
1225 what's expected for "inflate" and "deflate" formats
1226
1227 2012-05-31 Donal K. Fellows <[email protected]>
1228
1229 * library/safe.tcl (safe::AliasFileSubcommand): Don't assume that
1230 slaves have corresponding commands, as that is not true for
1231 sub-subinterpreters (used in Tk's test suite).
1232
1233 * doc/safe.n: [Bug 1997845]: Corrected formatting so that generated
1234 HTML can link properly.
1235
1236 * tests/socket.test (socket*-13.1): Prevented intermittent test
1237 failure due to race condition.
1238
1239 2012-05-29 Donal K. Fellows <[email protected]>
1240
1241 * doc/expr.n, doc/mathop.n: [Bug 2931407]: Clarified semantics of
1242 division and remainder operators.
1243
1244 2012-05-29 Jan Nijtmans <[email protected]>
1245
1246 * win/tclWinDde.c: [Bug 3525762]: Encoding handling in dde.
1247 * win/Makefile.in: Fix "make genstubs" when cross-compiling on UNIX
1248
1249 2012-05-28 Donal K. Fellows <[email protected]>
1250
1251 * library/safe.tcl (safe::AliasFileSubcommand): [Bug 3529949]: Made a
1252 more sophisticated method for preventing information leakage; it
1253 changes references to "~user" into "./~user", which is safe.
1254
1255 2012-05-25 Donal K. Fellows <[email protected]>
1256
1257 * doc/namespace.n, doc/Ensemble.3: [Bug 3528418]: Document what is
1258 going on with respect to qualification of command prefixes in ensemble
1259 subcommand maps.
1260
1261 * generic/tclIO.h (SYNTHETIC_EVENT_TIME): Factored out the definition
1262 of the amount of time that should be waited before firing a synthetic
1263 event on a channel.
1264
1265 2012-05-25 Jan Nijtmans <[email protected]>
1266
1267 * win/tclWinDde.c: [Bug 473946]: Special characters were not correctly
1268 sent, now for XTYP_EXECUTE as well as XTYP_REQUEST.
1269 * win/Makefile.in: Fix "make genstubs" when cross-compiling on UNIX
1270
1271 2012-05-24 Jan Nijtmans <[email protected]>
1272
1273 * tools/genStubs.tcl: Take cygwin handling of X11 into account.
1274 * generic/tcl*Decls.h: re-generated
1275 * generic/tclStubInit.c: Implement TclpIsAtty, Cygwin only.
1276 * doc/dde.n: Doc fix: "dde execute iexplore" doesn't work
1277 without -async, because iexplore doesn't return a value
1278
1279 2012-05-24 Jan Nijtmans <[email protected]>
1280
1281 * tools/genStubs.tcl: Let cygwin share stub table with win32
1282 * win/tclWinSock.c: implement TclpInetNtoa for win32
1283 * generic/tclInt.decls: Revert most of [3caedf05df], since when
1284 we let cygwin share the win32 stub table this is no longer necessary
1285 * generic/tcl*Decls.h: re-generated
1286 * doc/dde.n: 1.3 -> 1.4
1287
1288 2012-05-23 Donal K. Fellows <[email protected]>
1289
1290 * generic/tclZlib.c (ZlibTransformInput): [Bug 3525907]: Ensure that
1291 decompressed input is flushed through the transform correctly when the
1292 input stream gets to the end. Thanks to Alexandre Ferrieux and Andreas
1293 Kupries for their work on this.
1294
1295 2012-05-21 Don Porter <[email protected]>
1296
1297 * generic/tclFileName.c: When using Tcl_SetObjLength() calls to
1298 * generic/tclPathObj.c: grow and shrink the objPtr->bytes
1299 buffer, care must be taken that the value cannot possibly become pure
1300 Unicode. Calling Tcl_AppendToObj() has the possibility of making such
1301 a conversion. Bug found while valgrinding the trunk.
1302
1303 2012-05-21 Jan Nijtmans <[email protected]>
1304
1305 IMPLEMENTATION OF TIP#106
1306
1307 * win/tclWinDde.c: Added encoding-related abilities to
1308 * library/dde/pkgIndex.tcl: the [dde] command. The dde package's
1309 * tests/winDde.test: version is now 1.4.0.
1310 * doc/dde.n:
1311
1312 2012-05-20 Donal K. Fellows <[email protected]>
1313
1314 * generic/tclOOBasic.c (TclOO_Class_Constructor): [Bug 2023112]: Cut
1315 the amount of hackiness in class constructors, and refactor some of
1316 the error message handling from [oo::define] to be saner in the face
1317 of odd happenings.
1318
1319 2012-05-17 Donal K. Fellows <[email protected]>
1320
1321 * generic/tclCmdMZ.c (Tcl_SwitchObjCmd): [Bug 3106532]: Corrected
1322 resulting indexes from -indexvar option to be usable with [string
1323 range]; this was always the intention (and is consistent with [regexp
1324 -indices] too).
1325 ***POTENTIAL INCOMPATIBILITY***
1326 Uses of [switch -regexp -indexvar] that previously compensated for the
1327 wrong offsets (by subtracting 1 from the end indices) now do not need
1328 to do so as the value is correct.
1329
1330 * library/safe.tcl (safe::InterpInit): Ensure that the module path is
1331 constructed in the correct order.
1332 (safe::AliasGlob): [Bug 2964715]: More extensive handling of what
1333 globbing is required to support package loading.
1334
1335 * doc/expr.n: [Bug 3525462]: Corrected statement about what happens
1336 when comparing "0y" and "0x12"; the previously documented behavior was
1337 actually a subtle bug (now long-corrected).
1338
1339 2012-05-16 Donal K. Fellows <[email protected]>
1340
1341 * generic/tclCmdAH.c (TclMakeFileCommandSafe): [Bug 3445787]: Improve
1342 the compatibility of safe interpreters' version of 'file' with that of
1343 unsafe interpreters.
1344 * library/safe.tcl (::safe::InterpInit): Teach the safe-interp scripts
1345 about how to expose 'file' properly.
1346
1347 2012-05-13 Jan Nijtmans <[email protected]>
1348
1349 * win/tclWinDde.c: Protect against receiving strings without ending
1350 \0, as external applications (or Tcl with TIP #106) could generate
1351 that.
1352
1353 2012-05-10 Jan Nijtmans <[email protected]>
1354
1355 * win/tclWinDde.c: [Bug 473946]: Special characters not correctly sent
1356 * library/dde/pkgIndex.tcl: Increase version to 1.3.3
1357
1358 2012-05-10 Alexandre Ferrieux <[email protected]>
1359
1360 * {win,unix}/configure{,.in}: [Bug 2812981]: Clean up bundled
1361 packages' build directory from within Tcl's ./configure, to avoid
1362 stale configuration.
1363
1364 2012-05-09 Andreas Kupries <[email protected]>
1365
1366 * generic/tclIORChan.c: [Bug 3522560]: Fixed the crash, enabled the
1367 test case. Modified [chan postevent] to properly inject the event(s)
1368 into the owner thread's event queue for execution in the correct
1369 context. Renamed the ForwardOpTo...Thread() function to match with our
1370 terminology.
1371
1372 * tests/ioCmd.test: [Bug 3522560]: Added a test which crashes the core
1373 if it were not disabled as knownBug. For a reflected channel
1374 transfered to a different thread the [chan postevent] run in the
1375 handler thread tries to execute the owner threads's fileevent scripts
1376 by itself, wrongly reaching across thread boundaries.
1377
1378 2012-04-28 Alexandre Ferrieux <[email protected]>
1379
1380 * generic/tclIO.c: Properly close nonblocking channels even when
1381 not flushing them.
1382
1383 2012-05-03 Jan Nijtmans <[email protected]>
1384
1385 * compat/zlib/*: Upgrade to zlib 1.2.7 (prebuilt dll is still 1.2.5,
1386 will be upgraded as soon as the official build is available)
1387
1388 2012-05-03 Don Porter <[email protected]>
1389
1390 * tests/socket.test: [Bug 3428754]: Test socket-14.2 tolerate
1391 [socket -async] connection that connects synchronously.
1392
1393 * unix/tclUnixSock.c: [Bug 3428753]: Fix [socket -async] connections
1394 that manage to connect synchronously.
1395
1396 2012-05-02 Jan Nijtmans <[email protected]>
1397
1398 * generic/configure.in: Better detection and implementation for
1399 * generic/configure: cpuid instruction on Intel-derived
1400 * generic/tclUnixCompat.c: processors, both 32-bit and 64-bit.
1401 * generic/tclTest.c: Move cpuid testcase from win-specific to
1402 * win/tclWinTest.c: generic tests, as it should work on all
1403 * tests/platform.test: Intel-related platforms now.
1404
1405 2012-04-30 Alexandre Ferrieux <[email protected]>
1406
1407 * tests/ioCmd.test: [Bug 3522560]: Tame deadlocks in broken refchan
1408 tests.
1409
1410 2012-04-28 Alexandre Ferrieux <[email protected]>
1411
1412 IMPLEMENTATION OF TIP#398
1413
1414 * generic/tclIO.c: Quickly Exit with Non-Blocking Blocked Channels
1415 * tests/io.test : *** POTENTIAL INCOMPATIBILITY ***
1416 * doc/close.n : (compat flag available)
1417
1418 2012-04-27 Jan Nijtmans <[email protected]>
1419
1420 * generic/tclPort.h: Move CYGWIN-specific stuff from tclPort.h to
1421 * generic/tclEnv.c: tclUnixPort.h, where it belongs.
1422 * unix/tclUnixPort.h:
1423 * unix/tclUnixFile.c:
1424
1425 2012-04-27 Donal K. Fellows <[email protected]>
1426
1427 * library/init.tcl (auto_execok): Allow shell builtins to be detected
1428 even if they are upper-cased.
1429
1430 2012-04-26 Jan Nijtmans <[email protected]>
1431
1432 * generic/tclStubInit.c: Get rid of _ANSI_ARGS_ and CONST
1433 * generic/tclIO.c:
1434 * generic/tclIOCmd.c:
1435 * generic/tclTest.c:
1436 * unix/tclUnixChan.c:
1437
1438 2012-04-25 Donal K. Fellows <[email protected]>
1439
1440 * generic/tclUtil.c (TclDStringToObj): Added internal function to make
1441 the fairly-common operation of converting a DString into an Obj a more
1442 efficient one; for long strings, it can just transfer the ownership of
1443 the buffer directly. Replaces this:
1444 obj=Tcl_NewStringObj(Tcl_DStringValue(&ds),Tcl_DStringLength(&ds));
1445 Tcl_DStringFree(&ds);
1446 with this:
1447 obj=TclDStringToObj(&ds);
1448
1449 2012-04-24 Jan Nijtmans <[email protected]>
1450
1451 * generic/tclInt.decls: [Bug 3508771]: load tclreg.dll in cygwin
1452 tclsh
1453 * generic/tclIntPlatDecls.h: Implement TclWinGetSockOpt,
1454 * generic/tclStubInit.c: TclWinGetServByName and TclWinCPUID for
1455 * generic/tclUnixCompat.c: Cygwin.
1456 * unix/configure.in:
1457 * unix/configure:
1458 * unix/tclUnixCompat.c:
1459
1460 2012-04-18 Kevin B. Kenny <[email protected]>
1461
1462 * library/tzdata/Africa/Casablanca:
1463 * library/tzdata/America/Port-au-Prince:
1464 * library/tzdata/Asia/Damascus:
1465 * library/tzdata/Asia/Gaza:
1466 * library/tzdata/Asia/Hebron: tzdata2012c
1467
1468 2012-04-16 Donal K. Fellows <[email protected]>
1469
1470 * doc/FileSystem.3 (Tcl_FSOpenFileChannelProc): [Bug 3518244]: Fixed
1471 documentation of this filesystem callback function; it must not
1472 register its created channel - that's the responsibility of the caller
1473 of Tcl_FSOpenFileChannel - as that leads to reference leaks.
1474
1475 2012-04-15 Donal K. Fellows <[email protected]>
1476
1477 * generic/tclEnsemble.c (NsEnsembleImplementationCmdNR):
1478 * generic/tclIOUtil.c (Tcl_FSEvalFileEx): Cut out levels of the C
1479 stack by going direct to the relevant internal evaluation function.
1480
1481 * generic/tclZlib.c (ZlibTransformSetOption): [Bug 3517696]: Make
1482 flushing work correctly in a pushed compressing channel transform.
1483
1484 2012-04-12 Jan Nijtmans <[email protected]>
1485
1486 * generic/tclInt.decls: [Bug 3514475]: Remove TclpGetTimeZone and
1487 * generic/tclIntDecls.h: TclpGetTZName
1488 * generic/tclIntPlatDecls.h:
1489 * generic/tclStubInit.c:
1490 * unix/tclUnixTime.c:
1491 * unix/tclWinTilemc:
1492
1493 2012-04-11 Jan Nijtmans <[email protected]>
1494
1495 * win/tclWinInit.c: [Bug 3448512]: clock scan "1958-01-01" fails
1496 * win/tcl.m4: only in debug compilation.
1497 * win/configure:
1498 * unix/tcl.m4: Use NDEBUG consistantly meaning: no debugging.
1499 * unix/configure:
1500 * generic/tclBasic.c:
1501 * library/dde/pkgIndex.tcl: Use [::tcl::pkgconfig get debug] instead
1502 * library/reg/pkgIndex.tcl: of [info exists ::tcl_platform(debug)]
1503
1504 2012-04-10 Donal K. Fellows <[email protected]>
1505
1506 * generic/tcl.h (TCL_DEPRECATED_API): [Bug 2458976]: Added macro that
1507 can be used to mark parts of Tcl's API as deprecated. Currently only
1508 used for fields of Tcl_Interp, which TIPs 330 and 336 have deprecated
1509 with a migration strategy; we want to encourage people to move away
1510 from those fields.
1511
1512 2012-04-09 Donal K. Fellows <[email protected]>
1513
1514 * generic/tclOODefineCmds.c (ClassVarsSet, ObjVarsSet): [Bug 3396896]:
1515 Ensure that the lists of variable names used to drive variable
1516 resolution will never have the same name twice.
1517
1518 * generic/tclVar.c (AppendLocals): [Bug 2712377]: Fix problem with
1519 reporting of declared variables in methods. It's really a problem with
1520 how [info vars] interacts with variable resolvers; this is just a bit
1521 of a hack so it is no longer a big problem.
1522
1523 2012-04-04 Donal K. Fellows <[email protected]>
1524
1525 * generic/tclOO.c (Tcl_NewObjectInstance, TclNRNewObjectInstance):
1526 [Bug 3514761]: Fixed bogosity with automated argument description
1527 handling when constructing an instance of a class that is itself a
1528 member of an ensemble. Thanks to Andreas Kupries for identifying that
1529 this was a problem case at all!
1530 (Tcl_CopyObjectInstance): Fix potential bleed-over of ensemble
1531 information into [oo::copy].
1532
1533 2012-04-04 Jan Nijtmans <[email protected]>
1534
1535 * win/tclWinSock.c: [Bug 510001]: TclSockMinimumBuffers needs
1536 * generic/tclIOSock.c: platform implementation.
1537 * generic/tclInt.decls:
1538 * generic/tclIntDecls.h:
1539 * generic/tclStubInit.c:
1540
1541 2012-04-03 Jan Nijtmans <[email protected]>
1542
1543 * generic/tclStubInit.c: Remove the TclpGetTZName implementation for
1544 * generic/tclIntDecls.h: Cygwin (from 2012-04-02 commit), re-generated
1545 * generic/tclIntPlatDecls.h:
1546
1547 2012-04-02 Donal K. Fellows <[email protected]>
1548
1549 IMPLEMENTATION OF TIP#396.
1550
1551 * generic/tclBasic.c (builtInCmds, TclNRYieldToObjCmd): Convert the
1552 formerly-unsupported yieldm and yieldTo commands into [yieldto].
1553
1554 2012-04-02 Jan Nijtmans <[email protected]>
1555
1556 * generic/tclInt.decls: [Bug 3508771]: load tclreg.dll in cygwin tclsh
1557 * generic/tclIntPlatDecls.h: Implement TclWinGetTclInstance,
1558 * generic/tclStubInit.c: TclpGetTZName, and various more
1559 win32-specific internal functions for Cygwin, so win32 extensions
1560 using those can be loaded in the cygwin version of tclsh.
1561
1562 2012-03-30 Jan Nijtmans <[email protected]>
1563
1564 * unix/tcl.m4: [Bug 3511806]: Compiler checks too early
1565 * unix/configure.in: This change allows to build the cygwin and
1566 * unix/tclUnixPort.h: mingw32 ports of Tcl/Tk to build out-of-the-box
1567 * win/tcl.m4: using a native or cross-compiler.
1568 * win/configure.in:
1569 * win/tclWinPort.h:
1570 * win/README Document how to build win32 or win64 executables
1571 with Linux, Cygwin or Darwin.
1572
1573 2012-03-29 Jan Nijtmans <[email protected]>
1574
1575 * generic/tclCmdMZ.c (StringIsCmd): Faster mem-leak free
1576 implementation of [string is entier].
1577
1578 2012-03-27 Donal K. Fellows <[email protected]>
1579
1580 IMPLEMENTATION OF TIP#395.
1581
1582 * generic/tclCmdMZ.c (StringIsCmd): Implementation of the [string is
1583 entier] check. Code by Jos Decoster.
1584
1585 2012-03-27 Jan Nijtmans <[email protected]>
1586
1587 * generic/tcl.h: [Bug 3508771]: Wrong Tcl_StatBuf used on MinGW.
1588 * generic/tclFCmd.c: [Bug 2015723]: Duplicate inodes from file stat
1589 * generic/tclCmdAH.c: on windows (but now for cygwin as well).
1590 * generic/tclOODefineCmds.c: minor gcc warning
1591 * win/tclWinPort.h: Use lower numbers, preventing integer overflow.
1592 Remove the workaround for mingw-w64 [Bug 3407992]. It's long fixed.
1593
1594 2012-03-27 Donal K. Fellows <[email protected]>
1595
1596 IMPLEMENTATION OF TIP#397.
1597
1598 * generic/tclOO.c (Tcl_CopyObjectInstance): [Bug 3474460]: Make the
1599 target object name optional when copying classes. [RFE 3485060]: Add
1600 callback method ("<cloned>") so that scripted control over copying is
1601 easier.
1602 ***POTENTIAL INCOMPATIBILITY***
1603 If you'd previously been using the "<cloned>" method name, this now
1604 has a standard semantics and call interface. Only a problem if you are
1605 also using [oo::copy].
1606
1607 2012-03-26 Donal K. Fellows <[email protected]>
1608
1609 IMPLEMENTATION OF TIP#380.
1610
1611 * doc/define.n, doc/object.n, generic/tclOO.c, generic/tclOOBasic.c:
1612 * generic/tclOOCall.c, generic/tclOODefineCmds.c, generic/tclOOInt.h:
1613 * tests/oo.test: Switch definitions of lists of things in objects and
1614 classes to a slot-based approach, which gives a lot more flexibility
1615 and programmability at the script-level. Introduce new [::oo::Slot]
1616 class which is the implementation of these things.
1617
1618 ***POTENTIAL INCOMPATIBILITY***
1619 The unknown method handler now may be asked to deal with the case
1620 where no method name is provided at all. The default implementation
1621 generates a compatible error message, and any override that forces the
1622 presence of a first argument (i.e., a method name) will continue to
1623 function as at present as well, so this is a pretty small change.
1624
1625 * generic/tclOOBasic.c (TclOO_Object_Destroy): Made it easier to do a
1626 tailcall inside a normally-invoked destructor; prevented leakage out
1627 to calling command.
1628
1629 2012-03-25 Jan Nijtmans <[email protected]>
1630
1631 * generic/tclInt.decls: [Bug 3508771]: load tclreg.dll in cygwin
1632 * generic/tclIntPlatDecls.h: tclsh. Implement TclWinConvertError,
1633 * generic/tclStubInit.c: TclWinConvertWSAError, and various more
1634 * unix/Makefile.in: win32-specific internal functions for
1635 * unix/tcl.m4: Cygwin, so win32 extensions using those
1636 * unix/configure: can be loaded in the cygwin version of
1637 * win/tclWinError.c: tclsh.
1638
1639 2012-03-23 Jan Nijtmans <[email protected]>
1640
1641 * generic/tclInt.decls: Revert some cygwin-related signature
1642 * generic/tclIntPlatDecls.h: changes from [835f8e1e9d] (2010-01-22).
1643 * win/tclWinError.c: They were an attempt to make the cygwin
1644 port compile again, but since cygwin is
1645 based on unix this serves no purpose any
1646 more.
1647 * win/tclWinSerial.c: Use EAGAIN in stead of EWOULDBLOCK,
1648 * win/tclWinSock.c: because in VS10+ the value of
1649 EWOULDBLOCK is no longer the same as
1650 EAGAIN.
1651 * unix/Makefile.in: Add tclWinError.c to the CYGWIN build.
1652 * unix/tcl.m4:
1653 * unix/configure:
1654
1655 2012-03-20 Jan Nijtmans <[email protected]>
1656
1657 * generic/tcl.decls: [Bug 3508771]: load tclreg.dll in cygwin
1658 * generic/tclInt.decls: tclsh. Implement TclWinGetPlatformId,
1659 * generic/tclIntPlatDecls.h: Tcl_WinUtfToTChar, Tcl_WinTCharToUtf (and
1660 * generic/tclPlatDecls.h: a dummy TclWinCPUID) for Cygwin, so win32
1661 * generic/tclStubInit.c: extensions using those can be loaded in
1662 * unix/tclUnixCompat.c: the cygwin version of tclsh.
1663
1664 2012-03-19 Venkat Iyer <[email protected]>
1665
1666 * library/tzdata/America/Atikokan: Update to tzdata2012b.
1667 * library/tzdata/America/Blanc-Sablon:
1668 * library/tzdata/America/Dawson_Creek:
1669 * library/tzdata/America/Edmonton:
1670 * library/tzdata/America/Glace_Bay:
1671 * library/tzdata/America/Goose_Bay:
1672 * library/tzdata/America/Halifax:
1673 * library/tzdata/America/Havana:
1674 * library/tzdata/America/Moncton:
1675 * library/tzdata/America/Montreal:
1676 * library/tzdata/America/Nipigon:
1677 * library/tzdata/America/Rainy_River:
1678 * library/tzdata/America/Regina:
1679 * library/tzdata/America/Santiago:
1680 * library/tzdata/America/St_Johns:
1681 * library/tzdata/America/Swift_Current:
1682 * library/tzdata/America/Toronto:
1683 * library/tzdata/America/Vancouver:
1684 * library/tzdata/America/Winnipeg:
1685 * library/tzdata/Antarctica/Casey:
1686 * library/tzdata/Antarctica/Davis:
1687 * library/tzdata/Antarctica/Palmer:
1688 * library/tzdata/Asia/Yerevan:
1689 * library/tzdata/Atlantic/Stanley:
1690 * library/tzdata/Pacific/Easter:
1691 * library/tzdata/Pacific/Fakaofo:
1692 * library/tzdata/America/Creston: (new)
1693
1694 2012-03-19 Reinhard Max <[email protected]>
1695
1696 * unix/tclUnixSock.c (Tcl_OpenTcpServer): Use the values returned
1697 by getaddrinfo() for all three arguments to socket() instead of
1698 only using ai_family. Try to keep the most meaningful error while
1699 iterating over the result list, because using the last error can
1700 be misleading.
1701
1702 2012-03-15 Jan Nijtmans <[email protected]>
1703
1704 * generic/tcl.h: [Bug 3288345]: Wrong Tcl_StatBuf used on Cygwin
1705 * unix/tclUnixFile.c:
1706 * unix/tclUnixPort.h:
1707 * win/cat.c: Remove cygwin stuff no longer needed
1708 * win/tclWinFile.c:
1709 * win/tclWinPort.h:
1710
1711 2012-03-12 Jan Nijtmans <[email protected]>
1712
1713 * win/tclWinFile.c: [Bug 3388350]: mingw64 compiler warnings
1714
1715 2012-03-11 Donal K. Fellows <[email protected]>
1716
1717 * doc/*.n, doc/*.3: A number of small spelling and wording fixes.
1718
1719 2012-03-08 Donal K. Fellows <[email protected]>
1720
1721 * doc/info.n: Various minor fixes (prompted by Andreas Kupries
1722 * doc/socket.n: detecting a spelling mistake).
1723
1724 2012-03-07 Andreas Kupries <[email protected]>
1725
1726 * library/http/http.tcl: [Bug 3498327]: Generate upper-case
1727 * library/http/pkgIndex.tcl: hexadecimal output for compliance
1728 * tests/http.test: with RFC 3986. Bumped version to 2.8.4.
1729 * unix/Makefile.in:
1730 * win/Makefile.in:
1731
1732 2012-03-06 Jan Nijtmans <[email protected]>
1733
1734 * win/tclWinPort.h: Compatibility with older Visual Studio versions.
1735
1736 2012-03-04 Jan Nijtmans <[email protected]>
1737
1738 * generic/tclLoad.c: Patch from the cygwin folks
1739 * unix/tcl.m4:
1740 * unix/configure: (re-generated)
1741
1742 2012-03-02 Donal K. Fellows <[email protected]>
1743
1744 * generic/tclBinary.c (Tcl_SetByteArrayObj): [Bug 3496014]: Only zero
1745 out the memory block if it is not being immediately overwritten. (Our
1746 caller might still overwrite, but we should at least avoid
1747 known-useless work.)
1748
1749 2012-02-29 Jan Nijtmans <[email protected]>
1750
1751 * generic/tclIOUtil.c: [Bug 3466099]: BOM in Unicode
1752 * generic/tclEncoding.c:
1753 * tests/source.test:
1754
1755 2012-02-23 Donal K. Fellows <[email protected]>
1756
1757 * tests/reg.test (14.21-23): Add tests relating to Bug 1115587. Actual
1758 bug is characterised by test marked with 'knownBug'.
1759
1760 2012-02-17 Jan Nijtmans <[email protected]>
1761
1762 * generic/tclIOUtil.c: [Bug 2233954]: AIX: compile error
1763 * unix/tclUnixPort.h:
1764
1765 2012-02-16 Donal K. Fellows <[email protected]>
1766
1767 * generic/tclExecute.c (INST_LIST_RANGE_IMM): Enhance implementation
1768 so that shortening a (not multiply-referenced) list by lopping the end
1769 off with [lrange] or [lreplace] is efficient.
1770
1771 2012-02-15 Donal K. Fellows <[email protected]>
1772
1773 * generic/tclCompCmds.c (TclCompileLreplaceCmd): Added a compilation
1774 strategy for [lreplace] that tackles the cases which are equivalent to
1775 a static [lrange].
1776 (TclCompileLrangeCmd): Add compiler for [lrange] with constant indices
1777 so we can take advantage of existing TCL_LIST_RANGE_IMM opcode.
1778 (TclCompileLindexCmd): Improve coverage of constant-index-style
1779 compliation using technique developed for [lrange] above.
1780
1781 (TclCompileDictForCmd): [Bug 3487626]: Fix crash in compilation of
1782 [dict for] when its implementation command is used directly rather
1783 than through the ensemble.
1784
1785 2012-02-09 Don Porter <[email protected]>
1786
1787 * generic/tclStringObj.c: Converted the memcpy() calls in append
1788 operations to memmove() calls. This adds safety in the case of
1789 overlapping copies, and improves performance on some benchmarks.
1790
1791 2012-02-06 Don Porter <[email protected]>
1792
1793 * generic/tclEnsemble.c: [Bug 3485022]: TclCompileEnsemble() avoid
1794 * tests/trace.test: compile when exec traces set.
1795
1796 2012-02-06 Miguel Sofer <[email protected]>
1797
1798 * generic/tclTrace.c: [Bug 3484621]: Ensure that execution traces on
1799 * tests/trace.test: bytecoded commands bump the interp's compile
1800 epoch.
1801
1802 2012-02-02 Jan Nijtmans <[email protected]>
1803
1804 * generic/tclUniData.c: [FRQ 3464401]: Support Unicode 6.1
1805 * generic/regc_locale.c:
1806
1807 2012-02-02 Don Porter <[email protected]>
1808
1809 * win/tclWinFile.c: [Bugs 2974459,2879351,1951574,1852572,
1810 1661378,1613456]: Revisions to the NativeAccess() routine that queries
1811 file permissions on Windows native filesystems. Meant to fix numerous
1812 bugs where [file writable|readable|executable] "lies" about what
1813 operations are possible, especially when the file resides on a Samba
1814 share.
1815
1816 2012-02-01 Donal K. Fellows <[email protected]>
1817
1818 * doc/AddErrInfo.3: [Bug 3482614]: Documentation nit.
1819
1820 2012-01-30 Donal K. Fellows <[email protected]>
1821
1822 * generic/tclCompCmds.c (TclCompileCatchCmd): Added a more efficient
1823 bytecode generator for the case where 'catch' is used without any
1824 variable arguments; don't capture the result just to discard it.
1825
1826 2012-01-26 Don Porter <[email protected]>
1827
1828 * generic/tclCmdAH.c: [Bug 3479689]: New internal routine
1829 * generic/tclFCmd.c: TclJoinPath(). Refactor all the
1830 * generic/tclFileName.c: *Join*Path* routines to give them more
1831 * generic/tclInt.h: useful interfaces that are easier to
1832 * generic/tclPathObj.c: manage getting the refcounts right.
1833
1834 2012-01-26 Don Porter <[email protected]>
1835
1836 * generic/tclPathObj.c: [Bug 3475569]: Add checks for unshared values
1837 before calls demanding them. [Bug 3479689]: Stop memory corruption
1838 when shimmering 0-refCount value to "path" type.
1839
1840 2012-01-25 Donal K. Fellows <[email protected]>
1841
1842 * generic/tclOO.c (Tcl_CopyObjectInstance): [Bug 3474460]: When
1843 copying an object, make sure that the configuration of the variable
1844 resolver is also duplicated.
1845
1846 2012-01-22 Jan Nijtmans <[email protected]>
1847
1848 * tools/uniClass.tcl: [FRQ 3473670]: Various Unicode-related
1849 * tools/uniParse.tcl: speedups/robustness. Enhanced tools to be
1850 * generic/tclUniData.c: able to handle characters > 0xFFFF. Done in
1851 * generic/tclUtf.c: all branches in order to simplify merges for
1852 * generic/regc_locale.c: new Unicode versions (such as 6.1)
1853
1854 2012-01-22 Donal K. Fellows <[email protected]>
1855
1856 * generic/tclDictObj.c (DictExistsCmd): [Bug 3475264]: Ensure that
1857 errors only ever happen when insufficient arguments are supplied, and
1858 not when a path doesn't exist or a dictionary is poorly formatted (the
1859 two cases can't be easily distinguished).
1860
1861 2012-01-21 Jan Nijtmans <[email protected]>
1862
1863 * generic/tcl.h: [Bug 3474726]: Eliminate detection of struct
1864 * generic/tclWinPort.h: _stat32i64, just use _stati64 in combination
1865 * generic/tclFCmd.c: with _USE_32BIT_TIME_T, which is the same
1866 * generic/tclTest.c: then. Only keep _stat32i64 usage for cygwin,
1867 * win/configure.in: so it will not conflict with cygwin's own
1868 * win/configure: struct stat.
1869
1870 2012-01-21 Don Porter <[email protected]>
1871
1872 * generic/tclCmdMZ.c: [Bug 3475667]: Prevent buffer read overflow.
1873 Thanks to "sebres" for the report and fix.
1874
1875 2012-01-17 Donal K. Fellows <[email protected]>
1876
1877 * doc/dict.n (dict with): [Bug 3474512]: Explain better what is going
1878 on when a dictionary key and the dictionary variable collide.
1879
1880 2012-01-13 Donal K. Fellows <[email protected]>
1881
1882 * library/http/http.tcl (http::Connect): [Bug 3472316]: Ensure that we
1883 only try to read the socket error exactly once.
1884
1885 2012-01-12 Donal K. Fellows <[email protected]>
1886
1887 * doc/tclvars.n: [Bug 3466506]: Document more environment variables.
1888
1889 2012-01-09 Jan Nijtmans <[email protected]>
1890
1891 * generic/tclUtf.c: [Bug 3464428]: [string is graph \u0120] was
1892 * generic/regc_locale.c: wrong. Add table for Unicode [:cntrl:] class.
1893 * tools/uniClass.tcl: Generate Unicode [:cntrl:] class table.
1894 * tests/utf.test:
1895
1896 2012-01-08 Kevin B. Kenny <[email protected]>
1897
1898 * library/clock.tcl (ReadZoneinfoFile): [Bug 3470928]: Corrected a bug
1899 * tests/clock.test (clock-56.4): where loading zoneinfo would
1900 fail if one timezone abbreviation was a proper tail of another, and
1901 zic used the same bytes of the file to represent both of them. Added a
1902 test case for the bug, using the same data that caused the observed
1903 failure "in the wild."
1904
1905 2011-12-30 Venkat Iyer <[email protected]>
1906
1907 * library/tzdata/America/Bahia: Update to Olson's tzdata2011n
1908 * library/tzdata/America/Havana:
1909 * library/tzdata/Europe/Kiev:
1910 * library/tzdata/Europe/Simferopol:
1911 * library/tzdata/Europe/Uzhgorod:
1912 * library/tzdata/Europe/Zaporozhye:
1913 * library/tzdata/Pacific/Fiji:
1914
1915 2011-12-23 Jan Nijtmans <[email protected]>
1916
1917 * generic/tclUtf.c: [Bug 3464428]: [string is graph \u0120] is wrong.
1918 * generic/tclUniData.c:
1919 * generic/regc_locale.c:
1920 * tests/utf.test:
1921 * tools/uniParse.tcl: Clean up some unused stuff, and be more robust
1922 against changes in UnicodeData.txt syntax
1923
1924 2011-12-13 Andreas Kupries <[email protected]>
1925
1926 * generic/tclCompile.c (TclInitAuxDataTypeTable): Extended to register
1927 the DictUpdateInfo structure as an AuxData type. For use by tbcload,
1928 tclcompiler.
1929
1930 2011-12-11 Jan Nijtmans <[email protected]>
1931
1932 * generic/regc_locale.c: [Bug 3457031]: Some Unicode 6.0 chars not
1933 * tests/utf.test: in [:print:] class
1934
1935 2011-12-07 Jan Nijtmans <[email protected]>
1936
1937 * tools/uniParse.tcl: [Bug 3444754]: string tolower \u01c5 is wrong
1938 * generic/tclUniData.c:
1939 * tests/utf.test:
1940
1941 2011-11-30 Jan Nijtmans <[email protected]>
1942
1943 * library/tcltest/tcltest.tcl: [Bug 967195]: Make tcltest work
1944 when tclsh is compiled without using the setargv() function on mingw.
1945
1946 2011-11-29 Jan Nijtmans <[email protected]>
1947
1948 * win/Makefile.in: don't install tommath_(super)?class.h
1949 * unix/Makefile.in: don't install directories like 8.2 and 8.3
1950 * generic/tclTomMath.h: [Bug 2991415]: move include tclInt.h from
1951 * generic/tclTomMathInt.h: tclTomMath.h to tclTomMathInt.h
1952
1953 2011-11-25 Donal K. Fellows <[email protected]>
1954
1955 * library/history.tcl (history): Simplify the dance of variable
1956 management used when chaining to the implementation command.
1957
1958 2011-11-22 Donal K. Fellows <[email protected]>
1959
1960 * generic/tclExecute.c (TclCompileObj): Simplify and de-indent the
1961 logic so that it is easier to comprehend.
1962
1963 2011-11-22 Jan Nijtmans <[email protected]>
1964
1965 * win/tclWinPort.h: [Bug 3354324]: Windows: [file mtime] sets wrong
1966 * win/tclWinFile.c: time (VS2005+ only).
1967 * generic/tclTest.c:
1968
1969 2011-11-20 Joe Mistachkin <[email protected]>
1970
1971 * tests/thread.test: Remove unnecessary [after] calls from the thread
1972 tests. Make error message matching more robust for tests that may
1973 have built-in race conditions. Test thread-7.26 must first unset all
1974 thread testing related variables. Revise results of the thread-7.28
1975 through thread-7.31 tests to account for the fact they are canceled
1976 via a script sent to the thread asynchronously, which then impacts the
1977 error message handling. Attempt to manually drain the event queue for
1978 the main thread after joining the test thread to make sure no stray
1979 events are processed at the wrong time on the main thread. Revise all
1980 the synchronization and comparison semantics related to the thread id
1981 and error message.
1982
1983 2011-11-18 Joe Mistachkin <[email protected]>
1984
1985 * tests/thread.test: Remove all use of thread::release from the thread
1986 7.x tests, replacing it with a script that can easily cause "stuck"
1987 threads to self-destruct for those test cases that require it. Also,
1988 make the error message handling far more robust by keeping track of
1989 every asynchronous error.
1990
1991 2011-11-17 Joe Mistachkin <[email protected]>
1992
1993 * tests/thread.test: Refactor all the remaining thread-7.x tests that
1994 were using [testthread]. Note that this test file now requires the
1995 very latest version of the Thread package to pass all tests. In
1996 addition, the thread-7.18 and thread-7.19 tests have been flagged as
1997 knownBug because they cannot pass without modifications to the [expr]
1998 command, persuant to TIP #392.
1999
2000 2011-11-17 Joe Mistachkin <[email protected]>
2001
2002 * generic/tclThreadTest.c: For [testthread cancel], avoid creating a
2003 new Tcl_Obj when the default script cancellation result is desired.
2004
2005 2011-11-11 Donal K. Fellows <[email protected]>
2006
2007 * win/tclWinConsole.c: Refactor common thread handling patterns.
2008
2009 2011-11-11 Alexandre Ferrieux <[email protected]>
2010
2011 * tests/zlib.test: [Bug 3428756]: Use nonblocking writes in
2012 single-threaded IO tests to avoid deadlocks when going beyond OS
2013 buffers. Tidy up [chan configure] flags across zlib.test.
2014
2015 2011-11-03 Donal K. Fellows <[email protected]>
2016
2017 * unix/tclUnixCompat.c (TclpGetPwNam, TclpGetPwUid, TclpGetGrNam)
2018 (TclpGetGrGid): Use the elaborate memory management scheme outlined on
2019 http://www.opengroup.org/austin/docs/austin_328.txt to handle Tcl's
2020 use of standard reentrant versions of the passwd/group access
2021 functions so that everything can work on all BSDs. Problem identified
2022 by Stuart Cassoff.
2023
2024 2011-10-20 Don Porter <[email protected]>
2025
2026 * library/http/http.tcl: Bump to version 2.8.3
2027 * library/http/pkgIndex.tcl:
2028 * unix/Makefile.in:
2029 * win/Makefile.in:
2030
2031 * changes: Updates toward 8.6b3 release.
2032
2033 2011-10-20 Donal K. Fellows <[email protected]>
2034
2035 * generic/tclLiteral.c (TclInvalidateCmdLiteral): [Bug 3418547]:
2036 Additional code for handling the invalidation of literals.
2037 * generic/tclBasic.c (Tcl_CreateObjCommand, Tcl_CreateCommand)
2038 (TclRenameCommand, Tcl_ExposeCommand): The four additional places that
2039 need extra care when dealing with literals.
2040 * generic/tclTest.c (TestInterpResolverCmd): Additional test machinery
2041 for interpreter resolvers.
2042
2043 2011-10-18 Reinhard Max <[email protected]>
2044
2045 * library/clock.tcl (::tcl::clock::GetSystemTimeZone): Cache the time
2046 zone only if it was detected by one of the expensive methods.
2047 Otherwise after unsetting TCL_TZ or TZ the previous value will still
2048 be used.
2049
2050 2011-10-15 Venkat Iyer <[email protected]>
2051
2052 * library/tzdata/America/Sitka: Update to Olson's tzdata2011l
2053 * library/tzdata/Pacific/Fiji:
2054 * library/tzdata/Asia/Hebron: (New)
2055
2056 2011-10-11 Jan Nijtmans <[email protected]>
2057
2058 * win/tclWinFile.c: [Bug 2935503]: Incorrect mode field returned by
2059 [file stat] command.
2060
2061 2011-10-09 Donal K. Fellows <[email protected]>
2062
2063 * generic/tclCompCmds.c (TclCompileDictWithCmd): Corrected handling of
2064 qualified names, and added spacial cases for empty bodies (used when
2065 [dict with] is just used for extracting variables).
2066
2067 2011-10-07 Jan Nijtmans <[email protected]>
2068
2069 * generic/tcl.h: Fix gcc warnings (discovered with latest
2070 * generic/tclIORChan.c: mingw, based on gcc 4.6.1)
2071 * tests/env.test: Fix env.test, when running under wine 1.3.
2072
2073 2011-10-06 Donal K. Fellows <[email protected]>
2074
2075 * generic/tclDictObj.c (TclDictWithInit, TclDictWithFinish):
2076 * generic/tclCompCmds.c (TclCompileDictWithCmd): Experimental
2077 compilation for the [dict with] subcommand, using parts factored out
2078 from the interpreted version of the command.
2079
2080 2011-10-05 Jan Nijtmans <[email protected]>
2081
2082 * win/tclWinInt.h: Remove tclWinProcs, as it is no longer
2083 * win/tclWin32Dll.c: being used.
2084
2085 2011-10-03 Venkat Iyer <[email protected]>
2086
2087 * library/tzdata/Africa/Dar_es_Salaam: Update to Olson's tzdata2011k
2088 * library/tzdata/Africa/Kampala:
2089 * library/tzdata/Africa/Nairobi:
2090 * library/tzdata/Asia/Gaza:
2091 * library/tzdata/Europe/Kaliningrad:
2092 * library/tzdata/Europe/Kiev:
2093 * library/tzdata/Europe/Minsk:
2094 * library/tzdata/Europe/Simferopol:
2095 * library/tzdata/Europe/Uzhgorod:
2096 * library/tzdata/Europe/Zaporozhye:
2097 * library/tzdata/Pacific/Apia:
2098
2099 2011-09-29 Donal K. Fellows <[email protected]>
2100
2101 * tools/tcltk-man2html.tcl, tools/tcltk-man2html-utils.tcl: More
2102 refactoring so that more of the utility code is decently out of the
2103 way. Adjusted the header-material generator so that version numbers
2104 are only included in locations where there is room.
2105
2106 2011-09-28 Jan Nijtmans <[email protected]>
2107
2108 * generic/tclOO.h: [RFE 3010352]: make all TclOO API functions
2109 * generic/tclOODecls.h: MODULE_SCOPE
2110 * generic/tclOOIntDecls.h:
2111
2112 2011-09-27 Donal K. Fellows <[email protected]>
2113
2114 * generic/tclIndexObj.c (Tcl_ParseArgsObjv): [Bug 3413857]: Corrected
2115 the memory management for the code parsing arguments when returning
2116 "large" numbers of arguments. Also unbroke the TCL_ARGV_AUTO_REST
2117 macro in passing.
2118
2119 2011-09-26 Donal K. Fellows <[email protected]>
2120
2121 * generic/tclCmdAH.c (TclMakeFileCommandSafe): [Bug 3211758]: Also
2122 make the main [file] command hidden by default in safe interpreters,
2123 because that's what existing code expects. This will reduce the amount
2124 which the code breaks, but not necessarily eliminate it...
2125
2126 2011-09-23 Don Porter <[email protected]>
2127
2128 * generic/tclIORTrans.c: More revisions to get finalization of
2129 ReflectedTransforms correct, including adopting a "dead" field as was
2130 done in tclIORChan.c.
2131
2132 * tests/thread.test: Stop using the deprecated thread management
2133 commands of the tcltest package. The test suite ought to provide
2134 these tools for itself. They do not belong in a testing harness.
2135
2136 2011-09-22 Don Porter <[email protected]>
2137
2138 * generic/tclCmdIL.c: Revise [info frame] so that it stops creating
2139 cycles in the iPtr->cmdFramePtr stack.
2140
2141 2011-09-22 Donal K. Fellows <[email protected]>
2142
2143 * doc/re_syntax.n: [Bug 2903743]: Add more magic so that we can do at
2144 least something sane on Solaris.
2145 * tools/tcltk-man2html-utils.tcl (process-text): Teach the HTML
2146 generator how to handle this magic.
2147
2148 2011-09-21 Don Porter <[email protected]>
2149
2150 * generic/tclThreadTest.c: Revise the thread exit handling of the
2151 [testthread] command so that it properly maintains the per-process
2152 data structures even when the thread exits for reasons other than the
2153 [testthread exit] command.
2154
2155 2011-09-21 Alexandre Ferrieux <[email protected]>
2156
2157 * unix/tclIO.c: [Bug 3412487]: Now short reads are allowed in
2158 synchronous fcopy, avoid mistaking them as nonblocking ones.
2159
2160 2011-09-21 Andreas Kupries <[email protected]>
2161
2162 * generic/tclIORTrans.c (ForwardOpToOwnerThread): Fixed the missing
2163 initialization of the 'dsti' field. Reported by Don Porter, on chat.
2164
2165 2011-09-20 Don Porter <[email protected]>
2166
2167 * generic/tclIORChan.c: Re-using the "interp" field to signal a dead
2168 channel (via NULL value) interfered with conditional cleanup tasks
2169 testing for "the right interp". Added a new field "dead" to perform
2170 the dead channel signalling task so the corrupted logic is avoided.
2171
2172 * generic/tclIORTrans.c: Revised ReflectClose() and
2173 FreeReflectedTransform() so that we stop leaking ReflectedTransforms,
2174 yet free all Tcl_Obj values in the same thread that alloced them.
2175
2176 2011-09-19 Don Porter <[email protected]>
2177
2178 * tests/ioTrans.test: Conversion from [testthread] to Thread package
2179 stops most memory leaks.
2180
2181 * tests/thread.test: Plug most memory leaks in thread.test.
2182 Constrain the rest to be skipped during `make valgrind'. Tests using
2183 the [testthread cancel] testing command are leaky. Corrections wait
2184 for either addition of [thread::cancel] to the Thread package, or
2185 improvements to the [testthread] testing command to make leak-free
2186 versions of these tests possible.
2187
2188 * generic/tclIORChan.c: Plug all memory leaks in ioCmd.test exposed
2189 * tests/ioCmd.test: by `make valgrind'.
2190 * unix/Makefile.in:
2191
2192 2011-09-16 Jan Nijtmans <[email protected]>
2193
2194 IMPLEMENTATION OF TIP #388
2195
2196 * doc/Tcl.n:
2197 * doc/re_syntax.n:
2198 * generic/regc_lex.c:
2199 * generic/regcomp.c:
2200 * generic/regcustom.h:
2201 * generic/tcl.h:
2202 * generic/tclParse.c:
2203 * tests/reg.test:
2204 * tests/utf.test:
2205
2206 2011-09-16 Donal K. Fellows <[email protected]>
2207
2208 * generic/tclProc.c (ProcWrongNumArgs): [Bugs 3400658,3408830]:
2209 Corrected the handling of procedure error messages (found by TclOO).
2210
2211 2011-09-16 Jan Nijtmans <[email protected]>
2212
2213 * generic/tcl.h: Don't change Tcl_UniChar type when
2214 * generic/regcustom.h: TCL_UTF_MAX == 4 (not supported anyway)
2215
2216 2011-09-16 Donal K. Fellows <[email protected]>
2217
2218 * generic/tclProc.c (ProcWrongNumArgs): [Bugs 3400658,3408830]:
2219 Ensemble-like rewriting of error messages is complex, and TclOO (in
2220 combination with iTcl) hits the most tricky cases.
2221
2222 * library/http/http.tcl (http::geturl): [Bug 3391977]: Ensure that the
2223 -headers option overrides the -type option (important because -type
2224 has a default that is not always appropriate, and the header must not
2225 be duplicated).
2226
2227 2011-09-15 Don Porter <[email protected]>
2228
2229 * generic/tclCompExpr.c: [Bug 3408408]: Partial improvement by sharing
2230 as literals the computed values of constant subexpressions when we can
2231 do so without incurring the cost of string rep generation.
2232
2233 2011-09-13 Don Porter <[email protected]>
2234
2235 * generic/tclUtil.c: [Bug 3390638]: Workaround broken Solaris
2236 Studio cc optimizer. Thanks to Wolfgang S. Kechel.
2237
2238 * generic/tclDTrace.d: [Bug 3405652]: Portability workaround for
2239 broken system DTrace support. Thanks to Dagobert Michelson.
2240
2241 2011-09-12 Jan Nijtmans <[email protected]>
2242
2243 * win/tclWinPort.h: [Bug 3407070]: tclPosixStr.c won't build with
2244 EOVERFLOW==E2BIG
2245
2246 2011-09-11 Don Porter <[email protected]>
2247
2248 * tests/thread.test: Convert [testthread] use to Thread package use
2249 in thread-6.1. Eliminates a memory leak in `make valgrind`.
2250
2251 * tests/socket.test: [Bug 3390699]: Convert [testthread] use to
2252 Thread package use in socket_*-13.1. Eliminates a memory leak in
2253 `make valgrind`.
2254
2255 2011-09-09 Don Porter <[email protected]>
2256
2257 * tests/chanio.test: [Bug 3389733]: Convert [testthread] use to
2258 * tests/io.test: Thread package use in *io-70.1. Eliminates a
2259 memory leak in `make valgrind`.
2260
2261 2011-09-07 Don Porter <[email protected]>
2262
2263 * generic/tclCompExpr.c: [Bug 3401704]: Allow function names like
2264 * tests/parseExpr.test: influence(), nanobot(), and 99bottles() that
2265 have been parsed as missing operator syntax errors before with the
2266 form NUMBER + FUNCTION.
2267 ***POTENTIAL INCOMPATIBILITY***
2268
2269 2011-09-06 Venkat Iyer <[email protected]>
2270
2271 * library/tzdata/America/Goose_Bay: Update to Olson's tzdata2011i
2272 * library/tzdata/America/Metlakatla:
2273 * library/tzdata/America/Resolute:
2274 * library/tzdata/America/St_Johns:
2275 * library/tzdata/Europe/Kaliningrad:
2276 * library/tzdata/Pacific/Apia:
2277 * library/tzdata/Pacific/Honolulu:
2278 * library/tzdata/Africa/Juba: (new)
2279
2280 2011-09-06 Jan Nijtmans <[email protected]>
2281
2282 * generic/tcl.h: [RFE 1711975]: Tcl_MainEx() (like Tk_MainEx())
2283 * generic/tclDecls.h:
2284 * generic/tclMain.c:
2285
2286 2011-09-02 Don Porter <[email protected]>
2287
2288 * tests/http.test: Convert [testthread] use to Thread package use.
2289 Eliminates memory leak seen in `make valgrind`.
2290
2291 2011-09-01 Alexandre Ferrieux <[email protected]>
2292
2293 * unix/tclUnixSock.c: [Bug 3401422]: Cache script-level changes to the
2294 nonblocking flag of an async client socket in progress, and commit
2295 them on completion.
2296
2297 2011-09-01 Don Porter <[email protected]>
2298
2299 * generic/tclStrToD.c: [Bug 3402540]: Corrections to TclParseNumber()
2300 * tests/binary.test: to make it reject invalid Nan(Hex) strings.
2301
2302 * tests/scan.test: [scan Inf %g] is portable; remove constraint.
2303
2304 2011-08-30 Donal K. Fellows <[email protected]>
2305
2306 * generic/tclInterp.c (SlaveCommandLimitCmd, SlaveTimeLimitCmd):
2307 [Bug 3398794]: Ensure that low-level conditions in the limit API are
2308 enforced at the script level through errors, not a Tcl_Panic. This
2309 means that interpreters cannot read their own limits (writing already
2310 did not work).
2311
2312 2011-08-30 Reinhard Max <[email protected]>
2313
2314 * unix/tclUnixSock.c (TcpWatchProc): [Bug 3394732]: Put back the check
2315 for server sockets.
2316
2317 2011-08-29 Don Porter <[email protected]>
2318
2319 * generic/tclIORTrans.c: Leak of ReflectedTransformMap.
2320
2321 2011-08-27 Don Porter <[email protected]>
2322
2323 * generic/tclStringObj.c: [RFE 3396731]: Revise the [string reverse]
2324 * tests/string.test: implementation to operate on the representation
2325 that comes in, avoid conversion to other reps.
2326
2327 2011-08-23 Don Porter <[email protected]>
2328
2329 * generic/tclIORChan.c: [Bug 3396948]: Leak of ReflectedChannelMap.
2330
2331 2011-08-19 Don Porter <[email protected]>
2332
2333 * generic/tclIORTrans.c: [Bugs 3393279, 3393280]: ReflectClose(.) is
2334 missing Tcl_EventuallyFree() calls at some of its exits.
2335
2336 * generic/tclIO.c: [Bugs 3394654, 3393276]: Revise FlushChannel() to
2337 account for the possibility that the ChanWrite() call might recycle
2338 the buffer out from under us.
2339
2340 * generic/tclIO.c: Preserve the chanPtr during FlushChannel so that
2341 channel drivers don't yank it away before we're done with it.
2342
2343 2011-08-19 Alexandre Ferrieux <[email protected]>
2344
2345 * generic/tclTest.c: [Bug 2981154]: async-4.3 segfault.
2346 * tests/async.test: [Bug 1774689]: async-4.3 sometimes fails.
2347
2348 2011-08-18 Alexandre Ferrieux <[email protected]>
2349
2350 * generic/tclIO.c: [Bug 3096275]: Sync fcopy buffers input.
2351
2352 2011-08-18 Jan Nijtmans <[email protected]>
2353
2354 * generic/tclUniData.c: [Bug 3393714]: Overflow in toupper delta
2355 * tools/uniParse.tcl:
2356 * tests/utf.test:
2357
2358 2011-08-17 Alexandre Ferrieux <[email protected]>
2359
2360 * generic/tclIO.c: [Bug 2946474]: Consistently resume backgrounded
2361 * tests/ioCmd.test: flushes+closes when exiting.
2362
2363 2011-08-17 Alexandre Ferrieux <[email protected]>
2364
2365 * doc/interp.n: Document TIP 378's one-way-ness.
2366
2367 2011-08-17 Don Porter <[email protected]>
2368
2369 * generic/tclGet.c: [Bug 3393150]: Overlooked free of intreps.
2370 (It matters for bignums!)
2371
2372 2011-08-16 Don Porter <[email protected]>
2373
2374 * generic/tclCompile.c: [Bug 3392070]: More complete prevention of
2375 Tcl_Obj reference cycles when producing an intrep of ByteCode.
2376
2377 2011-08-16 Donal K. Fellows <[email protected]>
2378
2379 * generic/tclListObj.c (TclLindexList, TclLsetFlat): Silence warnings
2380 about (unreachable) cases of uninitialized variables.
2381 * generic/tclCmdIL.c (SelectObjFromSublist): Improve the generation of
2382 * generic/tclIndexObj.c (Tcl_ParseArgsObjv): messages through the use
2383 * generic/tclVar.c (ArrayStartSearchCmd): of Tcl_ObjPrintf.
2384
2385 2011-08-15 Don Porter <[email protected]>
2386
2387 * generic/tclBasic.c: [Bug 3390272]: Leak of [info script] value.
2388
2389 2011-08-15 Jan Nijtmans <[email protected]>
2390
2391 * generic/tclPosixStr.c: [Bug 3388350]: mingw64 compiler warnings
2392 * win/tclWinPort.h:
2393 * win/configure.in:
2394 * win/configure:
2395
2396 2011-08-14 Jan Nijtmans <[email protected]>
2397
2398 * doc/FindExec.3: [Patch 3124554]: Move WishPanic from Tk to Tcl
2399 * doc/Panic.3 Added Documentation
2400
2401 2011-08-12 Don Porter <[email protected]>
2402
2403 * generic/tclPathObj.c: [Bug 3389764]: Eliminate possibility that dup
2404 of a "path" value can create reference cycle.
2405
2406 2011-08-12 Donal K. Fellows <[email protected]>
2407
2408 * generic/tclZlib.c (ZlibTransformOutput): [Bug 3390073]: Return the
2409 correct length of written data for a compressing transform.
2410
2411 2011-08-10 Alexandre Ferrieux <[email protected]>
2412
2413 * generic/tclTestObj.c: [Bug 3386721]: Allow multiple [load]ing of the
2414 Tcltest package.
2415
2416 2011-08-09 Alexandre Ferrieux <[email protected]>
2417
2418 * generic/tclBasic.c: [Bug 2919042]: Restore "valgrindability" of Tcl
2419 * generic/tclEvent.c: that was lost by the streamlining of [exit], by
2420 * generic/tclExecute.c: conditionally forcing a full Finalize:
2421 * generic/tclInt.h: use -DPURIFY or ::env(TCL_FINALIZE_ON_EXIT)
2422
2423 2011-08-09 Alexandre Ferrieux <[email protected]>
2424
2425 * generic/tclCompCmds.c: [Bug 3386417]: Avoid a reference loop between
2426 * generic/tclInt.h: the bytecode and its companion errostack
2427 * generic/tclResult.c: when compiling a syntax error.
2428
2429 2011-08-09 Jan Nijtmans <[email protected]>
2430
2431 * win/tclWinConsole.c: [Bug 3388350]: mingw64 compiler warnings
2432 * win/tclWinDde.c:
2433 * win/tclWinPipe.c:
2434 * win/tclWinSerial.c:
2435
2436 2011-08-09 Jan Nijtmans <[email protected]>
2437
2438 * generic/tclInt.h: Change the signature of TclParseHex(), such that
2439 * generic/tclParse.c: it can now parse up to 8 hex characters.
2440
2441 2011-08-08 Donal K. Fellows <[email protected]>
2442
2443 * generic/tclZlib.c (ZlibStreamCmd): Make the -buffersize option to
2444 '$zstream add' function correctly instead of having its value just be
2445 discarded unceremoniously. Also generate error codes from more of the
2446 code, not just the low-level code but also the Tcl infrastructure.
2447
2448 2011-08-07 Donal K. Fellows <[email protected]>
2449
2450 * generic/tclOOInfo.c (InfoClassCallCmd): [Bug 3387082]: Plug memory
2451 leak in call chain introspection.
2452
2453 2011-08-06 Kevin B, Kenny <[email protected]>
2454
2455 * generic/tclAssemnbly.c: [Bug 3384840]: Plug another memory leak.
2456 * generic/tclStrToD.c: [Bug 3386975]: Plug another memory leak.
2457
2458 2011-08-05 Kevin B. Kenny <[email protected]>
2459
2460 * generic/tclStrToD.c: [Bug 3386975]: Plugged a memory leak in
2461 double->string conversion.
2462
2463 2011-08-05 Don Porter <[email protected]>
2464
2465 *** 8.6b2 TAGGED FOR RELEASE ***
2466
2467 * changes: Updates for 8.6b2 release.
2468
2469 2011-08-05 Donal K. Fellows <[email protected]>
2470
2471 * generic/tclAssembly.c (AssembleOneLine): Ensure that memory isn't
2472 leaked when an unknown instruction is encountered. Also simplify code
2473 through use of Tcl_ObjPrintf in error message generation.
2474
2475 * generic/tclZlib.c (ZlibTransformClose): [Bug 3386197]: Plug a memory
2476 leak found by Miguel with valgrind, and ensure that the correct
2477 direction's buffers are released.
2478
2479 2011-08-04 Miguel Sofer <[email protected]>
2480
2481 * generic/tclVar.c (TclPtrSetVar): Fix valgrind-detected error when
2482 newValuePtr is the interp's result obj.
2483
2484 2011-08-04 Donal K. Fellows <[email protected]>
2485
2486 * generic/tclAssembly.c (FreeAssemblyEnv): [Bug 3384840]: Plug another
2487 possible memory leak due to over-complex code for freeing the table of
2488 labels.
2489
2490 2011-08-04 Reinhard Max <[email protected]>
2491
2492 * generic/tclIOSock.c (TclCreateSocketAddress): Don't bother using
2493 AI_ADDRCONFIG for now, as it was causing problems in various
2494 situations.
2495
2496 2011-08-04 Donal K. Fellows <[email protected]>
2497
2498 * generic/tclAssembly.c (AssembleOneLine, GetBooleanOperand)
2499 (GetIntegerOperand, GetListIndexOperand, FindLocalVar): [Bug 3384840]:
2500 A Tcl_Obj is allocated by GetNextOperand, so callers of it must not
2501 hold a reference to one in the 'out' parameter when calling it. This
2502 was causing a great many memory leaks.
2503 * tests/assemble.test (assemble-51.*): Added group of memory leak
2504 tests.
2505
2506 2011-08-02 Don Porter <[email protected]>
2507
2508 * changes: Updates for 8.6b2 release.
2509 * tools/tcltk-man2html.tcl: Variable substitution botch.
2510
2511 2011-08-02 Donal K. Fellows <[email protected]>
2512
2513 * generic/tclObj.c (Tcl_DbIncrRefCount, Tcl_DbDecrRefCount)
2514 (Tcl_DbIsShared): [Bug 3384007]: Fix the panic messages so they share
2515 what should be shared and have the right number of spaces.
2516
2517 2011-08-01 Miguel Sofer <[email protected]>
2518
2519 * generic/tclProc.c (TclProcCompileProc): [Bug 3383616]: Fix for leak
2520 of resolveInfo when recompiling procs. Thanks go to Gustaf Neumann for
2521 detecting the bug and providing the fix.
2522
2523 2011-08-01 Donal K. Fellows <[email protected]>
2524
2525 * doc/tclvars.n (EXAMPLES): Added some examples of how some of the
2526 standard global variables can be used, following prompting by a
2527 request by Robert Hicks.
2528
2529 * tools/tcltk-man2html.tcl (plus-pkgs): [Bug 3382474]: Added code to
2530 determine the version number of contributed packages from their
2531 directory names so that HTML documentation builds are less confusing.
2532
2533 2011-07-29 Donal K. Fellows <[email protected]>
2534
2535 * tools/tcltk-man2html.tcl (ensemble_commands, remap_link_target):
2536 Small enhancements to improve cross-linking with contributed packages.
2537 * tools/tcltk-man2html-utils.tcl (insert-cross-references): Enhance to
2538 cope with contributed packages' C API.
2539
2540 2011-07-28 Reinhard Max <[email protected]>
2541
2542 * unix/tcl.m4 (SC_TCL_IPV6): Fix AC_DEFINE invocation for
2543 NEED_FAKE_RFC2553.
2544 * unix/configure: autoconf-2.59
2545
2546 2011-07-28 Don Porter <[email protected]>
2547
2548 * changes: Updates for 8.6b2 release.
2549
2550 * library/tzdata/Asia/Anadyr: Update to Olson's tzdata2011h
2551 * library/tzdata/Asia/Irkutsk:
2552 * library/tzdata/Asia/Kamchatka:
2553 * library/tzdata/Asia/Krasnoyarsk:
2554 * library/tzdata/Asia/Magadan:
2555 * library/tzdata/Asia/Novokuznetsk:
2556 * library/tzdata/Asia/Novosibirsk:
2557 * library/tzdata/Asia/Omsk:
2558 * library/tzdata/Asia/Sakhalin:
2559 * library/tzdata/Asia/Vladivostok:
2560 * library/tzdata/Asia/Yakutsk:
2561 * library/tzdata/Asia/Yekaterinburg:
2562 * library/tzdata/Europe/Kaliningrad:
2563 * library/tzdata/Europe/Moscow:
2564 * library/tzdata/Europe/Samara:
2565 * library/tzdata/Europe/Volgograd:
2566 * library/tzdata/America/Kralendijk: (new)
2567 * library/tzdata/America/Lower_Princes: (new)
2568
2569 2011-07-26 Donal K. Fellows <[email protected]>
2570
2571 * generic/tclOO.c (initScript): Ensure that TclOO is properly found by
2572 all the various package mechanisms (by adding a dummy ifneeded script)
2573 and not just some of them.
2574
2575 2011-07-21 Jan Nijtmans <[email protected]>
2576
2577 * win/tclWinPort.h: [Bug 3372130]: Fix hypot math function with MSVC10
2578
2579 2011-07-19 Don Porter <[email protected]>
2580
2581 * generic/tclUtil.c: [Bug 3371644]: Repair failure to properly handle
2582 * tests/util.test: (length == -1) scanning in TclConvertElement().
2583 Thanks to Thomas Sader and Alexandre Ferrieux.
2584
2585 2011-07-19 Donal K. Fellows <[email protected]>
2586
2587 * doc/*.3, doc/*.n: Many small fixes to documentation as part of
2588 project to improve quality of generated HTML docs.
2589
2590 * tools/tcltk-man2html.tcl (remap_link_target): More complete set of
2591 definitions of link targets, especially for major C API types.
2592 * tools/tcltk-man2html-utils.tcl (output-IP-list, cross-reference):
2593 Update to generation to produce proper HTML bulleted and enumerated
2594 lists.
2595
2596 2011-07-19 Alexandre Ferrieux <[email protected]>
2597
2598 * doc/upvar.n: Undocument long gone limitation of [upvar].
2599
2600 2011-07-18 Don Porter <[email protected]>
2601
2602 * generic/tcl.h: Bump version number to 8.6b2.
2603 * library/init.tcl:
2604 * unix/configure.in:
2605 * win/configure.in:
2606 * unix/tcl.spec:
2607 * tools/tcl.wse.in:
2608 * README:
2609
2610 * unix/configure: autoconf-2.59
2611 * win/configure:
2612
2613 2011-07-15 Don Porter <[email protected]>
2614
2615 * generic/tclCompile.c: Avoid segfaults when RecordByteCodeStats() is
2616 called in a deleted interp.
2617
2618 * generic/tclCompile.c: [Bug 467523, 3357771]: Prevent circular
2619 references in values with ByteCode intreps. They can lead to memory
2620 leaks.
2621
2622 2011-07-14 Donal K. Fellows <[email protected]>
2623
2624 * generic/tclOOCall.c (TclOORenderCallChain): [Bug 3365156]: Remove
2625 stray refcount bump that caused a memory leak.
2626
2627 2011-07-12 Don Porter <[email protected]>
2628
2629 * generic/tclUnixSock.c: [Bug 3364777]: Stop segfault caused by
2630 reading from struct after it had been freed.
2631
2632 2011-07-11 Joe Mistachkin <[email protected]>
2633
2634 * generic/tclExecute.c: [Bug 3339502]: Correct cast for CURR_DEPTH to
2635 silence compiler warning.
2636
2637 2011-07-08 Donal K. Fellows <[email protected]>
2638
2639 * doc/http.n: [FRQ 3358415]: State what RFC defines HTTP/1.1.
2640
2641 2011-07-07 Miguel Sofer <[email protected]>
2642
2643 * generic/tclBasic.c: Add missing INT2PTR
2644
2645 2011-07-03 Donal K. Fellows <[email protected]>
2646
2647 * doc/FileSystem.3: Corrected statements about ctime field of 'struct
2648 stat'; that was always the time of the last metadata change, not the
2649 time of creation.
2650
2651 2011-07-02 Kevin B. Kenny <[email protected]>
2652
2653 * generic/tclStrToD.c:
2654 * generic/tclTomMath.decls:
2655 * generic/tclTomMathDecls.h:
2656 * macosx/Tcl.xcode/project.pbxproj:
2657 * macosx/Tcl.xcodeproj/project.pbxproj:
2658 * tests/util.test:
2659 * unix/Makefile.in:
2660 * win/Makefile.in:
2661 * win/Makefile.vc:
2662 [Bug 3349507]: Fix a bug where bignum->double conversion is "round up"
2663 and not "round to nearest" (causing expr double(1[string repeat 0 23])
2664 not to be 1e+23).
2665
2666 2011-06-28 Reinhard Max <[email protected]>
2667
2668 * unix/tclUnixSock.c (CreateClientSocket): [Bug 3325339]: Fix and
2669 simplify posting of the writable fileevent at the end of an
2670 asynchronous connection attempt. Improve comments for some of the
2671 trickery around [socket -async].
2672
2673 * tests/socket.test: Adjust tests to the async code changes. Add more
2674 tests for corner cases of async sockets.
2675
2676 2011-06-22 Andreas Kupries <[email protected]>
2677
2678 * library/platform/pkgIndex.tcl: Updated to platform 1.0.10. Added
2679 * library/platform/platform.tcl: handling of the DEB_HOST_MULTIARCH
2680 * unix/Makefile.in: location change for libc.
2681 * win/Makefile.in:
2682
2683 * generic/tclInt.h: Fixed the inadvertently committed disabling of
2684 stack checks, see my 2010-11-15 commit.
2685
2686 2011-06-22 Reinhard Max <[email protected]>
2687
2688 Merge from rmax-ipv6-branch:
2689 * unix/tclUnixSock.c: Fix [socket -async], so that all addresses
2690 returned by getaddrinfo() are tried, not just the first one. This
2691 requires the event loop to be running while the async connection is in
2692 progress. ***POTENTIAL INCOMPATIBILITY***
2693 * tests/socket.test: Add a test for the above.
2694 * doc/socket: Document the fact that -async needs the event loop
2695 * generic/tclIOSock.c: AI_ADDRCONFIG is broken on HP-UX
2696
2697 2011-06-21 Don Porter <[email protected]>
2698
2699 * generic/tclLink.c: [Bug 3317466]: Prevent multiple links to a
2700 single Tcl variable when calling Tcl_LinkVar().
2701
2702 2011-06-13 Don Porter <[email protected]>
2703
2704 * generic/tclStrToD.c: [Bug 3315098]: Mem leak fix from Gustaf
2705 Neumann.
2706
2707 2011-06-08 Andreas Kupries <[email protected]>
2708
2709 * generic/tclExecute.c: Reverted the fix for [Bug 3274728] committed
2710 on 2011-04-06 and replaced with one which is 64bit-safe. The existing
2711 fix crashed tclsh on Windows 64bit.
2712
2713 2011-06-08 Donal K. Fellows <[email protected]>
2714
2715 * tests/fileSystem.test: Reduce the amount of use of duplication of
2716 complex code to perform common tests, and convert others to do the
2717 test result check directly using Tcltest's own primitives.
2718
2719 2011-06-06 Jan Nijtmans <[email protected]>
2720
2721 * tests/socket.test: Add test constraint, so 6.2 and 6.3 don't fail
2722 when the machine does not have support for ip6. Follow-up to checkin
2723 from 2011-05-11 by rmax.
2724
2725 2011-06-02 Don Porter <[email protected]>
2726
2727 * generic/tclBasic.c: Removed TclCleanupLiteralTable(), and old
2728 * generic/tclInt.h: band-aid routine put in place while a fix for
2729 * generic/tclLiteral.c: [Bug 994838] took shape. No longer needed.
2730
2731 2011-06-02 Donal K. Fellows <[email protected]>
2732
2733 * generic/tclInt.h (TclInvalidateNsCmdLookup): [Bug 3185407]: Extend
2734 the set of epochs that are potentially bumped when a command is
2735 created, for a slight performance drop (in some circumstances) and
2736 improved semantics.
2737
2738 2011-06-01 Miguel Sofer <[email protected]>
2739
2740 * generic/tclBasic.c: Using the two free data elements in NRCommand to
2741 store objc and objv - useful for debugging.
2742
2743 2011-06-01 Jan Nijtmans <[email protected]>
2744
2745 * generic/tclUtil.c: Fix for [Bug 3309871]: Valgrind finds: invalid
2746 read in TclMaxListLength().
2747
2748 2011-05-31 Don Porter <[email protected]>
2749
2750 * generic/tclInt.h: Use a complete growth algorithm for lists so
2751 * generic/tclListObj.c: that length limits do not overconstrain by a
2752 * generic/tclStringObj.c: factor of 2. [Bug 3293874]: Fix includes
2753 * generic/tclUtil.c: rooting all growth routines by default on a
2754 common tunable parameter TCL_MIN_GROWTH.
2755
2756 2011-05-25 Don Porter <[email protected]>
2757
2758 * library/msgcat/msgcat.tcl: Bump to msgcat 1.4.4.
2759 * library/msgcat/pkgIndex.tcl:
2760 * unix/Makefile.in:
2761 * win/Makefile.in:
2762
2763 2011-05-25 Donal K. Fellows <[email protected]>
2764
2765 * generic/tclOO.h (TCLOO_VERSION): Bump version.
2766
2767 IMPLEMENTATION OF TIP#381.
2768
2769 * doc/next.n, doc/ooInfo.n, doc/self.n, generic/tclOO.c,
2770 * generic/tclOOBasic.c, generic/tclOOCall.c, generic/tclOOInfo.c,
2771 * generic/tclOOInt.h, tests/oo.test, tests/ooNext2.test: Added
2772 introspection of call chains ([self call], [info object call], [info
2773 class call]) and ability to skip ahead in chain ([nextto]).
2774
2775 2011-05-24 Venkat Iyer <[email protected]>
2776
2777 * library/tzdata/Africa/Cairo: Update to Olson tzdata2011g
2778
2779 2011-05-24 Donal K. Fellows <[email protected]>
2780
2781 * library/msgcat/msgcat.tcl (msgcat::mcset, msgcat::mcmset): Remove
2782 some useless code; [dict set] builds dictionary levels for us.
2783
2784 2011-05-17 Andreas Kupries <[email protected]>
2785
2786 * generic/tclCompile.c (TclFixupForwardJump): Tracked down and fixed
2787 * generic/tclBasic.c (TclArgumentBCEnter): the cause of a violation of
2788 my assertion that 'ePtr->nline == objc' in TclArgumentBCEnter. When a
2789 bytecode was grown during jump fixup the pc -> command line mapping
2790 was not updated. When things aligned just wrong the mapping would
2791 direct command A to the data for command B, with a different number of
2792 arguments.
2793
2794 2011-05-11 Reinhard Max <[email protected]>
2795
2796 * unix/tclUnixSock.c (TcpWatchProc): No need to check for server
2797 sockets here, as the generic server code already takes care of that.
2798 * tests/socket.test (accept): Add tests to make sure that this remains
2799 so.
2800
2801 2011-05-10 Don Porter <[email protected]>
2802
2803 * generic/tclInt.h: New internal routines TclScanElement() and
2804 * generic/tclUtil.c: TclConvertElement() are rewritten guts of
2805 machinery to produce string rep of lists. The new routines avoid and
2806 correct [Bug 3173086]. See comments for much more detail.
2807
2808 * generic/tclDictObj.c: Update all callers.
2809 * generic/tclIndexObj.c:
2810 * generic/tclListObj.c:
2811 * generic/tclUtil.c:
2812 * tests/list.test:
2813
2814 2011-05-09 Donal K. Fellows <[email protected]>
2815
2816 * generic/tclNamesp.c (NamespacePathCmd): Convert to use Tcl_Obj API
2817 * generic/tclPkg.c (Tcl_PackageObjCmd): for result generation in
2818 * generic/tclTimer.c (Tcl_AfterObjCmd): [after info], [namespace
2819 path] and [package versions].
2820
2821 2011-05-09 Don Porter <[email protected]>
2822
2823 * generic/tclListObj.c: Revise empty string tests so that we avoid
2824 potentially expensive string rep generations, especially for dicts.
2825
2826 2011-05-07 Donal K. Fellows <[email protected]>
2827
2828 * generic/tclLoad.c (TclGetLoadedPackages): Convert to use Tcl_Obj API
2829 for result generation.
2830
2831 2011-05-07 Miguel Sofer <[email protected]>
2832
2833 * generic/tclInt.h: Fix USE_TCLALLOC so that it can be enabled without
2834 * unix/Makefile.in: editing the Makefile.
2835
2836 2011-05-05 Don Porter <[email protected]>
2837
2838 * generic/tclListObj.c: Stop generating string rep of dict when
2839 converting to list. Tolerate NULL interps more completely.
2840
2841 2011-05-03 Don Porter <[email protected]>
2842
2843 * generic/tclUtil.c: Tighten Tcl_SplitList().
2844 * generic/tclListObj.c: Tighten SetListFromAny().
2845 * generic/tclDictObj.c: Tighten SetDictFromAny().
2846 * tests/join.test:
2847 * tests/mathop.test:
2848
2849 2011-05-02 Don Porter <[email protected]>
2850
2851 * generic/tclCmdMZ.c: Revised TclFindElement() interface. The final
2852 * generic/tclDictObj.c: argument had been bracePtr, the address of a
2853 * generic/tclListObj.c: boolean var, where the caller can be told
2854 * generic/tclParse.c: whether or not the parsed list element was
2855 * generic/tclUtil.c: enclosed in braces. In practice, no callers
2856 really care about that. What the callers really want to know is
2857 whether the list element value exists as a literal substring of the
2858 string being parsed, or whether a call to TclCopyAndCollpase() is
2859 needed to produce the list element value. Now the final argument is
2860 changed to do what callers actually need. This is a better fit for the
2861 calls in tclParse.c, where now a good deal of post-processing checking
2862 for "naked backslashes" is no longer necessary.
2863 ***POTENTIAL INCOMPATIBILITY***
2864 For any callers calling in via the internal stubs table who really do
2865 use the final argument explicitly to check for the enclosing brace
2866 scenario. Simply looking for the braces where they must be is the
2867 revision available to those callers, and it will backport cleanly.
2868
2869 * tests/parse.test: Tests for expanded literals quoting detection.
2870
2871 * generic/tclCompCmdsSZ.c: New TclFindElement() is also a better
2872 fit for the [switch] compiler.
2873
2874 * generic/tclInt.h: Replace TclCountSpaceRuns() with
2875 * generic/tclListObj.c: TclMaxListLength() which is the function we
2876 * generic/tclUtil.c: actually want.
2877 * generic/tclCompCmdsSZ.c:
2878
2879 * generic/tclCompCmdsSZ.c: Rewrite of parts of the switch compiler to
2880 better use the powers of TclFindElement() and do less parsing on its
2881 own.
2882
2883 2011-04-28 Don Porter <[email protected]>
2884
2885 * generic/tclInt.h: New utility routines:
2886 * generic/tclParse.c: TclIsSpaceProc() and TclCountSpaceRuns()
2887 * generic/tclUtil.c:
2888
2889 * generic/tclCmdMZ.c: Use new routines to replace calls to isspace()
2890 * generic/tclListObj.c: and their /* INTL */ risk.
2891 * generic/tclStrToD.c:
2892 * generic/tclUtf.c:
2893 * unix/tclUnixFile.c:
2894
2895 * generic/tclStringObj.c: Improved reaction to out of memory.
2896
2897 2011-04-27 Don Porter <[email protected]>
2898
2899 * generic/tclCmdMZ.c: TclFreeIntRep() correction & cleanup.
2900 * generic/tclExecute.c:
2901 * generic/tclIndexObj.c:
2902 * generic/tclInt.h:
2903 * generic/tclListObj.c:
2904 * generic/tclNamesp.c:
2905 * generic/tclResult.c:
2906 * generic/tclStringObj.c:
2907 * generic/tclVar.c:
2908
2909 * generic/tclListObj.c: FreeListInternalRep() cleanup.
2910
2911 2011-04-21 Don Porter <[email protected]>
2912
2913 * generic/tclInt.h: Use macro to set List intreps.
2914 * generic/tclListObj.c:
2915
2916 * generic/tclCmdIL.c: Limits on list length were too strict.
2917 * generic/tclInt.h: Revised panics to errors where possible.
2918 * generic/tclListObj.c:
2919 * tests/lrepeat.test:
2920
2921 * generic/tclCompile.c: Make sure SetFooFromAny routines react
2922 * generic/tclIO.c: reasonably when passed a NULL interp.
2923 * generic/tclIndexObj.c:
2924 * generic/tclListObj.c:
2925 * generic/tclNamesp.c:
2926 * generic/tclObj.c:
2927 * generic/tclProc.c:
2928 * macosx/tclMacOSXFCmd.c:
2929
2930 2011-04-21 Jan Nijtmans <[email protected]>
2931
2932 * generic/tcl.h: fix for [Bug 3288345]: Wrong Tcl_StatBuf
2933 * generic/tclInt.h: used on MinGW. Make sure that all _WIN32
2934 * win/tclWinFile.c: compilers use exactly the same layout
2935 * win/configure.in: for Tcl_StatBuf - the one used by MSVC6 -
2936 * win/configure: in all situations.
2937
2938 2011-04-19 Don Porter <[email protected]>
2939
2940 * generic/tclConfig.c: Reduce internals access in the implementation
2941 of [<foo>::pkgconfig list].
2942
2943 2011-04-18 Don Porter <[email protected]>
2944
2945 * generic/tclCmdIL.c: Use ListRepPtr(.) and other cleanup.
2946 * generic/tclConfig.c:
2947 * generic/tclListObj.c:
2948
2949 * generic/tclInt.h: Define and use macros that test whether a Tcl
2950 * generic/tclBasic.c: list value is canonical.
2951 * generic/tclUtil.c:
2952
2953 2011-04-18 Donal K. Fellows <[email protected]>
2954
2955 * doc/dict.n: [Bug 3288696]: Command summary was confusingly wrong
2956 when it came to [dict filter] with a 'value' filter.
2957
2958 2011-04-16 Donal K. Fellows <[email protected]>
2959
2960 * generic/tclFCmd.c (TclFileAttrsCmd): Add comments to make this code
2961 easier to understand. Added a panic to handle the case where the VFS
2962 layer does something odd.
2963
2964 2011-04-13 Don Porter <[email protected]>
2965
2966 * generic/tclUtil.c: [Bug 3285375]: Rewrite of Tcl_Concat*()
2967 routines to prevent segfaults on buffer overflow. Build them out of
2968 existing primitives already coded to handle overflow properly. Uses
2969 the new TclTrim*() routines.
2970
2971 * generic/tclCmdMZ.c: New internal utility routines TclTrimLeft()
2972 * generic/tclInt.h: and TclTrimRight(). Refactor the
2973 * generic/tclUtil.c: [string trim*] implementations to use them.
2974
2975 2011-04-13 Miguel Sofer <[email protected]>
2976
2977 * generic/tclVar.c: [Bug 2662380]: Fix crash caused by appending to a
2978 variable with a write trace that unsets it.
2979
2980 2011-04-13 Donal K. Fellows <[email protected]>
2981
2982 * generic/tclUtil.c (Tcl_ConcatObj): [Bug 3285375]: Make the crash
2983 less mysterious through the judicious use of a panic. Not yet properly
2984 fixed, but at least now clearer what the failure mode is.
2985
2986 2011-04-12 Don Porter <[email protected]>
2987
2988 * tests/string.test: Test for [Bug 3285472]. Not buggy in trunk.
2989
2990 2011-04-12 Venkat Iyer <[email protected]>
2991
2992 * library/tzdata/Atlantic/Stanley: Update to Olson tzdata2011f
2993
2994 2011-04-12 Miguel Sofer <[email protected]>
2995
2996 * generic/tclBasic.c: Fix for [Bug 2440625], kbk's patch
2997
2998 2011-04-11 Miguel Sofer <[email protected]>
2999
3000 * generic/tclBasic.c:
3001 * tests/coroutine.test: [Bug 3282869]: Ensure that 'coroutine eval'
3002 runs the initial command in the proper context.
3003
3004 2011-04-11 Jan Nijtmans <[email protected]>
3005
3006 * generic/tcl.h: Fix for [Bug 3281728]: Tcl sources from 2011-04-06
3007 * unix/tcl.m4: do not build on GCC9 (RH9)
3008 * unix/configure:
3009
3010 2011-04-08 Jan Nijtmans <[email protected]>
3011
3012 * win/tclWinPort.h: Fix for [Bug 3280043]: win2k: unresolved DLL
3013 * win/configure.in: imports.
3014 * win/configure
3015
3016 2011-04-06 Miguel Sofer <[email protected]>
3017
3018 * generic/tclExecute.c (TclCompileObj): Earlier return if Tip280
3019 gymnastics not needed.
3020
3021 * generic/tclExecute.c: Fix for [Bug 3274728]: making *catchTop an
3022 unsigned long.
3023
3024 2011-04-06 Jan Nijtmans <[email protected]>
3025
3026 * unix/tclAppInit.c: Make symbols "main" and "Tcl_AppInit"
3027 MODULE_SCOPE: there is absolutely no reason for exporting them.
3028 * unix/tcl.m4: Don't use -fvisibility=hidden with static
3029 * unix/configure libraries (--disable-shared)
3030
3031 2011-04-06 Donal K. Fellows <[email protected]>
3032
3033 * generic/tclFCmd.c, macosx/tclMacOSXFCmd.c, unix/tclUnixChan.c,
3034 * unix/tclUnixFCmd.c, win/tclWinChan.c, win/tclWinDde.c,
3035 * win/tclWinFCmd.c, win/tclWinLoad.c, win/tclWinPipe.c,
3036 * win/tclWinReg.c, win/tclWinSerial.c, win/tclWinSock.c: More
3037 generation of error codes (most platform-specific parts not already
3038 using Tcl_PosixError).
3039
3040 2011-04-05 Venkat Iyer <[email protected]>
3041
3042 * library/tzdata/Africa/Casablanca: Update to Olson's tzdata2011e
3043 * library/tzdata/America/Santiago:
3044 * library/tzdata/Pacific/Easter:
3045 * library/tzdata/America/Metlakatla: (new)
3046 * library/tzdata/America/North_Dakota/Beulah: (new)
3047 * library/tzdata/America/Sitka: (new)
3048
3049 2011-04-04 Donal K. Fellows <[email protected]>
3050
3051 * generic/tclOO.c, generic/tclOOBasic.c, generic/tclOODefineCmds.c
3052 * generic/tclOOInfo.c, generic/tclOOMethod.c: More generation of
3053 error codes (TclOO miscellany).
3054
3055 * generic/tclCmdAH.c, generic/tclCmdIL.c: More generation of error
3056 codes (miscellaneous commands mostly already handled).
3057
3058 2011-04-04 Don Porter <[email protected]>
3059
3060 * README: [Bug 3202030]: Updated README files, repairing broken
3061 * macosx/README:URLs and removing other bits that were clearly wrong.
3062 * unix/README: Still could use more eyeballs on the detailed build
3063 * win/README: advice on various plaforms.
3064
3065 2011-04-04 Donal K. Fellows <[email protected]>
3066
3067 * library/init.tcl (tcl::mathfunc::rmmadwiw): Disable by default to
3068 make test suite work.
3069
3070 * generic/tclBasic.c, generic/tclStringObj.c, generic/tclTimer.c,
3071 * generic/tclTrace.c, generic/tclUtil.c: More generation of error
3072 codes ([format], [after], [trace], RE optimizer).
3073
3074 2011-04-04 Jan Nijtmans <[email protected]>
3075
3076 * generic/tclCmdAH.c: Better error-message in case of errors
3077 * generic/tclCmdIL.c: related to setting a variable. This fixes
3078 * generic/tclDictObj.c: a warning: "Why make your own error
3079 * generic/tclScan.c: message? Why?"
3080 * generic/tclTest.c:
3081 * test/error.test:
3082 * test/info.test:
3083 * test/scan.test:
3084 * unix/tclUnixThrd.h: Remove this unused header file.
3085
3086 2011-04-03 Donal K. Fellows <[email protected]>
3087
3088 * generic/tclNamesp.c, generic/tclObj.c, generic/tclPathObj.c:
3089 * generic/tclPipe.c, generic/tclPkg.c, generic/tclProc.c:
3090 * generic/tclScan.c: More generation of error codes (namespace
3091 creation, path normalization, pipeline creation, package handling,
3092 procedures, [scan] formats)
3093
3094 2011-04-02 Kevin B. Kenny <[email protected]>
3095
3096 * generic/tclStrToD.c (QuickConversion): Replaced another couple
3097 of 'double' declarations with 'volatile double' to work around
3098 misrounding issues in mingw-gcc 3.4.5.
3099
3100 2011-04-02 Donal K. Fellows <[email protected]>
3101
3102 * generic/tclInterp.c, generic/tclListObj.c, generic/tclLoad.c:
3103 More generation of errorCodes ([interp], [lset], [load], [unload]).
3104
3105 * generic/tclEvent.c, generic/tclFileName.c: More generation of
3106 errorCode information (default [bgerror] and [glob]).
3107
3108 2011-04-01 Reinhard Max <[email protected]>
3109
3110 * library/init.tcl: TIP#131 implementation.
3111
3112 2011-03-31 Donal K. Fellows <[email protected]>
3113
3114 * generic/tclGetDate.y, generic/tclDate.c (TclClockOldscanObjCmd):
3115 More generation of errorCode information.
3116
3117 2011-03-28 Donal K. Fellows <[email protected]>
3118
3119 * generic/tclCmdMZ.c, generic/tclConfig.c, generic/tclUtil.c: More
3120 generation of errorCode information, notably when lists are mis-parsed
3121
3122 * generic/tclCmdMZ.c (Tcl_RegexpObjCmd, Tcl_RegsubObjCmd): Use the
3123 error messages generated by the variable management code rather than
3124 creating our own.
3125
3126 2011-03-27 Miguel Sofer <[email protected]>
3127
3128 * generic/tclBasic.c (TclNREvalObjEx): fix performance issue, notably
3129 apparent in tclbench's "LIST lset foreach". Many thanks to Twylite for
3130 patiently researching the issue and explaining it to me: a missing
3131 Tcl_ResetObjResult that causes unwanted sharing of the current result
3132 Tcl_Obj.
3133
3134 2011-03-26 Donal K. Fellows <[email protected]>
3135
3136 * generic/tclNamesp.c (Tcl_Export, Tcl_Import, DoImport): More
3137 generation of errorCode information.
3138
3139 * generic/tclCompExpr.c, generic/tclCompile.c, generic/tclExecute.c:
3140 * generic/tclListObj.c, generic/tclNamesp.c, generic/tclObj.c:
3141 * generic/tclStringObj.c, generic/tclUtil.c: Reduce the number of
3142 casts used to manage Tcl_Obj internal representations.
3143
3144 2011-03-24 Don Porter <[email protected]>
3145
3146 * generic/tcl.h (ckfree,etc.): Restored C++ usability to the memory
3147 allocation and free macros.
3148
3149 2011-03-24 Donal K. Fellows <[email protected]>
3150
3151 * generic/tclFCmd.c (TclFileAttrsCmd): Ensure that any reference to
3152 temporary index tables is squelched immediately rather than hanging
3153 around to trip us up in the future.
3154
3155 2011-03-23 Miguel Sofer <[email protected]>
3156
3157 * generic/tclObj.c: Exploit HAVE_FAST_TSD for the deletion context in
3158 TclFreeObj()
3159
3160 2011-03-22 Miguel Sofer <[email protected]>
3161
3162 * generic/tclThreadAlloc.c: Simpler initialization of Cache under
3163 HAVE_FAST_TSD, from mig-alloc-reform.
3164
3165 2011-03-21 Jan Nijtmans <[email protected]>
3166
3167 * unix/tclLoadDl.c: [Bug 3216070]: Loading extension libraries
3168 * unix/tclLoadDyld.c: from embedded Tcl applications.
3169 ***POTENTIAL INCOMPATIBILITY***
3170 For extensions which rely on symbols from other extensions being
3171 present in the global symbol table. For an example and some discussion
3172 of workarounds, see http://stackoverflow.com/q/8330614/301832
3173
3174 2011-03-21 Miguel Sofer <[email protected]>
3175
3176 * generic/tclCkAlloc.c:
3177 * generic/tclInt.h: Remove one level of allocator indirection in
3178 non-memdebug builds, imported from mig-alloc-reform.
3179
3180 2011-03-20 Miguel Sofer <[email protected]>
3181
3182 * generic/tclThreadAlloc.c: Imported HAVE_FAST_TSD support from
3183 mig-alloc-reform. The feature has to be enabled by hand: no autoconf
3184 support has been added. It is not clear how universal a build using
3185 this will be: it also requires some loader support.
3186
3187 2011-03-17 Donal K. Fellows <[email protected]>
3188
3189 * generic/tclCompExpr.c (ParseExpr): Generate errorCode information on
3190 failure to parse expressions.
3191
3192 2011-03-17 Jan Nijtmans <[email protected]>
3193
3194 * generic/tclMain.c: [Patch 3124683]: Reorganize the platform-specific
3195 stuff in (tcl|tk)Main.c.
3196
3197 2011-03-16 Jan Nijtmans <[email protected]>
3198
3199 * generic/tclCkalloc.c: [Bug 3197864]: Pointer truncation on Win64
3200 TCL_MEM_DEBUG builds.
3201
3202 2011-03-16 Don Porter <[email protected]>
3203
3204 * generic/tclBasic.c: Some rewrites to eliminate calls to isspace()
3205 * generic/tclParse.c: and their /* INTL */ risk.
3206 * generic/tclProc.c:
3207
3208 2011-03-16 Jan Nijtmans <[email protected]>
3209
3210 * unix/tcl.m4: Make SHLIB_LD_LIBS='${LIBS}' the default and
3211 * unix/configure: set to "" on per-platform necessary basis.
3212 Backported from TEA, but kept all original platform code which was
3213 removed from TEA.
3214
3215 2011-03-14 Kevin B. Kenny <[email protected]>
3216
3217 * tools/tclZIC.tcl (onDayOfMonth): Allow for leading zeroes in month
3218 and day so that tzdata2011d parses correctly.
3219 * library/tzdata/America/Havana:
3220 * library/tzdata/America/Juneau:
3221 * library/tzdata/America/Santiago:
3222 * library/tzdata/Europe/Istanbul:
3223 * library/tzdata/Pacific/Apia:
3224 * library/tzdata/Pacific/Easter:
3225 * library/tzdata/Pacific/Honolulu: tzdata2011d
3226
3227 * generic/tclAssembly.c (BBEmitInstInt1): Changed parameter data types
3228 in an effort to silence a MSVC warning reported by Ashok P. Nadkarni.
3229 Unable to test, since both forms work on my machine in VC2005, 2008,
3230 2010, in both release and debug builds.
3231 * tests/tclTest.c (TestdstringCmd): Restored MSVC buildability broken
3232 by [5574bdd262], which changed the effective return type of 'ckalloc'
3233 from 'char*' to 'void*'.
3234
3235 2011-03-13 Miguel Sofer <[email protected]>
3236
3237 * generic/tclExecute.c: remove TEBCreturn()
3238
3239 2011-03-12 Donal K. Fellows <[email protected]>
3240
3241 * generic/tcl.h (ckalloc,ckfree,ckrealloc): Moved casts into these
3242 macro so that they work with VOID* (which is a void* on all platforms
3243 which Tcl actually builds on) and unsigned int for the length
3244 parameters, removing the need for MANY casts across the rest of Tcl.
3245 Note that this is a strict source-level-only change, so size_t cannot
3246 be used (would break binary compatibility on 64-bit platforms).
3247
3248 2011-03-12 Jan Nijtmans <[email protected]>
3249
3250 * win/tclWinFile.c: [Bug 3185609]: File normalization corner case
3251 of ... broken with -DUNICODE
3252
3253 2011-03-11 Donal K. Fellows <[email protected]>
3254
3255 * tests/unixInit.test: Make better use of tcltest2.
3256
3257 2011-03-10 Donal K. Fellows <[email protected]>
3258
3259 * generic/tclBasic.c, generic/tclCompCmds.c, generic/tclEnsemble.c:
3260 * generic/tclInt.h, generic/tclNamesp.c, library/auto.tcl:
3261 * tests/interp.test, tests/namespace.test, tests/nre.test:
3262 Converted the [namespace] command into an ensemble. This has the
3263 consequence of making it vital for Tcl code that wishes to work with
3264 namespaces to _not_ delete the ::tcl namespace.
3265 ***POTENTIAL INCOMPATIBILITY***
3266
3267 * library/tcltest/tcltest.tcl (loadIntoSlaveInterpreter): Added this
3268 command to handle connecting tcltest to a slave interpreter. This adds
3269 in the hook (inside the tcltest namespace) that allows the tests run
3270 in the child interpreter to be reported as part of the main sequence
3271 of test results. Bumped version of tcltest to 2.3.3.
3272 * tests/init.test, tests/package.test: Adapted these test files to use
3273 the new feature.
3274
3275 * generic/tclAlloc.c, generic/tclCmdMZ.c, generic/tclCompExpr.c:
3276 * generic/tclCompile.c, generic/tclEnv.c, generic/tclEvent.c:
3277 * generic/tclIO.c, generic/tclIOCmd.c, generic/tclIORChan.c:
3278 * generic/tclIORTrans.c, generic/tclLiteral.c, generic/tclNotify.c:
3279 * generic/tclParse.c, generic/tclStringObj.c, generic/tclUtil.c:
3280 * generic/tclZlib.c, unix/tclUnixFCmd.c, unix/tclUnixNotfy.c:
3281 * unix/tclUnixPort.h, unix/tclXtNotify.c: Formatting fixes, mainly to
3282 comments, so code better fits the style in the Engineering Manual.
3283
3284 2011-03-09 Donal K. Fellows <[email protected]>
3285
3286 * tests/incr.test: Update more of the test suite to use Tcltest 2.
3287
3288 2011-03-09 Don Porter <[email protected]>
3289
3290 * generic/tclNamesp.c: [Bug 3202171]: Tighten the detector of nested
3291 * tests/namespace.test: [namespace code] quoting that the quoted
3292 scripts function properly even in a namespace that contains a custom
3293 "namespace" command.
3294
3295 * doc/tclvars.n: Formatting fix. Thanks to Pat Thotys.
3296
3297 2011-03-09 Donal K. Fellows <[email protected]>
3298
3299 * tests/dstring.test, tests/init.test, tests/link.test: Update more of
3300 the test suite to use Tcltest 2.
3301
3302 2011-03-08 Jan Nijtmans <[email protected]>
3303
3304 * generic/tclBasic.c: Fix gcc warnings: variable set but not used
3305 * generic/tclProc.c:
3306 * generic/tclIORChan.c:
3307 * generic/tclIORTrans.c:
3308 * generic/tclAssembly.c: Fix gcc warning: comparison between signed
3309 and unsigned integer expressions
3310
3311 2011-03-08 Don Porter <[email protected]>
3312
3313 * generic/tclInt.h: Remove TclMarkList() routine, an experimental
3314 * generic/tclUtil.c: dead-end from the 8.5 alpha days.
3315
3316 * generic/tclResult.c (ResetObjResult): [Bug 3202905]: Correct failure
3317 to clear invalid intrep. Thanks to Colin McDonald.
3318
3319 2011-03-08 Donal K. Fellows <[email protected]>
3320
3321 * generic/tclAssembly.c, tests/assemble.test: Migrate to use a style
3322 more consistent with the rest of Tcl.
3323
3324 2011-03-06 Don Porter <[email protected]>
3325
3326 * generic/tclBasic.c: More replacements of Tcl_UtfBackslash() calls
3327 * generic/tclCompile.c: with TclParseBackslash() where possible.
3328 * generic/tclCompCmdsSZ.c:
3329 * generic/tclParse.c:
3330 * generic/tclUtil.c:
3331
3332 * generic/tclUtil.c (TclFindElement): [Bug 3192636]: Guard escape
3333 sequence scans to not overrun the string end.
3334
3335 2011-03-05 Don Porter <[email protected]>
3336
3337 * generic/tclParse.c (TclParseBackslash): [Bug 3200987]: Correct
3338 * tests/parse.test: trunction checks in \x and \u substitutions.
3339
3340 2011-03-05 Miguel Sofer <[email protected]>
3341
3342 * generic/tclExecute.c (TclStackFree): insure that the execStack
3343 satisfies "at most one free stack after the current one" when
3344 consecutive reallocs caused the creation of intervening stacks.
3345
3346 2011-03-05 Kevin B. Kenny <[email protected]>
3347
3348 * generic/tclAssembly.c (new file):
3349 * generic/tclBasic.c (Tcl_CreateInterp):
3350 * generic/tclInt.h:
3351 * tests/assemble.test (new file):
3352 * unix/Makefile.in:
3353 * win/Makefile.in:
3354 * win/makefile.vc: Merged dogeen-assembler-branch into HEAD. Since
3355 all functional changes are in the tcl::unsupported namespace, there's
3356 no reason to sequester this code on a separate branch.
3357
3358 2011-03-05 Miguel Sofer <[email protected]>
3359
3360 * generic/tclExecute.c: Cleaner mem management for TEBCdata
3361
3362 * generic/tclExecute.c:
3363 * tests/nre.test: Renamed BottomData to TEBCdata, so that the name
3364 refers to what it is rather than to its storage location.
3365
3366 * generic/tclBasic.c: Renamed struct TEOV_callback to the more
3367 * generic/tclCompExpr.c: descriptive NRE_callback.
3368 * generic/tclCompile.c:
3369 * generic/tclExecute.c:
3370 * generic/tclInt.decls:
3371 * generic/tclInt.h:
3372 * generic/tclIntDecls.h:
3373 * generic/tclTest.c:
3374
3375 2011-03-04 Donal K. Fellows <[email protected]>
3376
3377 * generic/tclOOMethod.c (ProcedureMethodCompiledVarConnect)
3378 (ProcedureMethodCompiledVarDelete): [Bug 3185009]: Keep references to
3379 resolved object variables so that an unset doesn't leave any dangling
3380 pointers for code to trip over.
3381
3382 2011-03-01 Miguel Sofer <[email protected]>
3383
3384 * generic/tclBasic.c (TclNREvalObjv): Missing a variable declaration
3385 in commented out non-optimised code, left for ref in checkin
3386 [b97b771b6d]
3387
3388 2011-03-03 Don Porter <[email protected]>
3389
3390 * generic/tclResult.c (Tcl_AppendResultVA): Use the directive
3391 USE_INTERP_RESULT [TIP 330] to force compat with interp->result
3392 access, instead of the improvised hack USE_DIRECT_INTERP_RESULT_ACCESS
3393 from releases past.
3394
3395 2011-03-01 Miguel Sofer <[email protected]>
3396
3397 * generic/tclCompCmdsSZ.c (TclCompileThrowCmd, TclCompileUnsetCmd):
3398 fix leaks
3399
3400 * generic/tclBasic.c: This is [Patch 3168398],
3401 * generic/tclCompCmdsSZ.c: Joe Mistachkin's optimisation
3402 * generic/tclExecute.c: of Tip #285
3403 * generic/tclInt.decls:
3404 * generic/tclInt.h:
3405 * generic/tclIntDecls.h:
3406 * generic/tclInterp.c:
3407 * generic/tclOODecls.h:
3408 * generic/tclStubInit.c:
3409 * win/makefile.vc:
3410
3411 * generic/tclExecute.c (ExprObjCallback): Fix object leak
3412
3413 * generic/tclExecute.c (TEBCresume): Store local var array and
3414 constants in automatic vars to reduce indirection, slight perf
3415 increase
3416
3417 * generic/tclOOCall.c (TclOODeleteContext): Added missing '*' so that
3418 trunk compiles.
3419
3420 * generic/tclBasic.c (TclNRRunCallbacks): [Patch 3168229]: Don't do
3421 the trampoline dance for commands that do not have an nreProc.
3422
3423 2011-03-01 Donal K. Fellows <[email protected]>
3424
3425 * generic/tclOO.c (Tcl_NewObjectInstance, TclNRNewObjectInstance)
3426 (TclOOObjectCmdCore, FinalizeObjectCall):
3427 * generic/tclOOBasic.c (TclOO_Object_Destroy, AfterNRDestructor):
3428 * generic/tclOOCall.c (TclOODeleteContext, TclOOGetCallContext):
3429 Reorganization of call context reference count management so that code
3430 is (mostly) simpler.
3431
3432 2011-01-26 Donal K. Fellows <[email protected]>
3433
3434 * doc/RegExp.3: [Bug 3165108]: Corrected documentation of description
3435 of subexpression info in Tcl_RegExpInfo structure.
3436
3437 2011-01-25 Jan Nijtmans <[email protected]>
3438
3439 * generic/tclPreserve.c: Don't miss 64-bit address bits in panic
3440 message.
3441 * win/tclWinChan.c: Fix various gcc-4.5.2 64-bit warning
3442 * win/tclWinConsole.c: messages, e.g. by using full 64-bits for
3443 * win/tclWinDde.c: socket fd's
3444 * win/tclWinPipe.c:
3445 * win/tclWinReg.c:
3446 * win/tclWinSerial.c:
3447 * win/tclWinSock.c:
3448 * win/tclWinThrd.c:
3449
3450 2011-01-19 Jan Nijtmans <[email protected]>
3451
3452 * tools/genStubs.tcl: [FRQ 3159920]: Tcl_ObjPrintf() crashes with
3453 * generic/tcl.decls bad format specifier.
3454 * generic/tcl.h:
3455 * generic/tclDecls.h:
3456
3457 2011-01-18 Donal K. Fellows <[email protected]>
3458
3459 * generic/tclOOMethod.c (PushMethodCallFrame): [Bug 3001438]: Make
3460 sure that the cmdPtr field of the procPtr is correct and relevant at
3461 all times so that [info frame] can report sensible information about a
3462 frame after a return to it from a recursive call, instead of probably
3463 crashing (depending on what else has overwritten the Tcl stack!)
3464
3465 2011-01-18 Jan Nijtmans <[email protected]>
3466
3467 * generic/tclBasic.c: Various mismatches between Tcl_Panic
3468 * generic/tclCompCmds.c: format string and its arguments,
3469 * generic/tclCompCmdsSZ.c: discovered thanks to [Bug 3159920]
3470 * generic/tclCompExpr.c:
3471 * generic/tclEnsemble.c:
3472 * generic/tclPreserve.c:
3473 * generic/tclTest.c:
3474
3475 2011-01-17 Jan Nijtmans <[email protected]>
3476
3477 * generic/tclIOCmd.c: [Bug 3148192]: Commands "read/puts" incorrectly
3478 * tests/chanio.test: interpret parameters. Improved error-message
3479 * tests/io.test regarding legacy form.
3480 * tests/ioCmd.test
3481
3482 2011-01-15 Kevin B. Kenny <[email protected]>
3483
3484 * doc/tclvars.n:
3485 * generic/tclStrToD.c:
3486 * generic/tclUtil.c (Tcl_PrintDouble):
3487 * tests/util.test (util-16.*): [Bug 3157475]: Restored full Tcl 8.4
3488 compatibility for the formatting of floating point numbers when
3489 $::tcl_precision is not zero. Added compatibility tests to make sure
3490 that excess trailing zeroes are suppressed for all eight major code
3491 paths.
3492
3493 2011-01-12 Jan Nijtmans <[email protected]>
3494
3495 * win/tclWinFile.c: Use _vsnprintf in stead of vsnprintf, because
3496 MSVC 6 doesn't have it. Reported by andreask.
3497 * win/tcl.m4: handle --enable-64bit=ia64 for gcc
3498 * win/configure.in: more accurate test for correct <intrin.h>
3499 * win/configure: (autoconf-2.59)
3500 * win/tclWin32Dll.c: VS 2005 64-bit does not have intrin.h, and
3501 * generic/tclPanic.c: does not need it.
3502
3503 2011-01-07 Kevin B. Kenny <[email protected]>
3504
3505 * tests/util.test (util-15.*): Added test cases for floating point
3506 conversion of the largest denormal and the smallest normal number, to
3507 avoid any possibility of the failure suffered by PHP in the last
3508 couple of days. (They didn't fail, so no actual functional change.)
3509
3510 2011-01-05 Donal K. Fellows <[email protected]>
3511
3512 * tests/package.test, tests/pkg.test: Coalesce these tests into one
3513 file that is concerned with the package system. Convert to use
3514 tcltest2 properly.
3515 * tests/autoMkindex.test, tests/pkgMkIndex.test: Convert to use
3516 tcltest2 properly.
3517
3518 2011-01-01 Donal K. Fellows <[email protected]>
3519
3520 * tests/cmdAH.test, tests/cmdMZ.test, tests/compExpr.test,
3521 * tests/compile.test, tests/concat.test, tests/eval.test,
3522 * tests/fileName.test, tests/fileSystem.test, tests/interp.test,
3523 * tests/lsearch.test, tests/namespace-old.test, tests/namespace.test,
3524 * tests/oo.test, tests/proc.test, tests/security.test,
3525 * tests/switch.test, tests/unixInit.test, tests/var.test,
3526 * tests/winDde.test, tests/winPipe.test: Clean up of tests and
3527 conversion to tcltest 2. Target has been to get init and cleanup code
3528 out of the test body and into the -setup/-cleanup stanzas.
3529
3530 * tests/execute.test (execute-11.1): [Bug 3142026]: Added test that
3531 fails (with a crash) in an unfixed memdebug build on 64-bit systems.
3532
3533 2010-12-31 Donal K. Fellows <[email protected]>
3534
3535 * generic/tclCmdIL.c (SortElement): Use unions properly in the
3536 definition of this structure so that there is no need to use nasty
3537 int/pointer type punning. Made it clearer what the purposes of the
3538 various parts of the structure are.
3539
3540 2010-12-31 Jan Nijtmans <[email protected]>
3541
3542 * unix/dltest/*.c: [Bug 3148192]: Fix broken [load] tests by ensuring
3543 that the affected files are never compiled with -DSTATIC_BUILD.
3544
3545 2010-12-30 Miguel Sofer <[email protected]>
3546
3547 * generic/tclExecute.c (GrowEvaluationStack): Off-by-one error in
3548 sizing the new allocation - was ok in comment but wrong in the code.
3549 Triggered by [Bug 3142026] which happened to require exactly one more
3550 than what was in existence.
3551
3552 2010-12-26 Donal K. Fellows <[email protected]>
3553
3554 * generic/tclCmdIL.c (Tcl_LsortObjCmd): Fix crash when multiple -index
3555 options are used. Simplified memory handling logic.
3556
3557 2010-12-20 Jan Nijtmans <[email protected]>
3558
3559 * win/tclWin32Dll.c: [Patch 3059922]: fixes for mingw64 - gcc4.5.1
3560 tdm64-1: completed for all environments.
3561
3562 2010-12-20 Jan Nijtmans <[email protected]>
3563
3564 * win/configure.in: Explicitely test for intrinsics support in
3565 compiler, before assuming only MSVC has it.
3566 * win/configure: (autoconf-2.59)
3567 * generic/tclPanic.c:
3568
3569 2010-12-19 Jan Nijtmans <[email protected]>
3570
3571 * win/tclWin32Dll.c: [Patch 3059922]: fixes for mingw64 - gcc4.5.1
3572 tdm64-1: Fixed for gcc, not yet for MSVC 64-bit.
3573
3574 2010-12-17 Stuart Cassoff <[email protected]>
3575
3576 * unix/Makefile.in: Remove unwanted/obsolete 'ddd' target.
3577
3578 2010-12-17 Stuart Cassoff <[email protected]>
3579
3580 * unix/Makefile.in: Clean up '.PHONY:' targets: Arrange those
3581 common to Tcl and Tk as in Tk's Makefile.in,
3582 add any missing ones and remove duplicates.
3583
3584 2010-12-17 Stuart Cassoff <[email protected]>
3585
3586 * unix/Makefile.in: [Bug 2446711]: Remove 'allpatch' target.
3587
3588 2010-12-17 Stuart Cassoff <[email protected]>
3589
3590 * unix/Makefile.in: [Bug 2537626]: Use 'rpmbuild', not 'rpm'.
3591
3592 2010-12-16 Jan Nijtmans <[email protected]>
3593
3594 * generic/tclPanic.c: [Patch 3124554]: Move WishPanic from Tk to Tcl
3595 * win/tclWinFile.c: Better communication with debugger, if present.
3596
3597 2010-12-15 Kevin B. Kenny <[email protected]>
3598
3599 [dogeen-assembler-branch]
3600
3601 * tclAssembly.c:
3602 * assemble.test: Reworked beginCatch/endCatch handling to
3603 enforce the more severe (but more correct) restrictions on catch
3604 handling that appeared in the discussion of [Bug 3098302] and in
3605 tcl-core traffic beginning about 2010-10-29.
3606
3607 2010-12-15 Jan Nijtmans <[email protected]>
3608
3609 * generic/tclPanic.c: Restore abort() as it was before.
3610 * win/tclWinFile.c: [Patch 3124554]: Use ExitProcess() here, like
3611 in wish.
3612
3613 2010-12-14 Jan Nijtmans <[email protected]>
3614
3615 * generic/tcl.h: [Bug 3137454]: Tcl CVS HEAD does not build on GCC 3.
3616
3617 2010-12-14 Reinhard Max <[email protected]>
3618
3619 * win/tclWinSock.c (CreateSocket): Swap the loops over
3620 * unix/tclUnixSock.c (CreateClientSocket): local and remote addresses,
3621 so that the system's address preference for the remote side decides
3622 which family gets tried first. Cleanup and clarify some of the
3623 comments.
3624
3625 2010-12-13 Jan Nijtmans <[email protected]>
3626
3627 * generic/tcl.h: [Bug 3135271]: Link error due to hidden
3628 * unix/tcl.m4: symbols (CentOS 4.2)
3629 * unix/configure: (autoconf-2.59)
3630 * win/tclWinFile.c: Undocumented feature, only meant to be used by
3631 Tk_Main. See [Patch 3124554]: Move WishPanic from Tk to Tcl
3632
3633 2010-12-12 Stuart Cassoff <[email protected]>
3634
3635 * unix/tcl.m4: Better building on OpenBSD.
3636 * unix/configure: (autoconf-2.59)
3637
3638 2010-12-10 Jan Nijtmans <[email protected]>
3639
3640 * generic/tcl.h: [Bug 3129448]: Possible over-allocation on
3641 * generic/tclCkalloc.c: 64-bit platforms, part 2
3642 * generic/tclCompile.c:
3643 * generic/tclHash.c:
3644 * generic/tclInt.h:
3645 * generic/tclIO.h:
3646 * generic/tclProc.c:
3647
3648 2010-12-10 Alexandre Ferrieux <[email protected]>
3649
3650 * generic/tclIO.c: Make sure [fcopy -size ... -command ...] always
3651 * tests/io.test: calls the callback asynchronously, even for size
3652 zero.
3653
3654 2010-12-10 Jan Nijtmans <[email protected]>
3655
3656 * generic/tclBinary.c: Fix gcc -Wextra warning: missing initializer
3657 * generic/tclCmdAH.c:
3658 * generic/tclCmdIL.c:
3659 * generic/tclCmdMZ.c:
3660 * generic/tclDictObj.c:
3661 * generic/tclIndexObj.c:
3662 * generic/tclIOCmd.c:
3663 * generic/tclVar.c:
3664 * win/tcl.m4: Fix manifest-generation for 64-bit gcc
3665 (mingw-w64)
3666 * win/configure.in: Check for availability of intptr_t and
3667 uintptr_t
3668 * win/configure: (autoconf-2.59)
3669 * generic/tclInt.decls: Change 1st param of TclSockMinimumBuffers
3670 * generic/tclIntDecls.h: to ClientData, and TclWin(Get|Set)SockOpt
3671 * generic/tclIntPlatDecls.h:to SOCKET, because on Win64 those are
3672 * generic/tclIOSock.c: 64-bit, which does not fit.
3673 * win/tclWinSock.c:
3674 * unix/tclUnixSock.c:
3675
3676 2010-12-09 Donal K. Fellows <[email protected]>
3677
3678 * tests/fCmd.test: Improve sanity of constraints now that we don't
3679 support anything before Windows 2000.
3680
3681 * generic/tclCmdAH.c (TclInitFileCmd, TclMakeFileCommandSafe, ...):
3682 Break up [file] into an ensemble. Note that the ensemble is safe in
3683 itself, but the majority of its subcommands are not.
3684 * generic/tclFCmd.c (FileCopyRename,TclFileDeleteCmd,TclFileAttrsCmd)
3685 (TclFileMakeDirsCmd): Adjust these subcommand implementations to work
3686 inside an ensemble.
3687 (TclFileLinkCmd, TclFileReadLinkCmd, TclFileTemporaryCmd): Move these
3688 subcommand implementations from tclCmdAH.c, where they didn't really
3689 belong.
3690 * generic/tclIOCmd.c (TclChannelNamesCmd): Move to more appropriate
3691 source file.
3692 * generic/tclEnsemble.c (TclMakeEnsemble): Start of code to make
3693 partially-safe ensembles. Currently does not function as expected due
3694 to various shortcomings in how safe interpreters are constructed.
3695 * tests/cmdAH.test, tests/fCmd.test, tests/interp.test: Test updates
3696 to take into account systematization of error messages.
3697
3698 * tests/append.test, tests/appendComp.test: Clean up tests so that
3699 they don't leave things in the global environment (detected when doing
3700 -singleproc testing).
3701
3702 2010-12-07 Donal K. Fellows <[email protected]>
3703
3704 * tests/fCmd.test, tests/safe.test, tests/uplevel.test,
3705 * tests/upvar.test, tests/var.test: Convert more tests to tcltest2 and
3706 factor them to be easier to understand.
3707
3708 * generic/tclStrToD.c: Tidy up code so that more #ifdef-fery is
3709 quarantined at the front of the file and function headers follow the
3710 modern Tcl style.
3711
3712 2010-12-06 Jan Nijtmans <[email protected]>
3713
3714 * generic/tclBinary.c: [Bug 3129448]: Possible over-allocation on
3715 * generic/tclCkalloc.c: 64-bit platforms.
3716 * generic/tclTrace.c:
3717
3718 2010-12-05 Jan Nijtmans <[email protected]>
3719
3720 * unix/tcl.m4: [Patch 3116490]: Cross-compile support for unix
3721 * unix/configure: (autoconf-2.59)
3722
3723 2010-12-03 Jeff Hobbs <[email protected]>
3724
3725 * generic/tclUtil.c (TclReToGlob): Add extra check for multiple inner
3726 *s that leads to poor recursive glob matching, defer to original RE
3727 instead. tclbench RE var backtrack.
3728
3729 2010-12-03 Jan Nijtmans <[email protected]>
3730
3731 * generic/tclUtil.c: Silence gcc warning when using -Wwrite-strings
3732 * generic/tclStrToD.c: Silence gcc warning for non-IEEE platforms
3733 * win/Makefile.in: [Patch 3116490]: Cross-compile Tcl mingw32 on unix
3734 * win/tcl.m4: This makes it possible to cross-compile Tcl/Tk for
3735 * win/configure.in: Windows (either 32-bit or 64-bit) out-of-the-box
3736 * win/configure: on UNIX, using mingw-w64 build tools (If Itcl,
3737 tdbc and Thread take over the latest tcl.m4, they can do that too).
3738
3739 2010-12-01 Kevin B. Kenny <[email protected]>
3740
3741 * generic/tclStrToD.c (SetPrecisionLimits, TclDoubleDigits):
3742 [Bug 3124675]: Added meaningless initialization of 'i', 'ilim' and
3743 'ilim1' to silence warnings from the C compiler about possible use of
3744 uninitialized variables, Added a panic to the 'switch' that assigns
3745 them, to assert that the 'default' case is impossible.
3746
3747 2010-12-01 Jan Nijtmans <[email protected]>
3748
3749 * generic/tclBasic.c: Fix gcc 64-bit warnings: cast from pointer to
3750 * generic/tclHash.c: integer of different size.
3751 * generic/tclTest.c:
3752 * generic/tclThreadTest.c:
3753 * generic/tclStrToD.c: Fix gcc(-4.5.2) warning: 'static' is not at
3754 beginning of declaration.
3755 * generic/tclPanic.c: Allow Tcl_Panic() to enter the debugger on win32
3756 * generic/tclCkalloc.c: Use Tcl_Panic() in stead of duplicating the
3757 code.
3758
3759 2010-11-30 Jeff Hobbs <[email protected]>
3760
3761 * generic/tclInt.decls, generic/tclInt.h, generic/tclIntDecls.h:
3762 * generic/tclStubInit.c: TclFormatInt restored at slot 24
3763 * generic/tclUtil.c (TclFormatInt): restore TclFormatInt func from
3764 2005-07-05 macro-ization. Benchmarks indicate it is faster, as a key
3765 int->string routine (e.g. int-indexed arrays).
3766
3767 2010-11-29 Alexandre Ferrieux <[email protected]>
3768
3769 * generic/tclBasic.c: Patch by Miguel, providing a
3770 [::tcl::unsupported::inject coroname command args], which prepends
3771 ("injects") arbitrary code to a suspended coro's future resumption.
3772 Neat for debugging complex coros without heavy instrumentation.
3773
3774 2010-11-29 Kevin B. Kenny <[email protected]>
3775
3776 * generic/tclInt.decls:
3777 * generic/tclInt.h:
3778 * generic/tclStrToD.c:
3779 * generic/tclTest.c:
3780 * generic/tclTomMath.decls:
3781 * generic/tclUtil.c:
3782 * tests/util.test:
3783 * unix/Makefile.in:
3784 * win/Makefile.in:
3785 * win/makefile.vc: Rewrite of Tcl_PrintDouble and TclDoubleDigits that
3786 (a) fixes a severe performance problem with floating point shimmering
3787 reported by Karl Lehenbauer, (b) allows TclDoubleDigits to generate
3788 the digit strings for 'e' and 'f' format, so that it can be used for
3789 tcl_precision != 0 (and possibly later for [format]), (c) fixes [Bug
3790 3120139] by making TclPrintDouble inherently locale-independent, (d)
3791 adds test cases to util.test for correct rounding in difficult cases
3792 of TclDoubleDigits where fixed- precision results are requested. (e)
3793 adds test cases to util.test for the controversial aspects of [Bug
3794 3105247]. As a side effect, two more modules from libtommath
3795 (bn_mp_set_int.c and bn_mp_init_set_int.c) are brought into the build,
3796 since the new code uses them.
3797
3798 * generic/tclIntDecls.h:
3799 * generic/tclStubInit.c:
3800 * generic/tclTomMathDecls.h: Regenerated.
3801
3802 2010-11-24 Donal K. Fellows <[email protected]>
3803
3804 * tests/chanio.test, tests/iogt.test, tests/ioTrans.test: Convert more
3805 tests to tcltest2 and factor them to be easier to understand.
3806
3807 2010-11-20 Donal K. Fellows <[email protected]>
3808
3809 * tests/chanio.test: Converted many tests to tcltest2 by marking the
3810 setup and cleanup parts as such.
3811
3812 2010-11-19 Jan Nijtmans <[email protected]>
3813
3814 * win/tclWin32Dll.c: Fix gcc warnings: unused variable 'registration'
3815 * win/tclWinChan.c:
3816 * win/tclWinFCmd.c:
3817
3818 2010-11-18 Jan Nijtmans <[email protected]>
3819
3820 * win/tclAppInit.c: [FRQ 491789]: "setargv() doesn't support a unicode
3821 cmdline" now implemented for cygwin and mingw32 too.
3822 * tests/main.test: No longer disable tests Tcl_Main-1.4 and 1.6 on
3823 Windows, because those now work on all supported platforms.
3824 * win/configure.in: Set NO_VIZ=1 when zlib is compiled in libtcl,
3825 this resolves compiler warnings in 64-bit and static builds.
3826 * win/configure (regenerated)
3827
3828 2010-11-18 Donal K. Fellows <[email protected]>
3829
3830 * doc/file.n: [Bug 3111298]: Typofix.
3831
3832 * tests/oo.test: [Bug 3111059]: Added testing that neatly trapped this
3833 issue.
3834
3835 2010-11-18 Miguel Sofer <[email protected]>
3836
3837 * generic/tclNamesp.c: [Bug 3111059]: Fix leak due to bad looping
3838 construct.
3839
3840 2010-11-17 Jan Nijtmans <[email protected]>
3841
3842 * win/tcl.m4: [FRQ 491789]: "setargv() doesn't support a unicode
3843 cmdline" now implemented for mingw-w64
3844 * win/configure (re-generated)
3845
3846 2010-11-16 Jan Nijtmans <[email protected]>
3847
3848 * win/tclAppInit.c:Bring compilation under mingw-w64 a bit closer
3849 * win/cat.c: to reality. See for what's missing:
3850 * win/tcl.m4: <https://sourceforge.net/apps/trac/mingw-w64/wiki/Unicode%20apps>
3851 * win/configure: (re-generated)
3852 * win/tclWinPort.h: [Bug 3110161]: Extensions using TCHAR don't
3853 compile on VS2005 SP1
3854
3855 2010-11-15 Andreas Kupries <[email protected]>
3856
3857 * doc/interp.n: [Bug 3081184]: TIP #378.
3858 * doc/tclvars.n: Performance fix for TIP #280.
3859 * generic/tclBasic.c:
3860 * generic/tclExecute.c:
3861 * generic/tclInt.h:
3862 * generic/tclInterp.c:
3863 * tests/info.test:
3864 * tests/interp.test:
3865
3866 2010-11-10 Andreas Kupries <[email protected]>
3867
3868 * changes: Updates for 8.6b2 release.
3869
3870 2010-11-09 Donal K. Fellows <[email protected]>
3871
3872 * generic/tclOOMethod.c (ProcedureMethodVarResolver): [Bug 3105999]:
3873 * tests/oo.test: Make sure that resolver structures that are
3874 only temporarily needed get squelched.
3875
3876 2010-11-05 Jan Nijtmans <[email protected]>
3877
3878 * generic/tclMain.c: Thanks, Kevin, for the fix, but this how it was
3879 supposed to be (TCL_ASCII_MAIN is only supposed to be defined on
3880 WIN32).
3881
3882 2010-11-05 Kevin B. Kenny <[email protected]>
3883
3884 * generic/tclMain.c: Added missing conditional on _WIN32 around code
3885 that messes around with the definition of _UNICODE, to correct a badly
3886 broken Unix build from Jan's last commit.
3887
3888 2010-11-04 Jan Nijtmans <[email protected]>
3889
3890 * generic/tclDecls.h: [FRQ 491789]: "setargv() doesn't support a
3891 * generic/tclMain.c: unicode cmdline" implemented for Tcl on MSVC++
3892 * doc/Tcl_Main.3:
3893 * win/tclAppInit.c:
3894 * win/makefile.vc:
3895 * win/Makefile.in:
3896 * win/tclWin32Dll.c: Eliminate minor MSVC warning TCHAR -> char
3897 conversion
3898
3899 2010-11-04 Reinhard Max <[email protected]>
3900
3901 * tests/socket.test: Run the socket tests three times with the address
3902 family set to any, inet, and inet6 respectively. Use constraints to
3903 skip the tests if a family is found to be unsupported or not
3904 configured on the local machine. Adjust the tests to dynamically adapt
3905 to the address family that is being tested.
3906
3907 Rework some of the tests to speed them up by avoiding (supposedly)
3908 unneeded [after]s.
3909
3910 2010-11-04 Stuart Cassoff <[email protected]>
3911
3912 * unix/Makefile.in: [Patch 3101127]: Installer Improvements.
3913 * unix/install-sh:
3914
3915 2010-11-04 Donal K. Fellows <[email protected]>
3916
3917 * tests/error.test (error-19.13): Another variation on testing for
3918 issues in [try] compilation.
3919
3920 * doc/Tcl.n (Variable substitution): [Bug 3099086]: Increase clarity
3921 of explanation of what characters are actually permitted in variable
3922 substitutions. Note that this does not constitute a change of
3923 behavior; it is just an improvement of explanation.
3924
3925 2010-11-04 Don Porter <[email protected]>
3926
3927 * changes: Updates for 8.6b2 release. (Thanks Andreas Kupries)
3928
3929 2010-11-03 Jan Nijtmans <[email protected]>
3930
3931 * win/tclWinFcmd.c: [FRQ 2965056]: Windows build with -DUNICODE
3932 * win/tclWinFile.c: (more clean-ups for pre-win2000 stuff)
3933 * win/tclWinReg.c:
3934
3935 2010-11-03 Donal K. Fellows <[email protected]>
3936
3937 * generic/tclCmdMZ.c (TryPostBody): Ensure that errors when setting
3938 * tests/error.test (error-19.1[12]): message/opt capture variables get
3939 reflected properly to the caller.
3940
3941 2010-11-03 Kevin B. Kenny <[email protected]>
3942
3943 * generic/tclCompCmds.c (TclCompileCatchCmd): [Bug 3098302]:
3944 * tests/compile.test (compile-3.6): Reworked the compilation of the
3945 [catch] command so as to avoid placing any code that might throw an
3946 exception (specifically, any initial substitutions or any stores to
3947 result or options variables) between the BEGIN_CATCH and END_CATCH but
3948 outside the exception range. Added a test case that panics on a stack
3949 smash if the change is not made.
3950
3951 2010-11-01 Stuart Cassoff <[email protected]>
3952
3953 * library/safe.tcl: Improved handling of non-standard module path
3954 * tests/safe.test: lists, empty path lists in particular.
3955
3956 2010-11-01 Kevin B. Kenny <[email protected]>
3957
3958 * library/tzdata/Asia/Hong_Kong:
3959 * library/tzdata/Pacific/Apia:
3960 * library/tzdata/Pacific/Fiji: Olson's tzdata2010o.
3961
3962 2010-10-29 Alexandre Ferrieux <[email protected]>
3963
3964 * generic/tclTimer.c: [Bug 2905784]: Stop small [after]s from
3965 wasting CPU while keeping accuracy.
3966
3967 2010-10-28 Kevin B. Kenny <[email protected]>
3968
3969 [dogeen-assembler-branch]
3970 * generic/tclAssembly.c:
3971 * tests/assembly.test (assemble-31.*): Added jump tables.
3972
3973 2010-10-28 Don Porter <[email protected]>
3974
3975 * tests/http.test: [Bug 3097490]: Make http-4.15 pass in
3976 isolation.
3977
3978 * unix/tclUnixSock.c: [Bug 3093120]: Prevent calls of
3979 freeaddrinfo(NULL) which can crash some
3980 systems. Thanks Larry Virden.
3981
3982 2010-10-26 Reinhard Max <[email protected]>
3983
3984 * Changelog.2008: Split off from Changelog.
3985 * generic/tclIOSock.c (TclCreateSocketAddress): The interp != NULL
3986 check is needed for ::tcl::unsupported::socketAF as well.
3987
3988 2010-10-26 Donal K. Fellows <[email protected]>
3989
3990 * unix/tclUnixSock.c (TcpGetOptionProc): Prevent crash if interp is
3991 * win/tclWinSock.c (TcpGetOptionProc): NULL (a legal situation).
3992
3993 2010-10-26 Reinhard Max <[email protected]>
3994
3995 * unix/tclUnixSock.c (TcpGetOptionProc): Added support for
3996 ::tcl::unsupported::noReverseDNS, which if set to any value, prevents
3997 [fconfigure -sockname] and [fconfigure -peername] from doing
3998 reverse DNS queries.
3999
4000 2010-10-24 Kevin B. Kenny <[email protected]>
4001
4002 [dogeen-assembler-branch]
4003 * generic/tclAssembly.c:
4004 * tests/assembly.test (assemble-17.15): Reworked branch handling so
4005 that forward branches can use jump1 (jumpTrue1, jumpFalse1). Added
4006 test cases that the forward branches will expand to jump4, jumpTrue4,
4007 jumpFalse4 when needed.
4008
4009 2010-10-23 Kevin B. Kenny <[email protected]>
4010
4011 [dogeen-assembler-branch]
4012 * generic/tclAssembly.h (removed):
4013 Removed file that was included in only one
4014 source file.
4015 * generictclAssembly.c: Inlined tclAssembly.h.
4016
4017 2010-10-17 Alexandre Ferrieux <[email protected]>
4018
4019 * doc/info.n: [Patch 2995655]:
4020 * generic/tclBasic.c: Report inner contexts in [info errorstack]
4021 * generic/tclCompCmds.c:
4022 * generic/tclCompile.c:
4023 * generic/tclCompile.h:
4024 * generic/tclExecute.c:
4025 * generic/tclInt.h:
4026 * generic/tclNamesp.c:
4027 * tests/error.test:
4028 * tests/result.test:
4029
4030 2010-10-20 Donal K. Fellows <[email protected]>
4031
4032 * generic/tclCompCmds.c (TclCompileDictForCmd): Update the compilation
4033 * generic/tclCompile.c (tclInstructionTable): of [dict for] so that
4034 * generic/tclExecute.c (TEBCresume): it no longer makes any
4035 use of INST_DICT_DONE now that's not needed, and make it clearer in
4036 the implementation of the instruction that it's just a deprecated form
4037 of unset operation. Followup to my commit of 2010-10-16.
4038
4039 2010-10-19 Donal K. Fellows <[email protected]>
4040
4041 * generic/tclZlib.c (Tcl_ZlibStreamGet): [Bug 3081008]: Ensure that
4042 when a bytearray gets its internals entangled with zlib for more than
4043 a passing moment, that bytearray will never be shimmered away. This
4044 increases the amount of copying but is simple to get right, which is a
4045 reasonable trade-off.
4046
4047 * generic/tclStringObj.c (Tcl_AppendObjToObj): Added some special
4048 cases so that most of the time when you build up a bytearray by
4049 appending, it actually ends up being a bytearray rather than
4050 shimmering back and forth to string.
4051
4052 * tests/http11.test (check_crc): Use a simpler way to express the
4053 functionality of this procedure.
4054
4055 * generic/tclZlib.c: Purge code that wrote to the object returned by
4056 Tcl_GetObjResult, as we don't want to do that anti-pattern no more.
4057
4058 2010-10-18 Jan Nijtmans <[email protected]>
4059
4060 * tools/uniParse.tcl: [Bug 3085863]: tclUniData was 9 years old;
4061 Ignore non-BMP characters and fix comment about UnicodeData.txt file.
4062 * generic/regcomp.c: Fix comment
4063 * tests/utf.test: Add some Unicode 6 testcases
4064
4065 2010-10-17 Alexandre Ferrieux <[email protected]>
4066
4067 * doc/info.n: Document [info errorstack] faithfully.
4068
4069 2010-10-16 Donal K. Fellows <[email protected]>
4070
4071 * generic/tclExecute.c (ReleaseDictIterator): Factored out the release
4072 of the bytecode-level dictionary iterator information so that the
4073 side-conditions on instruction issuing are simpler.
4074
4075 2010-10-15 Jan Nijtmans <[email protected]>
4076
4077 * generic/reg_locale.c: [Bug 3085863]: tclUniData 9 years old: Updated
4078 * generic/tclUniData.c: Unicode tables to latest UnicodeData.txt,
4079 * tools/uniParse.tcl: corresponding with Unicode 6.0 (except for
4080 out-of-range chars > 0xFFFF)
4081
4082 2010-10-13 Don Porter <[email protected]>
4083
4084 * generic/tclCompile.c: Alternative fix for [Bugs 467523,983660] where
4085 * generic/tclExecute.c: sharing of empty scripts is allowed again.
4086
4087 2010-10-13 Jan Nijtmans <[email protected]>
4088
4089 * win/tclWinThrd.h: (removed) because it is just empty en used nowhere
4090 * win/tcl.dsp
4091
4092 2010-10-12 Jan Nijtmans <[email protected]>
4093
4094 * tools/uniClass.tcl: Spacing and comments: let uniClass.tcl
4095 * generic/regc_locale.c: generation match better the current
4096 (hand-modified) regc_locale.c
4097 * tools/uniParse.tcl: Generate proper const qualifiers for
4098 * generic/tclUniData.c: tclUniData.c
4099
4100 2010-10-12 Reinhard Max <[email protected]>
4101
4102 * unix/tclUnixSock.c (CreateClientSocket): [Bug 3084338]: Fix a
4103 memleak and refactor the calls to freeaddrinfo().
4104
4105 2010-10-11 Jan Nijtmans <[email protected]>
4106
4107 * win/tclWinDde.c: [FRQ 2965056]: Windows build with -DUNICODE
4108 * win/tclWinReg.c:
4109 * win/tclWinTest.c: More cleanups
4110 * win/tclWinFile.c: Add netapi32 to the link line, so we no longer
4111 * win/tcl.m4: have to use LoadLibrary to access those
4112 functions.
4113 * win/makefile.vc:
4114 * win/configure: (Re-generate with autoconf-2.59)
4115 * win/rules.vc Update for VS10
4116
4117 2010-10-09 Miguel Sofer <[email protected]>
4118
4119 * generic/tclExecute.c: Fix overallocation of exec stack in TEBC (due
4120 to mixing numwords and numbytes)
4121
4122 2010-10-08 Jan Nijtmans <[email protected]>
4123
4124 * generic/tclIOSock.c: On Windows, use gai_strerrorA
4125
4126 2010-10-06 Don Porter <[email protected]>
4127
4128 * tests/winPipe.test: Test hygiene with makeFile and removeFile.
4129
4130 * generic/tclCompile.c: [Bug 3081065]: Prevent writing to the intrep
4131 * tests/subst.test: fields of a freed Tcl_Obj.
4132
4133 2010-10-06 Kevin B. Kenny <[email protected]>
4134
4135 [dogeen-assembler-branch]
4136
4137 * generic/tclAssembly.c:
4138 * generic/tclAssembly.h:
4139 * tests/assemble.test: Added catches. Still needs a lot of testing.
4140
4141 2010-10-02 Kevin B. Kenny <[email protected]>
4142
4143 [dogeen-assembler-branch]
4144
4145 * generic/tclAssembly.c:
4146 * generic/tclAssembly.h:
4147 * tests/assemble.test: Added dictAppend, dictIncrImm, dictLappend,
4148 dictSet, dictUnset, nop, regexp, nsupvar, upvar, and variable.
4149
4150 2010-10-02 Donal K. Fellows <[email protected]>
4151
4152 * generic/tclExecute.c (TEBCresume): [Bug 3079830]: Added invalidation
4153 of string representations of dictionaries in some cases.
4154
4155 2010-10-01 Jeff Hobbs <[email protected]>
4156
4157 * generic/tclExecute.c (EvalStatsCmd): change 'evalstats' to return
4158 data to interp by default, or if given an arg, use that as filename to
4159 output to (accepts 'stdout' and 'stderr'). Fix output to print used
4160 inst count data.
4161 * generic/tclCkalloc.c: Change TclDumpMemoryInfo sig to allow objPtr
4162 * generic/tclInt.decls: as well as FILE* as output.
4163 * generic/tclIntDecls.h:
4164
4165 2010-10-01 Donal K. Fellows <[email protected]>
4166
4167 * generic/tclBasic.c, generic/tclClock.c, generic/tclEncoding.c,
4168 * generic/tclEnv.c, generic/tclLoad.c, generic/tclNamesp.c,
4169 * generic/tclObj.c, generic/tclRegexp.c, generic/tclResolve.c,
4170 * generic/tclResult.c, generic/tclUtil.c, macosx/tclMacOSXFCmd.c:
4171 More purging of strcpy() from locations where we already know the
4172 length of the data being copied.
4173
4174 2010-10-01 Kevin B. Kenny <[email protected]>
4175
4176 [dogeen-assembler-branch]
4177
4178 * tests/assemble.test:
4179 * generic/tclAssemble.h:
4180 * generic/tclAssemble.c: Added listIn, listNotIn, and dictGet.
4181
4182 2010-09-30 Kevin B. Kenny <[email protected]>
4183
4184 [dogeen-assembler-branch]
4185
4186 * tests/assemble.test: Added tryCvtToNumeric and several more list
4187 * generic/tclAssemble.c: operations.
4188 * generic/tclAssemble.h:
4189
4190 2010-09-29 Kevin B. Kenny <[email protected]>
4191
4192 [dogeen-assembler-branch]
4193
4194 * tests/assemble.test: Completed conversion of tests to a
4195 * generic/tclAssemble.c: "white box" structure that follows the
4196 C code. Added missing safety checks on the operands of 'over' and
4197 'reverse' so that negative operand counts don't smash the stack.
4198
4199 2010-09-29 Jan Nijtmans <[email protected]>
4200
4201 * unix/configure: Re-generate with autoconf-2.59
4202 * win/configure:
4203 * generic/tclMain.c: Make compilable with -DUNICODE as well
4204
4205 2010-09-28 Reinhard Max <[email protected]>
4206
4207 TIP #162 IMPLEMENTATION
4208
4209 * doc/socket.n: Document the changes to the [socket] and
4210 [fconfigure] commands.
4211
4212 * generic/tclInt.h: Introduce TclCreateSocketAddress() as a
4213 * generic/tclIOSock.c: replacement for the platform-dependent
4214 * unix/tclUnixSock.c: TclpCreateSocketAddress() functions. Extend
4215 * unix/tclUnixChan.c: the [socket] and [fconfigure] commands to
4216 * unix/tclUnixPort.h: behave as proposed in TIP #162. This is the
4217 * win/tclWinSock.c: core of what is required to support the use of
4218 * win/tclWinPort.h: IPv6 sockets in Tcl.
4219
4220 * compat/fake-rfc2553.c: A compat implementation of the APIs defined
4221 * compat/fake-rfc2553.h: in RFC-2553 (getaddrinfo() and friends) on
4222 top of the existing gethostbyname() etc.
4223 * unix/configure.in: Test whether the fake-implementation is
4224 * unix/tcl.m4: needed.
4225 * unix/Makefile.in: Add a compile target for fake-rfc2553.
4226
4227 * win/configure.in: Allow cross-compilation by default.
4228
4229 * tests/socket.test: Improve the test suite to make more use of
4230 * tests/remote.tcl: randomized ports to reduce interference with
4231 tests running in parallel or other services on
4232 the machine.
4233
4234 2010-09-28 Kevin B. Kenny <[email protected]>
4235
4236 [dogeen-assembler-branch]
4237
4238 * tests/assemble.test: Added more "white box" tests.
4239 * generic/tclAssembly.c: Added the error checking and reporting
4240 for undefined labels. Revised code so that no pointers into the
4241 bytecode sequence are held (because the sequence can move!),
4242 that no Tcl_HashEntry pointers are held (because the hash table
4243 doesn't guarantee their stability!) and to eliminate the BBHash
4244 table, which is merely additional information indexed by jump
4245 labels and can just as easily be held in the 'label' structure.
4246 Renamed shared structures to CamelCase, and renamed 'label' to
4247 JumpLabel because other types of labels may eventually be possible.
4248
4249 2010-09-27 Kevin B. Kenny <[email protected]>
4250
4251 [dogeen-assembler-branch]
4252
4253 * tests/assemble.test: Added more "white box" tests.
4254 * generic/tclAssembly.c: Fixed bugs exposed by the new tests.
4255 (a) [eval] and [expr] had incorrect stack balance computed if
4256 the arg was not a simple word. (b) [concat] accepted a negative
4257 operand count. (c) [invoke] accepted a zero or negative operand
4258 count. (d) more misspelt error messages.
4259 Also replaced a funky NRCallTEBC with the new call
4260 TclNRExecuteByteCode, necessitated by a merge with changes on the
4261 HEAD.
4262
4263 2010-09-26 Miguel Sofer <[email protected]>
4264
4265 * generic/tclBasic.c: [Patch 3072080] (minus the itcl
4266 * generic/tclCmdIL.c: update): a saner NRE.
4267 * generic/tclCompExpr.c:
4268 * generic/tclCompile.c: This makes TclNRExecuteByteCode (ex TEBC)
4269 * generic/tclCompile.h: to be a normal NRE citizen: it loses its
4270 * generic/tclExecute.c: special status.
4271 * generic/tclInt.decls: The logic flow within the BC engine is
4272 * generic/tclInt.h: simplified considerably.
4273 * generic/tclIntDecls.h:
4274 * generic/tclObj.c:
4275 * generic/tclProc.c:
4276 * generic/tclTest.c:
4277
4278 * generic/tclVar.c: Use the macro HasLocalVars everywhere
4279
4280 2010-09-26 Miguel Sofer <[email protected]>
4281
4282 * generic/tclOOMethod.c (ProcedureMethodVarResolver): avoid code
4283 duplication, let the runtime var resolver call the compiled var
4284 resolver.
4285
4286 2010-09-26 Kevin B. Kenny <[email protected]>
4287
4288 [dogeen-assembler-branch]
4289
4290 * tests/assemble.test: Added many new tests moving toward a more
4291 comprehensive test suite for the assembler.
4292 * generic/tclAssembly.c: Fixed bugs exposed by the new tests:
4293 (a) [bitnot] and [not] had incorrect operand counts. (b)
4294 INST_CONCAT cannot concatenate zero objects. (c) misspelt error
4295 messages. (d) the "assembly code" internal representation lacked
4296 a duplicator, which caused double-frees of the Bytecode object
4297 if assembly code ever was duplicated.
4298
4299 2010-09-25 Kevin B. Kenny <[email protected]>
4300
4301 [dogeen-assembler-branch]
4302
4303 * generic/tclAssembly.c: Massive refactoring of the assembler
4304 * generic/tclAssembly.h: to use a Tcl-like syntax (and use
4305 * tests/assemble.test: Tcl_ParseCommand to parse it). The
4306 * tests/assemble1.bench: refactoring also ensures that
4307 Tcl_Tokens in the assembler have string ranges inside the source
4308 code, which allows for [eval] and [expr] assembler directives
4309 that simply call TclCompileScript and TclCompileExpr recursively.
4310
4311 2010-09-24 Jeff Hobbs <[email protected]>
4312
4313 * tests/stringComp.test: improved string eq/cmp test coverage
4314 * generic/tclExecute.c (TclExecuteByteCode): merge INST_STR_CMP and
4315 INST_STR_EQ/INST_STR_NEQ paths. Speeds up eq/ne/[string eq] with
4316 obj-aware comparisons and eq/==/ne/!= with length equality check.
4317
4318 2010-09-24 Andreas Kupries <[email protected]>
4319
4320 * tclWinsock.c: [Bug 3056775]: Fixed race condition between thread and
4321 internal co-thread access of a socket's structure because of the
4322 thread not using the socketListLock in TcpAccept(). Added
4323 documentation on how the module works to the top.
4324
4325 2010-09-23 Jan Nijtmans <[email protected]>
4326
4327 * generic/tclDecls.h: Make Tcl_SetPanicProc and Tcl_GetStringResult
4328 * unix/tclAppInit.c: callable without stubs, just as Tcl_SetVar.
4329 * win/tclAppInit.c:
4330
4331 2010-09-23 Don Porter <[email protected]>
4332
4333 * generic/tclCmdAH.c: Fix cases where value returned by
4334 * generic/tclEvent.c: Tcl_GetReturnOptions() was leaked.
4335 * generic/tclMain.c: Thanks to Jeff Hobbs for discovery of the
4336 anti-pattern to seek and destroy.
4337
4338 2010-09-23 Jan Nijtmans <[email protected]>
4339
4340 * unix/tclAppInit.c: Make compilable with -DUNICODE (not activated
4341 * win/tclAppInit.c: yet), many clean-ups in comments.
4342
4343 2010-09-22 Miguel Sofer <[email protected]>
4344
4345 * generic/tclExecute: [Bug 3072640]: One more DECACHE_STACK_INFO() was
4346 missing.
4347
4348 * tests/execute.test: Added execute-10.3 for [Bug 3072640]. The test
4349 causes a mem failure.
4350
4351 * generic/tclExecute: Protect all possible writes to ::errorInfo or
4352 ::errorCode with DECACHE_STACK_INFO(), as they could run traces. The
4353 new calls to be protected are Tcl_ResetResult(), Tcl_SetErrorCode(),
4354 IllegalExprOperandType(), TclExprFloatError(). The error was triggered
4355 by [Patch 3072080].
4356
4357 2010-09-22 Jan Nijtmans <[email protected]>
4358
4359 * win/tcl.m4: Add kernel32 to LIBS, so the link line for
4360 * win/configure: mingw is exactly the same as for MSVC++.
4361
4362 2010-09-21 Jeff Hobbs <[email protected]>
4363
4364 * generic/tclExecute.c (TclExecuteByteCode):
4365 * generic/tclOOMethod.c (ProcedureMethodCompiledVarConnect):
4366 * generic/tclVar.c (TclLookupSimpleVar, CompareVarKeys):
4367 * generic/tclPathObj.c (Tcl_FSGetNormalizedPath, Tcl_FSEqualPaths):
4368 * generic/tclIOUtil.c (TclFSCwdPointerEquals): peephole opt
4369 * generic/tclResult.c (TclMergeReturnOptions): Use memcmp where
4370 applicable as possible speedup on some libc variants.
4371
4372 2010-09-21 Kevin B. Kenny <[email protected]>
4373
4374 [BRANCH: dogeen-assembler-branch]
4375
4376 * generic/tclAssembly.c (new file):
4377 * generic/tclAssembly.h:
4378 * generic/tclBasic.c (builtInCmds, Tcl_CreateInterp):
4379 * generic/tclInt.h:
4380 * tests/assemble.test (new file):
4381 * tests/assemble1.bench (new file):
4382 * unix/Makefile.in:
4383 * win/Makefile.in:
4384 * win/Makefile.vc:
4385 Initial commit of Ozgur Dogan Ugurlu's (SF user: dogeen)
4386 assembler for the Tcl bytecode language.
4387
4388 2010-09-21 Jan Nijtmans <[email protected]>
4389
4390 * win/tclWinFile.c: Fix declaration after statement.
4391 * win/tcl.m4: Add -Wdeclaration-after-statement, so this
4392 * win/configure: mistake cannot happen again.
4393 * win/tclWinFCmd.c: [Bug 3069278]: Breakage on head Windows
4394 * win/tclWinPipe.c: triggered by install-tzdata, final fix
4395
4396 2010-09-20 Jan Nijtmans <[email protected]>
4397
4398 * win/tclWinFCmd.c: Eliminate tclWinProcs->useWide everywhere, since
4399 * win/tclWinFile.c: the value is always "1" on platforms >win95
4400 * win/tclWinPipe.c:
4401
4402 2010-09-19 Donal K. Fellows <[email protected]>
4403
4404 * doc/file.n (file readlink): [Bug 3070580]: Typofix.
4405
4406 2010-09-18 Jan Nijtmans <[email protected]>
4407
4408 * win/tclWinFCmd.c [Bug 3069278]: Breakage on head Windows triggered
4409 by install-tzdata. Temporary don't compile this with -DUNICODE, while
4410 investigating this bug.
4411
4412 2010-09-16 Jeff Hobbs <[email protected]>
4413
4414 * win/tclWinFile.c: Remove define of FINDEX_INFO_LEVELS as all
4415 supported versions of compilers should now have it.
4416
4417 * unix/Makefile.in: Do not pass current build env vars when using
4418 NATIVE_TCLSH in targets.
4419
4420 2010-09-16 Jan Nijtmans <[email protected]>
4421
4422 * generic/tclDecls.h: Make Tcl_FindExecutable() work in UNICODE
4423 * generic/tclEncoding.c: compiles (windows-only) as well as ASCII.
4424 * generic/tclStubInit.c: Needed for [FRQ 491789]: setargv() doesn't
4425 support a unicode cmdline.
4426
4427 2010-09-15 Donal K. Fellows <[email protected]>
4428
4429 * generic/tclBinary.c (TclAppendBytesToByteArray): [Bug 3067036]: Make
4430 sure we never try to double zero repeatedly to get a buffer size. Also
4431 added a check for sanity on the size of buffer being appended.
4432
4433 2010-09-15 Don Porter <[email protected]>
4434
4435 * unix/Makefile.in: Revise `make dist` target to tolerate the
4436 case of zero bundled packages.
4437
4438 2010-09-15 Jan Nijtmans <[email protected]>
4439
4440 * tools/genStubs.tcl: [Patch 3034251]: Backport ttkGenStubs.tcl
4441 * generic/tcl.decls: features to genStubs.tcl. Make the "generic"
4442 * generic/tclInt.decls: argument in the *.decls files optional
4443 * generic/tclOO.decls: (no change to any tcl*Decls.h files)
4444 * generic/tclTomMath.decls:
4445 This allows genStubs.tcl to generate the ttk stub files as well, while
4446 keeping full compatibility with existing *.decls files.
4447
4448 2010-09-14 Jan Nijtmans <[email protected]>
4449
4450 * win/tclWinPort.h: Allow all Win2000+ API entries in Tcl
4451 * win/tclWin32Dll.c: Eliminate dynamical loading of advapi23 and
4452 kernel32 symbols.
4453
4454 2010-09-13 Jan Nijtmans <[email protected]>
4455
4456 * win/tclWinChan.c: Various clean-ups, converting from
4457 * win/tclWinConsole.c: tclWinProc->xxxProc directly to Xxx
4458 * win/tclWinInit.c: (no change in functionality)
4459 * win/tclWinLoad.c:
4460 * win/tclWinSerial.c:
4461 * win/tclWinSock.c:
4462 * tools/genStubs.tcl: Add scspec feature from ttkGenStubs.tcl
4463 (no change in output for *Decls.h files)
4464
4465 2010-09-10 Jan Nijtmans <[email protected]>
4466
4467 * win/tclWin32Dll.c: Partly revert yesterday's change, to make it work
4468 on VC++ 6.0 again.
4469
4470 2010-09-10 Donal K. Fellows <[email protected]>
4471
4472 * doc/regsub.n: [Bug 3063568]: Fix for gotcha in example due to Tcl's
4473 special handling of backslash-newline. Makes example slightly less
4474 pure, but more useful.
4475
4476 2010-09-09 Jan Nijtmans <[email protected]>
4477
4478 * win/makefile.vc: Mingw should always link with -ladvapi32.
4479 * win/tcl.m4:
4480 * win/configure: (regenerated)
4481 * win/tclWinInt.h: Remove ascii variant of tkWinPocs table, it is
4482 * win/tclWin32Dll.c: no longer necessary. Fix CreateProcess signature
4483 * win/tclWinPipe.c: and remove unused GetModuleFileName and lstrcpy.
4484 * win/tclWinPort.h: Mingw/cygwin fixes: <tchar.h> should always be
4485 included, and fix conflict in various macro values: Always force the
4486 same values as in VC++.
4487
4488 2010-09-08 Don Porter <[email protected]>
4489
4490 * win/tclWinChan.c: [Bug 3059922]: #ifdef protections to permit
4491 * win/tclWinFCmd.c: builds with mingw on amd64 systems. Thanks to
4492 "mescalinum" for reporting and testing.
4493
4494 2010-09-08 Andreas Kupries <[email protected]>
4495
4496 * doc/tm.n: Added underscore to the set of characters accepted in
4497 module names. This is true for quite some time in the code, this
4498 change catches up the documentation.
4499
4500 2010-09-03 Donal K. Fellows <[email protected]>
4501
4502 * tools/tcltk-man2html.tcl (plus-pkgs): Improve the package
4503 documentation search pattern to support the doctoos-generated
4504 directory structure.
4505 * tools/tcltk-man2html-utils.tcl (output-name): Made this more
4506 resilient against misformatted NAME sections, induced by import of
4507 Thread package documentation into Tcl doc tree.
4508
4509 2010-09-02 Andreas Kupries <[email protected]>
4510
4511 * doc/glob.n: Fixed documentation ambiguity regarding the handling
4512 of -join.
4513
4514 * library/safe.tcl (safe::AliasGlob): Fixed another problem, the
4515 option -join does not stop option processing in the core builtin, so
4516 the emulation must not do that either.
4517
4518 2010-09-01 Andreas Kupries <[email protected]>
4519
4520 * library/safe.tcl (safe::AliasGlob): Moved the command extending the
4521 actual glob command with a -directory flag to when we actually have a
4522 proper untranslated path,
4523
4524 2010-09-01 Andreas Kupries <[email protected]>
4525
4526 * generic/tclExecute.c: [Bug 3057639]: Applied patch by Jeff to make
4527 * generic/tclVar.c: the behaviour of lappend in bytecompiled mode
4528 * tests/append.test: consistent with direct-eval and 'append'
4529 * tests/appendComp.test: generally. Added tests (append*-9.*)
4530 showing the difference.
4531
4532 2010-08-31 Jan Nijtmans <[email protected]>
4533
4534 * win/rules.vc: Typo (thanks to Twylite discovering
4535 this)
4536 * generic/tclStubLib.c: Revert to previous version: MSVC++ 6.0
4537 * generic/tclTomMathStubLib.c:cannot handle the new construct.
4538 * generic/tcl.decls [Patch 2997642]: Many type casts needed
4539 * generic/tclDecls.h: when using Tcl_Pkg* API. Remaining part.
4540 * generic/tclPkg.c:
4541 * generic/tclBasic.c:
4542 * generic/tclTomMathInterface.c:
4543 * doc/PkgRequire.3
4544
4545 2010-08-31 Andreas Kupries <[email protected]>
4546
4547 * win/tcl.m4: Applied patch by Jeff fixing issues with the manifest
4548 handling on Win64.
4549 * win/configure: Regenerated.
4550
4551 2010-08-30 Miguel Sofer <[email protected]>
4552
4553 * generic/tclBasic.c: [Bugs 3046594,3047235,3048771]: New
4554 * generic/tclCmdAH.c: implementation for [tailcall] command: it now
4555 * generic/tclCmdMZ.c: schedules the command and returns TCL_RETURN.
4556 * generic/tclExecute.c: This fixes all issues with [catch] and [try].
4557 * generic/tclInt.h: Thanks dgp for exploring the dark corners.
4558 * generic/tclNamesp.c: More thorough testing is required.
4559 * tests/tailcall.test:
4560
4561 2010-08-30 Jan Nijtmans <[email protected]>
4562
4563 * win/Makefile.in: [FRQ 2965056]: Windows build with -DUNICODE
4564 * win/rules.vc:
4565 * win/tclWinFCmd.c: Make sure that allocated TCHAR arrays are
4566 * win/tclWinFile.c: always properly aligned as wchar_t, and
4567 * win/tclWinPipe.c: not bigger than necessary.
4568 * win/tclWinSock.c:
4569 * win/tclWinDde.c: Those 3 files are not converted yet to be
4570 * win/tclWinReg.c: built with -DUNICODE, so add a TODO.
4571 * win/tclWinTest.c:
4572 * generic/tcl.decls: [Patch 2997642]: Many type casts needed when
4573 * generic/tclDecls.h: using Tcl_Pkg* API. Partly.
4574 * generic/tclPkg.c:
4575 * generic/tclStubLib.c: Demonstration how this change can benefit
4576 code.
4577 * generic/tclTomMathStubLib.c:
4578 * doc/PkgRequire.3:
4579
4580 2010-08-29 Donal K. Fellows <[email protected]>
4581
4582 * doc/dict.n: [Bug 3046999]: Corrected cross reference to array
4583 manpage to refer to (correct) existing subcommand.
4584
4585 2010-08-26 Jeff Hobbs <[email protected]>
4586
4587 * unix/configure, unix/tcl.m4: SHLIB_LD_LIBS='${LIBS}' for OSF1-V*.
4588 Add /usr/lib64 to set of auto-search dirs. [Bug 1230554]
4589 (SC_PATH_X): Correct syntax error when xincludes not found.
4590
4591 * win/Makefile.in (VC_MANIFEST_EMBED_DLL VC_MANIFEST_EMBED_EXE):
4592 * win/configure, win/configure.in, win/tcl.m4: SC_EMBED_MANIFEST
4593 macro and --enable-embedded-manifest configure arg added to support
4594 manifest embedding where we know the magic. Help prevents DLL hell
4595 with MSVC8+.
4596
4597 2010-08-24 Jan Nijtmans <[email protected]>
4598
4599 * generic/tcl.decls: [Bug 3007895]: Tcl_(Find|Create)HashEntry
4600 * generic/tclHash.c: stub entries can never be called.
4601 * generic/tclDecls.h:
4602 * generic/tclStubInit.c: [Patch 2994165]: Change signature of
4603 Tcl_FSGetNativePath and TclpDeleteFile follow-up: move stub entry back
4604 to original location.
4605
4606 2010-08-23 Kevin B. Kenny <[email protected]>
4607
4608 * library/tzdata/Africa/Cairo:
4609 * library/tzdata/Asia/Gaza: Olson's tzdata2010l.
4610
4611 2010-08-22 Jan Nijtmans <[email protected]>
4612
4613 * generic/tclBasic.c: [Patch 3009403]: Signature of Tcl_GetHashKey,
4614 * generic/tclBinary.c: Tcl_(Create|Find)HashEntry follow-up:
4615 * generic/tclCmdIL.c: Remove many type casts which are no longer
4616 * generic/tclCompile.c:necessary as a result of this signature change.
4617 * generic/tclDictObj.c:
4618 * generic/tclEncoding.c:
4619 * generic/tclExecute.c:
4620 * generic/tclInterp.c:
4621 * generic/tclIOCmd.c:
4622 * generic/tclObj.c:
4623 * generic/tclProc.c:
4624 * generic/tclTest.c:
4625 * generic/tclTrace.c:
4626 * generic/tclUtil.c:
4627 * generic/tclVar.c:
4628
4629 2010-08-21 Donal K. Fellows <[email protected]>
4630
4631 * doc/linsert.n: [Bug 3045123]: Make description of what is actually
4632 happening more accurate.
4633
4634 2010-08-21 Jan Nijtmans <[email protected]>
4635
4636 * tools/genStubs.tcl: [Patch 3034251]: Backport ttkGenStubs.tcl
4637 features to genStubs.tcl, partly: Use void (*reserved$i)(void) = 0
4638 instead of void *reserved$i = NULL for unused stub entries, in case
4639 pointer-to-function and pointer-to-object are different sizes.
4640 * generic/tcl*Decls.h: (regenerated)
4641 * generic/tcl*StubInit.c:(regenerated)
4642
4643 2010-08-20 Jan Nijtmans <[email protected]>
4644
4645 * doc/Method.3: Fix definition of Tcl_MethodType.
4646
4647 2010-08-19 Donal K. Fellows <[email protected]>
4648
4649 * generic/tclTrace.c (TraceExecutionObjCmd, TraceCommandObjCmd)
4650 (TraceVariableObjCmd): [Patch 3048354]: Use memcpy() instead of
4651 strcpy() to avoid buffer overflow; we have the correct length of data
4652 to copy anyway since we've just allocated the target buffer.
4653
4654 2010-08-18 Jan Nijtmans <[email protected]>
4655
4656 * tools/genStubs.tcl: [Patch 3034251]: Backport ttkGenStubs.tcl
4657 features to genStubs.tcl, partly: remove unneeded ifdeffery and put
4658 C++ guard around stubs pointer definition.
4659 * generic/*Decls.h: (regenerated)
4660
4661 2010-08-18 Miguel Sofer <[email protected]>
4662
4663 * generic/tclBasic.c: New redesign of [tailcall]: find
4664 * generic/tclExecute.c: errors early on, so that errorInfo
4665 * generic/tclInt.h: contains the proper info [Bug 3047235]
4666 * generic/tclNamesp.c:
4667
4668 * generic/tclCmdAH.c (TclNRTryObjCmd): [Bug 3046594]: Block
4669 tailcalling out of the body of a non-bc'ed [try].
4670
4671 * generic/tclBasic.c: Redesign of [tailcall] to
4672 * generic/tclCmdAH.c: (a) fix [Bug 3047235]
4673 * generic/tclCompile.h: (b) enable fix for [Bug 3046594]
4674 * generic/tclExecute.c: (c) enable recursive tailcalls
4675 * generic/tclInt.h:
4676 * generic/tclNamesp.c:
4677 * tests/tailcall.test:
4678
4679 2010-08-18 Donal K. Fellows <[email protected]>
4680
4681 * library/safe.tcl (AliasGlob): [Bug 3004191]: Restore safe [glob] to
4682 working condition.
4683
4684 2010-08-15 Donal K. Fellows <[email protected]>
4685
4686 * generic/tclProc.c (ProcWrongNumArgs): [Bug 3045010]: Make the
4687 handling of passing the wrong number of arguments to [apply] somewhat
4688 less verbose when a lambda term is present.
4689
4690 2010-08-14 Jan Nijtmans <[email protected]>
4691
4692 * compat/unicows: Remove completely, see [FRQ 2819611].
4693 * doc/FileSystem.3: [Patch 2994165]: Change signature of
4694 * generic/tcl.decls Tcl_FSGetNativePath and TclpDeleteFile
4695 * generic/tclDecls.h:
4696 * generic/tclIOUtil.c:
4697 * generic/tclStubInit.c:
4698 * generic/tclInt.h:
4699 * unix/tclUnixFCmd.c:
4700 * win/tclWinFCmd.c:
4701 * doc/Hash.3: [Patch 3009403]: Signature of Tcl_GetHashKey,
4702 * generic/tcl.h: Tcl_(Create|Find)HashEntry
4703
4704 2010-08-11 Jeff Hobbs <[email protected]>
4705
4706 * unix/ldAix: Remove ancient (pre-4.2) AIX support
4707 * unix/configure: Regen with ac-2.59
4708 * unix/configure.in, unix/tclConfig.sh.in, unix/Makefile.in:
4709 * unix/tcl.m4 (AIX): Remove the need for ldAIX, replace with
4710 -bexpall/-brtl. Remove TCL_EXP_FILE (export file) and other baggage
4711 that went with it. Remove pre-4 AIX build support.
4712
4713 2010-08-11 Miguel Sofer <[email protected]>
4714
4715 * generic/tclBasic.c (TclNRYieldToObjCmd):
4716 * tests/coroutine.test: Fixed bad copypasta snafu. Thanks to Andy Goth
4717 for finding the bug.
4718
4719 2010-08-10 Jeff Hobbs <[email protected]>
4720
4721 * generic/tclUtil.c (TclByteArrayMatch): Patterns may not be
4722 null-terminated, so account for that.
4723
4724 2010-08-09 Don Porter <[email protected]>
4725
4726 * changes: Updates for 8.6b2 release.
4727
4728 2010-08-04 Jeff Hobbs <[email protected]>
4729
4730 * win/Makefile.in, win/makefile.bc, win/makefile.vc, win/tcl.dsp:
4731 * win/tclWinPipe.c (TclpCreateProcess):
4732 * win/stub16.c (removed): Removed Win9x tclpip8x.dll build and 16-bit
4733 application loader stub support. Win9x is no longer supported.
4734
4735 * win/tclWin32Dll.c (TclWinInit): Hard-enforce Windows 9x as an
4736 unsupported platform with a panic. Code to support it still exists in
4737 other files (to go away in time), but new APIs are being used that
4738 don't exist on Win9x.
4739
4740 * unix/tclUnixFCmd.c: Adjust license header as per
4741 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
4742
4743 * license.terms: Fix DFARs note for number-adjusted rights clause
4744
4745 * win/tclWin32Dll.c (asciiProcs, unicodeProcs):
4746 * win/tclWinLoad.c (TclpDlopen): 'load' use LoadLibraryEx with
4747 * win/tclWinInt.h (TclWinProcs): LOAD_WITH_ALTERED_SEARCH_PATH to
4748 prefer dependent DLLs in same dir as loaded DLL.
4749
4750 * win/Makefile.in (%.${OBJEXT}): better implicit rules support
4751
4752 2010-08-04 Andreas Kupries <[email protected]>
4753
4754 * generic/tclIORChan.c: [Bug 3034840]: Fixed reference counting in
4755 * generic/tclIORTrans.c: InvokeTclMethod and callers.
4756 * tests/ioTrans.test:
4757
4758 2010-08-03 Andreas Kupries <[email protected]>
4759
4760 * tests/var.test (var-19.1): [Bug 3037525]: Added test demonstrating
4761 the local hashtable deletion crash and fix.
4762
4763 * tests/info.test (info-39.1): Added forward copy of test in 8.5
4764 branch about [Bug 2933089]. Should not fail, and doesn't, after
4765 updating the line numbers to the changed position.
4766
4767 2010-08-02 Kevin B. Kenny <[email protected]>
4768
4769 * library/tzdata/America/Bahia_Banderas:
4770 * library/tzdata/Pacific/Chuuk:
4771 * library/tzdata/Pacific/Pohnpei:
4772 * library/tzdata/Africa/Cairo:
4773 * library/tzdata/Europe/Helsinki:
4774 * library/tzdata/Pacific/Ponape:
4775 * library/tzdata/Pacific/Truk:
4776 * library/tzdata/Pacific/Yap: Olson's tzdata2010k.
4777
4778 2010-08-02 Miguel Sofer <[email protected]>
4779
4780 * generic/tclVar.c: Correcting bad port of [Bug 3037525] fix
4781
4782 2010-07-28 Miguel Sofer <[email protected]>
4783
4784 * generic/tclVar.c: [Bug 3037525]: Lose fickle optimisation in
4785 TclDeleteVars (used for runtime-created locals) that caused crash.
4786
4787 2010-07-29 Jan Nijtmans <[email protected]>
4788
4789 * compat/zlib/win32/README.txt: Official build of zlib1.dll 1.2.5 is
4790 * compat/zlib/win32/USAGE.txt: finally available, so put it in.
4791 * compat/zlib/win32/zlib1.dll:
4792
4793 2010-07-25 Donal K. Fellows <[email protected]>
4794
4795 * doc/http.n: Corrected description of location of one of the entries
4796 in the state array.
4797
4798 2010-07-24 Jan Nijtmans <[email protected]>
4799
4800 * generic/tclDecls.h: [Bug 3029891]: Functions that don't belong in
4801 * generic/tclTest.c: the stub table.
4802 * generic/tclBasic.c: From [Bug 3030870] make itcl 3.x built with
4803 pre-8.6 work in 8.6: Relax the relation between Tcl_CallFrame and
4804 CallFrame.
4805
4806 2010-07-16 Donal K. Fellows <[email protected]>
4807
4808 * generic/tclBasic.c: Added more errorCode setting.
4809
4810 2010-07-15 Donal K. Fellows <[email protected]>
4811
4812 * generic/tclExecute.c (TclExecuteByteCode): Ensure that [dict get]
4813 * generic/tclDictObj.c (DictGetCmd): always generates an errorCode on
4814 a failure to look up an entry.
4815
4816 2010-07-11 Pat Thoyts <[email protected]>
4817
4818 * unix/configure: (regenerated)
4819 * unix/configure.in: For the NATIVE_TCLSH variable use the autoconf
4820 * unix/Makefile.in: SC_PROG_TCLSH to try and find a locally installed
4821 native binary. This avoids manually fixing up when cross compiling. If
4822 there is not one, revert to using the build product.
4823
4824 2010-07-02 Don Porter <[email protected]>
4825
4826 * generic/tclInt.decs: Reverted to the original TIP 337
4827 implementation on what to do with the obsolete internal stub for
4828 TclBackgroundException() (eliminate it!)
4829 * generic/tclIntDecls.h: make genstubs
4830 * generic/tclStubInit.c:
4831
4832 2010-07-02 Jan Nijtmans <[email protected]>
4833
4834 * generic/tclInt.decls: [Bug 803489]: Tcl_FindNamespace problem in
4835 * generic/tclIntDecls.h: the Stubs table
4836 * generic/tclStubInit.c:
4837
4838 2010-07-02 Donal K. Fellows <[email protected]>
4839
4840 * generic/tclExecute.c (IllegalExprOperandType): [Bug 3024379]: Made
4841 sure that errors caused by an argument to an operator being outside
4842 the domain of the operator all result in ::errorCode being ARITH
4843 DOMAIN and not NONE.
4844
4845 2010-07-01 Jan Nijtmans <[email protected]>
4846
4847 * win/rules.vc: [Bug 3020677]: wish can't link reg1.2
4848 * tools/checkLibraryDoc.tcl: formatting, spacing, cleanup unused
4849 * tools/eolFix.tcl: variables; no change in generated output
4850 * tools/fix_tommath_h.tcl:
4851 * tools/genStubs.tcl:
4852 * tools/index.tcl:
4853 * tools/man2help2.tcl:
4854 * tools/regexpTestLib.tcl:
4855 * tools/tsdPerf.tcl:
4856 * tools/uniClass.tcl:
4857 * tools/uniParse.tcl:
4858
4859 2010-07-01 Donal K. Fellows <[email protected]>
4860
4861 * doc/mathop.n: [Bug 3023165]: Fix typo that was preventing proper
4862 rendering of the exclusive-or operator.
4863
4864 2010-06-28 Jan Nijtmans <[email protected]>
4865
4866 * generic/tclPosixStr.c: [Bug 3019634]: errno.h and tclWinPort.h have
4867 conflicting definitions. Added messages for ENOTRECOVERABLE, EOTHER,
4868 ECANCELED and EOWNERDEAD, and fixed various typing mistakes in other
4869 messages.
4870
4871 2010-06-25 Reinhard Max <[email protected]>
4872
4873 * tests/socket.test: Prevent a race condition during shutdown of the
4874 remote test server that can cause a hang when the server is being run
4875 in verbose mode.
4876
4877 2010-06-24 Jan Nijtmans <[email protected]>
4878
4879 * win/tclWinPort.h: [Bug 3019634]: errno.h and tclWinPort.h have
4880 conflicting definitions.
4881
4882 ***POTENTIAL INCOMPATIBILITY***
4883 On win32, the correspondence between errno and the related error
4884 message, as handled by Tcl_ErrnoMsg() changes. The error message is
4885 kept the same, but the corresponding errno value might change.
4886
4887 2010-06-22 Donal K. Fellows <[email protected]>
4888
4889 * generic/tclCmdIL.c (Tcl_LsetObjCmd): [Bug 3019351]: Corrected wrong
4890 args message.
4891
4892 2010-06-21 Jan Nijtmans <[email protected]>
4893
4894 * unix/tclLoadDl.c: Eliminate various unnecessary type casts, use
4895 * unix/tclLoadNext.c: function typedefs whenever possible
4896 * unix/tclUnixChan.c:
4897 * unix/tclUnixFile.c:
4898 * unix/tclUnixNotfy.c:
4899 * unix/tclUnixSock.c:
4900 * unix/tclUnixTest.c:
4901 * unix/tclXtTest.c:
4902 * generic/tclZlib.c: Remove hack needed for zlib 1.2.3 on win32
4903
4904 2010-06-18 Donal K. Fellows <[email protected]>
4905
4906 * library/init.tcl (auto_execok): [Bug 3017997]: Add .cmd to the
4907 default list of extensions that we can execute interactively.
4908
4909 2010-06-16 Jan Nijtmans <[email protected]>
4910
4911 * tools/loadICU.tcl: [Bug 3016135]: Traceback using clock format
4912 * library/msgs/he.msg: with locale of he_IL.
4913
4914 * generic/tcl.h: Simplify Tcl_AppInit and *_Init definitions,
4915 * generic/tclInt.h: spacing. Change TclpThreadCreate and
4916 * generic/tcl.decls: Tcl_CreateThread signature, making clear that
4917 * generic/tclDecls.h: "proc" is a function pointer, as in all other
4918 * generic/tclEvent.c: "proc" function parameters.
4919 * generic/tclTestProcBodyObj.c:
4920 * win/tclWinThrd.c:
4921 * unix/tclUnixThrd.c:
4922 * doc/Thread.3:
4923 * doc/Class.3: Fix Tcl_ObjectMetadataType definition.
4924
4925 2010-06-14 Jan Nijtmans <[email protected]>
4926
4927 * unix/Makefile.in: Fix compilation of xttest with 8.6 changes
4928 * unix/tclXtNotify.c:
4929 * unix/tclXtTest.c:
4930 * generic/tclPipe.c: Fix gcc warning (with -fstrict-aliasing=2)
4931 * library/auto.tcl: Spacing and style fixes.
4932 * library/history.tcl:
4933 * library/init.tcl:
4934 * library/package.tcl:
4935 * library/safe.tcl:
4936 * library/tm.tcl:
4937
4938 2010-06-13 Donal K. Fellows <[email protected]>
4939
4940 * tools/tcltk-man2html.tcl (make-man-pages): [Bug 3015327]: Make the
4941 title of a manual page be stored relative to its resulting directory
4942 name as well as its source filename. This was caused by both Tcl and a
4943 contributed package ([incr Tcl]) defining an Object.3. Also corrected
4944 the joining of strings in titles to avoid extra braces.
4945
4946 2010-06-09 Andreas Kupries <[email protected]>
4947
4948 * library/platform/platform.tcl: Added OSX Intel 64bit
4949 * library/platform/pkgIndex.tcl: Package updated to version 1.0.9.
4950 * unix/Makefile.in:
4951 * win/Makefile.in:
4952
4953 2010-06-09 Jan Nijtmans <[email protected]>
4954
4955 * tools/tsdPerf.c: Fix export of symbol Tsdperf_Init, when using
4956 -fvisibility=hidden. Make two functions static, eliminate some
4957 unnecessary type casts.
4958 * tools/configure.in: Update to Tcl 8.6
4959 * tools/configure: (regenerated)
4960 * tools/.cvsignore new file
4961
4962 2010-06-07 Alexandre Ferrieux <[email protected]>
4963
4964 * generic/tclExecute.c: Ensure proper reset of [info errorstack] even
4965 * generic/tclNamesp.c: when compiling constant expr's with errors.
4966
4967 2010-06-05 Miguel Sofer <[email protected]>
4968
4969 * generic/tclBasic.c: [Bug 3008307]: make callerPtr chains be
4970 * generic/tclExecute.c: traversable accross coro boundaries. Add the
4971 special coroutine CallFrame (partially reverting commit of
4972 2009-12-10), as it is needed for coroutines that do not push a CF, eg,
4973 those with [eval] as command. Thanks to Colin McCormack (coldstore)
4974 and Alexandre Ferrieux for the hard work on this.
4975
4976 2010-06-03 Alexandre Ferrieux <[email protected]>
4977
4978 * generic/tclNamesp.c: Safer (and faster) computation of [uplevel]
4979 * tests/error.test: offsets in TIP 348. Toplevel offsets no longer
4980 * tests/result.test: overestimated.
4981
4982 2010-06-02 Jan Nijtmans <[email protected]>
4983
4984 * generic/tclOO.h: BUILD_tcloo is never defined (leftover)
4985 * win/makefile.bc: Don't set BUILD_tcloo (leftover)
4986 See also entry below: 2008-06-01 Joe Mistachkin
4987
4988 2010-06-01 Alexandre Ferrieux <[email protected]>
4989
4990 * generic/tclNamesp.c: Fix computation of [uplevel] offsets in TIP 348
4991 * tests/error.test: Only depend on callerPtr chaining now.
4992 * tests/result.test: Needed for upcoming coro patch.
4993
4994 2010-05-31 Jan Nijtmans <[email protected]>
4995
4996 * generic/tclVar.c: Eliminate some casts to (Tcl_HashTable *)
4997 * generic/tclExecute.c:
4998 * tests/fileSystem.test: Fix filesystem-5.1 test failure on CYGWIN
4999
5000 2010-05-28 Jan Nijtmans <[email protected]>
5001
5002 * generic/tclInt.h: [Patch 3008541]: Order of TIP #348 fields in
5003 Interp structure
5004
5005 2010-05-28 Donal K. Fellows <[email protected]>
5006
5007 * generic/tclCompCmdsSZ.c (IssueTryFinallyInstructions): [3007374]:
5008 Corrected error in handling of catch contexts to prevent crash with
5009 chained handlers.
5010
5011 * generic/tclExecute.c (TclExecuteByteCode): Restore correct operation
5012 of instruction-level execution tracing (had been broken by NRE).
5013
5014 2010-05-27 Jan Nijtmans <[email protected]>
5015
5016 * library/opt/optParse.tcl: Don't generate spaces at the end of a
5017 * library/opt/pkgIndex.tcl: line, eliminate ';' at line end, bump to
5018 * tools/uniParse.tcl: v0.4.6
5019 * generic/tclUniData.c:
5020 * tests/opt.test:
5021 * tests/safe.test:
5022
5023 2010-05-21 Jan Nijtmans <[email protected]>
5024
5025 * tools/installData.tcl: Make sure that copyDir only receives
5026 normalized paths, otherwise it might result in a crash on CYGWIN.
5027 Restyle according to the Tcl style guide.
5028 * generic/tclStrToD.c: [Bug 3005233]: Fix for build on OpenBSD vax
5029
5030 2010-05-19 Alexandre Ferrieux <[email protected]>
5031
5032 * tests/dict.test: Add missing tests for [Bug 3004007], fixed under
5033 the radar on 2010-02-24 (dkf): EIAS violation in list-dict conversions
5034
5035 2010-05-19 Jan Nijtmans <[email protected]>
5036
5037 * generic/regcomp.c: Don't use arrays of length 1, just use a
5038 * generic/tclFileName.c: single element then, it makes code more
5039 * generic/tclLoad.c: readable. (Here it even prevents a type cast)
5040
5041 2010-05-17 Jan Nijtmans <[email protected]>
5042
5043 * generic/tclStrToD.c: [Bug 2996549]: Failure in expr.test on Win32
5044
5045 2010-05-17 Donal K. Fellows <[email protected]>
5046
5047 * generic/tclCmdIL.c (TclInfoFrame): Change this code to use
5048 Tcl_GetCommandFullName rather than rolling its own. Discovered during
5049 the hunting of [Bug 3001438] but unlikely to be a fix.
5050
5051 2010-05-11 Jan Nijtmans <[email protected]>
5052
5053 * win/tclWinConsole.c: [Patch 2997087]: Unnecessary type casts.
5054 * win/tclWinDde.c:
5055 * win/tclWinLoad.c:
5056 * win/tclWinNotify.c:
5057 * win/tclWinSerial.c:
5058 * win/tclWinSock.c:
5059 * win/tclWinTime.c:
5060 * win/tclWinPort.h: Don't duplicate CYGWIN timezone #define from
5061 tclPort.h
5062
5063 2010-05-07 Andreas Kupries <[email protected]>
5064
5065 * library/platform/platform.tcl: Fix cpu name for Solaris/Intel 64bit.
5066 * library/platform/pkgIndex.tcl: Package updated to version 1.0.8.
5067 * unix/Makefile.in:
5068 * win/Makefile.in:
5069
5070 2010-05-06 Jan Nijtmans <[email protected]>
5071
5072 * generic/tclPkg.c: Unnecessary type casts, see [Patch 2997087]
5073
5074 2010-05-04 Jan Nijtmans <[email protected]>
5075
5076 * win/tclWinNotify.c: TCHAR-related fixes, making those two files
5077 * win/tclWinSock.c: compile fine when TCHAR != char. Please see
5078 comments in [FRQ 2965056] (2965056-1.patch).
5079
5080 2010-05-03 Jan Nijtmans <[email protected]>
5081
5082 * generic/tclIORChan.c: Use "tclIO.h" and "tclTomMathDecls.h"
5083 * generic/tclIORTrans.c: everywhere
5084 * generic/tclTomMath.h:
5085 * tools/fix_tommath_h.tcl:
5086 * libtommath/tommath.h: Formatting (# should always be first char on
5087 line)
5088 * win/tclAppInit.c: For MINGW/CYGWIN, use GetCommandLineA
5089 explicitly.
5090 * unix/.cvsignore: Add pkg, *.dll
5091
5092 * libtommath/tommath.h: CONSTify various useful internal
5093 * libtommath/bn_mp_cmp_d.c: functions (TclBignumToDouble, TclCeil,
5094 * libtommath/bn_mp_cmp_mag.c: TclFloor), and related tommath functions
5095 * libtommath/bn_mp_cmp.c:
5096 * libtommath/bn_mp_copy.c:
5097 * libtommath/bn_mp_count_bits.c:
5098 * libtommath/bn_mp_div_2d.c:
5099 * libtommath/bn_mp_mod_2d.c:
5100 * libtommath/bn_mp_mul_2d.c:
5101 * libtommath/bn_mp_neg.c:
5102 * generic/tclBasic.c: Handle TODO: const correctness ?
5103 * generic/tclInt.h:
5104 * generic/tclStrToD.c:
5105 * generic/tclTomMath.decls:
5106 * generic/tclTomMath.h:
5107 * generic/tclTomMathDecls.h:
5108
5109 2010-04-30 Don Porter <[email protected]>
5110
5111 * generic/tcl.h: Bump patchlevel to 8.6b1.2 to distinguish
5112 * library/init.tcl: CVS snapshots from earlier snapshots as well
5113 * unix/configure.in: as the 8.6b1 and 8.6b2 releases.
5114 * win/configure.in:
5115
5116 * unix/configure: autoconf-2.59
5117 * win/configure:
5118
5119 * generic/tclBinary.c (TclAppendBytesToByteArray): Add comments
5120 * generic/tclInt.h (TclAppendBytesToByteArray): placing overflow
5121 protection responsibility on caller. Convert "len" argument to signed
5122 int which any value already vetted for overflow issues will fit into.
5123 * generic/tclStringObj.c: Update caller; standardize panic msg.
5124
5125 * generic/tclBinary.c (UpdateStringOfByteArray): [Bug 2994924]: Add
5126 panic when the generated string representation would grow beyond Tcl's
5127 size limits.
5128
5129 2010-04-30 Donal K. Fellows <[email protected]>
5130
5131 * generic/tclBinary.c (TclAppendBytesToByteArray): Add extra armour
5132 against buffer overflows.
5133
5134 * generic/tclBasic.c (NRInterpCoroutine): Corrected handling of
5135 * tests/coroutine.test (coroutine-6.4): arguments to deal with
5136 trickier cases.
5137
5138 2010-04-30 Miguel Sofer <[email protected]>
5139
5140 * tests/coroutine.test: testing coroutine arguments after [yield]:
5141 check that only 0/1 allowed
5142
5143 2010-04-30 Donal K. Fellows <[email protected]>
5144
5145 * generic/tclBasic.c (NRInterpCoroutine): Corrected handling of
5146 arguments to deal with trickier cases.
5147
5148 * generic/tclCompCmds.c (TclCompileVariableCmd): Slightly tighter
5149 issuing of instructions.
5150
5151 * generic/tclExecute.c (TclExecuteByteCode): Add peephole optimization
5152 of the fact that INST_DICT_FIRST and INST_DICT_NEXT always have a
5153 conditional jump afterwards.
5154
5155 * generic/tclBasic.c (TclNRYieldObjCmd, TclNRYieldmObjCmd)
5156 (NRInterpCoroutine): Replace magic values for formal argument counts
5157 for coroutine command implementations with #defines, for an increase
5158 in readability.
5159
5160 2010-04-30 Jan Nijtmans <[email protected]>
5161
5162 * generic/tclMain.c: Unnecessary TCL_STORAGE_CLASS re-definition. It
5163 was used for an ancient dummy reference to Tcl_LinkVar(), but that's
5164 already gone since 2002-05-29.
5165
5166 2010-04-29 Miguel Sofer <[email protected]>
5167
5168 * generic/tclCompExpr.c: Slight change in the literal sharing
5169 * generic/tclCompile.c: mechanism to avoid shimmering of
5170 * generic/tclCompile.h: command names.
5171 * generic/tclLiteral.c:
5172
5173 2010-04-29 Andreas Kupries <[email protected]>
5174
5175 * library/platform/platform.tcl: Another stab at getting the /lib,
5176 * library/platform/pkgIndex.tcl: /lib64 difference right for linux.
5177 * unix/Makefile.in: Package updated to version 1.0.7.
5178 * win/Makefile.in:
5179
5180 2010-04-29 Kevin B. Kenny <[email protected]>
5181
5182 * library/tzdata/Antarctica/Macquarie:
5183 * library/tzdata/Africa/Casablanca:
5184 * library/tzdata/Africa/Tunis:
5185 * library/tzdata/America/Santiago:
5186 * library/tzdata/America/Argentina/San_Luis:
5187 * library/tzdata/Antarctica/Casey:
5188 * library/tzdata/Antarctica/Davis:
5189 * library/tzdata/Asia/Anadyr:
5190 * library/tzdata/Asia/Damascus:
5191 * library/tzdata/Asia/Dhaka:
5192 * library/tzdata/Asia/Gaza:
5193 * library/tzdata/Asia/Kamchatka:
5194 * library/tzdata/Asia/Karachi:
5195 * library/tzdata/Asia/Taipei:
5196 * library/tzdata/Europe/Samara:
5197 * library/tzdata/Pacific/Apia:
5198 * library/tzdata/Pacific/Easter:
5199 * library/tzdata/Pacific/Fiji: Olson's tzdata2010i.
5200
5201 2010-04-29 Donal K. Fellows <[email protected]>
5202
5203 * generic/tclBinary.c (TclAppendBytesToByteArray): [Bug 2992970]: Make
5204 * generic/tclStringObj.c (Tcl_AppendObjToObj): an append of a byte
5205 array to another into an efficent operation. The problem was the (lack
5206 of) a proper growth management strategy for the byte array.
5207
5208 2010-04-29 Jan Nijtmans <[email protected]>
5209
5210 * compat/dirent2.h: Include "tcl.h", not <tcl.h>, like everywhere
5211 * compat/dlfcn.h: else, to ensure that the version in the Tcl
5212 * compat/stdlib.h: distribution is used, not some version from
5213 * compat/string.h: somewhere else.
5214 * compat/unistd.h:
5215
5216 2010-04-28 Jan Nijtmans <[email protected]>
5217
5218 * win/Makefile.in: Remove unused @MAN2TCLFLAGS@
5219 * win/tclWinPort.h: Move <limits.h> include from tclInt.h to
5220 * generic/tclInt.h: tclWinPort.h, and eliminate unneeded
5221 * generic/tclEnv.c: <stdlib.h>, <stdio.h> and <string.h>, which
5222 are already in tclInt.h
5223 * generic/regcustom.h: Move "tclInt.h" from regcustom.h up to
5224 * generic/regex.h: regex.h.
5225 * generic/tclAlloc.c: Unneeded <stdio.h> include.
5226 * generic/tclExecute.c: Fix gcc warning: comparison between signed and
5227 unsigned.
5228
5229 2010-04-28 Donal K. Fellows <[email protected]>
5230
5231 * generic/tclInt.h (TclIsVarDirectUnsettable): Corrected flags so that
5232 deletion of traces is not optimized out...
5233
5234 * generic/tclExecute.c (ExecuteExtendedBinaryMathOp)
5235 (CompareTwoNumbers,ExecuteExtendedUnaryMathOp,TclExecuteByteCode):
5236 [Patch 2981677]: Move the less common arithmetic operations (i.e.,
5237 exponentiation and operations on non-longs) out of TEBC for a big drop
5238 in the overall size of the stack frame for most code. Net effect on
5239 speed is minimal (slightly faster overall in tclbench). Also extended
5240 the number of places where TRESULT handling is replaced with a jump to
5241 dedicated code.
5242
5243 2010-04-27 Donal K. Fellows <[email protected]>
5244
5245 * generic/tclExecute.c (TclExecuteByteCode): Rearrange location of an
5246 assignment to shorten the object code.
5247
5248 2010-04-27 Jan Nijtmans <[email protected]>
5249
5250 * generic/tclIOUtil.c (Tcl_FSGetNativePath): [Bug 2992292]:
5251 tclIOUtil.c assignment type mismatch compiler warning
5252 * generic/regguts.h: If tclInt.h or tclPort.h is already
5253 * generic/tclBasic.c: included, don't include <limits.h>
5254 * generic/tclExecute.c: again. Follow-up to [Bug 2991415]:
5255 * generic/tclIORChan.c: tclport.h #included before limits.h
5256 * generic/tclIORTrans.c: See comments in [Bug 2991415]
5257 * generic/tclObj.c:
5258 * generic/tclOOInt.h:
5259 * generic/tclStrToD.c:
5260 * generic/tclTomMath.h:
5261 * generic/tclTomMathInterface.c:
5262 * generic/tclUtil.c:
5263 * compat/strtod.c:
5264 * compat/strtol.c:
5265
5266 2010-04-27 Kevin B. Kenny <[email protected]>
5267
5268 * unix/tclLoadDl.c (FindSymbol): [Bug 2992295]: Simplified the logic
5269 so that the casts added in Donal Fellows's change for the same bug are
5270 no longer necessary.
5271
5272 2010-04-26 Donal K. Fellows <[email protected]>
5273
5274 * unix/tclLoadDl.c (FindSymbol): [Bug 2992295]: Added an explicit cast
5275 because auto-casting between function and non-function types is never
5276 naturally warning-free.
5277
5278 * generic/tclStubInit.c: Add a small amount of gcc-isms (with #ifdef
5279 * generic/tclOOStubInit.c: guards) to ensure that warnings are issued
5280 when these files are older than the various *.decls files.
5281
5282 2010-04-25 Miguel Sofer <[email protected]>
5283
5284 * generic/tclBasic.c: Add unsupported [yieldm] command. Credit
5285 * generic/tclInt.h: Lars Hellstrom for the basic idea.
5286
5287 2010-04-24 Miguel Sofer <[email protected]>
5288
5289 * generic/tclBasic.c: Modify api of TclSpliceTailcall() to fix
5290 * generic/tclExecute.c: [yieldTo], which had not survived the latest
5291 * generic/tclInt.h: mods to tailcall. Thanks kbk for detecting
5292 the problem.
5293
5294 2010-04-23 Jan Nijtmans <[email protected]>
5295
5296 * unix/tclUnixPort.h: [Bug 2991415]: tclport.h #included before
5297 limits.h
5298
5299 2010-04-22 Jan Nijtmans <[email protected]>
5300
5301 * generic/tclPlatDecls.h: Move TCHAR fallback typedef from tcl.h to
5302 * generic/tcl.h: tclPlatDecls.h (as suggested by dgp)
5303 * generic/tclInt.h: fix typo
5304 * generic/tclIOUtil.c: Eliminate various unnecessary
5305 * unix/tclUnixFile.c: type casts.
5306 * unix/tclUnixPipe.c:
5307 * win/tclWinChan.c:
5308 * win/tclWinFCmd.c:
5309 * win/tclWinFile.c:
5310 * win/tclWinLoad.c:
5311 * win/tclWinPipe.c:
5312
5313 2010-04-20 Jan Nijtmans <[email protected]>
5314
5315 * generic/tclTest.c: Use function prototypes from the FS API.
5316 * compat/zlib/*: Upgrade to zlib 1.2.5
5317
5318 2010-04-19 Donal K. Fellows <[email protected]>
5319
5320 * generic/tclExecute.c (TclExecuteByteCode): Improve commenting and
5321 reduce indentation for the Invocation Block.
5322
5323 2010-04-18 Donal K. Fellows <[email protected]>
5324
5325 * doc/unset.n: [Bug 2988940]: Fix typo.
5326
5327 2010-04-15 Jan Nijtmans <[email protected]>
5328
5329 * win/tclWinPort.h: Move inclusion of <tchar.h> from
5330 * generic/tcl.h: tclPlatDecls.h to tclWinPort.h, where it
5331 * generic/tclPlatDecls.h: belongs. Add fallback in tcl.h, so TCHAR is
5332 available in win32 always.
5333
5334 2010-04-15 Donal K. Fellows <[email protected]>
5335
5336 * doc/try.n: [Bug 2987551]: Fix typo.
5337
5338 2010-04-14 Andreas Kupries <[email protected]>
5339
5340 * library/platform/platform.tcl: Linux platform identification:
5341 * library/platform/pkgIndex.tcl: Check /lib64 for existence of files
5342 * unix/Makefile.in: matching libc* before accepting it as base
5343 * win/Makefile.in: directory. This can happen on weirdly installed
5344 32bit systems which have an empty or partially filled /lib64 without
5345 an actual libc. Bumped to version 1.0.6.
5346
5347 2010-04-13 Jan Nijtmans <[email protected]>
5348
5349 * win/tclWinPort.h: Fix [Patch 2986105]: conditionally defining
5350 * win/tclWinFile.c: strcasecmp/strncasecmp
5351 * win/tclWinLoad.c: Fix gcc warning: comparison of unsigned expression
5352 >= 0 is always true
5353
5354 2010-04-08 Donal K. Fellows <[email protected]>
5355
5356 * generic/tclCompCmdsSZ.c (TclSubstCompile): If the first token does
5357 not result in a *guaranteed* push of a Tcl_Obj on the stack, we must
5358 push an empty object. Otherwise it is possible to get to a 'concat1'
5359 or 'done' without enough values on the stack, resulting in a crash.
5360 Thanks to Joe Mistachkin for identifying a script that could trigger
5361 this case.
5362
5363 2010-04-07 Donal K. Fellows <[email protected]>
5364
5365 * doc/catch.n, doc/info.n, doc/return.n: Formatting.
5366
5367 2010-04-06 Donal K. Fellows <[email protected]>
5368
5369 * doc/Load.3: Minor corrections of formatting and cross links.
5370
5371 2010-04-06 Jan Nijtmans <[email protected]>
5372
5373 * win/configure: (regenerate with autoconf-2.59)
5374 * unix/configure:
5375 * unix/installManPage: [Bug 2982540]: configure and install* script
5376 * unix/install-sh: files should always have LF line ending.
5377 * doc/Load.3: Fix signature of Tcl_LoadFile in documentation.
5378
5379 2010-04-05 Alexandre Ferrieux <[email protected]>
5380
5381 TIP #348 IMPLEMENTATION
5382
5383 * generic/tclBasic.c: [Patch 2868499]: Substituted error stack
5384 * generic/tclCmdIL.c:
5385 * generic/tclInt.h:
5386 * generic/tclNamesp.c:
5387 * generic/tclResult.c:
5388 * doc/catch.n:
5389 * doc/info.n:
5390 * doc/return.n:
5391 * tests/cmdMZ.test:
5392 * tests/error.test:
5393 * tests/execute.test:
5394 * tests/info.test:
5395 * tests/init.test:
5396 * tests/result.test:
5397
5398 2010-04-05 Donal K. Fellows <[email protected]>
5399
5400 * unix/tcl.m4 (SC_ENABLE_THREADS): Flip the default for whether to
5401 * win/tcl.m4 (SC_ENABLE_THREADS): build in threaded mode. Part of
5402 * win/rules.vc: TIP #364.
5403
5404 * unix/tclLoadDyld.c (FindSymbol): Better human-readable error message
5405 generation to match code in tclLoadDl.c.
5406
5407 2010-04-04 Donal K. Fellows <[email protected]>
5408
5409 * generic/tclIOUtil.c, unix/tclLoadDl.c: Minor changes to enforce
5410 Engineering Manual style rules.
5411
5412 * doc/FileSystem.3, doc/Load.3: Documentation for TIP#357.
5413
5414 * macosx/tclMacOSXBundle.c (OpenResourceMap): [Bug 2981528]: Only
5415 define this function when HAVE_COREFOUNDATION is defined.
5416
5417 2010-04-02 Jan Nijtmans <[email protected]>
5418
5419 * generic/tcl.decls (Tcl_LoadFile): Add missing "const" in signature,
5420 * generic/tclIOUtil.c (Tcl_LoadFile): and some formatting fixes
5421 * generic/tclDecls.h: (regenerated)
5422
5423 2010-04-02 Donal K. Fellows <[email protected]>
5424
5425 * generic/tclIOUtil.c (Tcl_LoadFile): Corrections to previous commit
5426 * unix/tclLoadDyld.c (TclpDlopen): to make it build on OSX.
5427
5428 2010-04-02 Kevin B. Kenny <[email protected]>
5429
5430 TIP #357 IMPLEMENTATION
5431 TIP #362 IMPLEMENTATION
5432
5433 * generic/tclStrToD.c: [Bug 2952904]: Defer creation of the smallest
5434 floating point number until it is actually used. (This change avoids a
5435 bogus syslog message regarding a 'floating point software assist
5436 fault' on SGI systems.)
5437
5438 * library/reg/pkgIndex.tcl: [TIP #362]: Fixed first round of bugs
5439 * tests/registry.test: resulting from the recent commits of
5440 * win/tclWinReg.c: changes in support of the referenced
5441 TIP.
5442
5443 * generic/tcl.decls: [TIP #357]: First round of changes
5444 * generic/tclDecls.h: to export Tcl_LoadFile,
5445 * generic/tclIOUtil.c: Tcl_FindSymbol, and Tcl_FSUnloadFile
5446 * generic/tclInt.h: to the public API.
5447 * generic/tclLoad.c:
5448 * generic/tclLoadNone.c:
5449 * generic/tclStubInit.c:
5450 * tests/fileSystem.test:
5451 * tests/load.test:
5452 * tests/unload.test:
5453 * unix/tclLoadDl.c:
5454 * unix/tclLoadDyld.c:
5455 * unix/tclLoadNext.c:
5456 * unix/tclLoadOSF.c:
5457 * unix/tclLoadShl.c:
5458 * unix/tclUnixPipe.c:
5459 * win/Makefile.in:
5460 * win/tclWinLoad.c:
5461
5462 2010-03-31 Donal K. Fellows <[email protected]>
5463
5464 * doc/registry.n: Added missing documentation of TIP#362 flags.
5465
5466 * doc/package.n: [Bug 2980210]: Document the arguments taken by
5467 the [package present] command correctly.
5468
5469 * doc/Thread.3: Added some better documentation of how to create and
5470 use a thread using the C-level thread API, based on realization that
5471 no such tutorial appeared to exist.
5472
5473 2010-03-31 Jan Nijtmans <[email protected]>
5474
5475 * test/cmdMZ.test: [FRQ 2974744]: share exception codes (ObjType?):
5476 * test/error.test: Revised test cases, making sure that abbreviated
5477 * test/proc-old.test: codes are checked resulting in an error, and
5478 checking for the exact error message.
5479
5480 2010-03-30 Andreas Kupries <[email protected]>
5481
5482 * generic/tclIORChan.c (ReflectClose, ReflectInput, ReflectOutput,
5483 (ReflectSeekWide, ReflectWatch, ReflectBlock, ReflectSetOption,
5484 (ReflectGetOption, ForwardProc): [Bug 2978773]: Preserve
5485 ReflectedChannel* structures across handler invocations, to avoid
5486 crashes when the handler implementation induces nested callbacks and
5487 destruction of the channel deep inside such a nesting.
5488
5489 2010-03-30 Don Porter <[email protected]>
5490
5491 * generic/tclObj.c (Tcl_GetCommandFromObj): [Bug 2979402]: Reorder
5492 the validity tests on internal rep of a "cmdName" value to avoid
5493 invalid reads reported by valgrind.
5494
5495 2010-03-30 Jan Nijtmans <[email protected]>
5496
5497 * generic/tclIndexObj: [FRQ 2974744]: share exception codes
5498 * generic/tclResult.c: further optimization, making use of indexType.
5499 * generic/tclZlib.c: [Bug 2979399]: uninitialized value troubles
5500
5501 2010-03-30 Donal K. Fellows <[email protected]>
5502
5503 TIP #362 IMPLEMENTATION
5504
5505 * win/tclWinReg.c: [Patch 2960976]: Apply patch from Damon Courtney to
5506 * tests/registry.test: allow the registry command to be told to work
5507 * win/Makefile.in: with both 32-bit and 64-bit registries. Bump
5508 * win/configure.in: version of registry package to 1.3.
5509 * win/makefile.bc:
5510 * win/makefile.vc:
5511 * win/configure: autoconf-2.59
5512
5513 2010-03-29 Jan Nijtmans <[email protected]>
5514
5515 * unix/tcl.m4: Only test for -visibility=hidden with gcc
5516 (Second remark in [Bug 2976508])
5517 * unix/configure: regen
5518
5519 2010-03-29 Don Porter <[email protected]>
5520
5521 * generic/tclStringObj.c: Fix array overrun in test format-1.12
5522 caught by valgrind testing.
5523
5524 2010-03-27 Jan Nijtmans <[email protected]>
5525
5526 * generic/tclInt.h: [FRQ 2974744]: share exception codes
5527 * generic/tclResult.c: (ObjType?)
5528 * generic/tclCmdMZ.c:
5529 * generic/tclCompCmdsSZ.c:
5530
5531 2010-03-26 Jan Nijtmans <[email protected]>
5532
5533 * generic/tclExecute.c: [Bug 2976508]: Tcl HEAD fails on HP-UX
5534
5535 2010-03-25 Donal K. Fellows <[email protected]>
5536
5537 * unix/tclUnixFCmd.c (TclUnixCopyFile): [Bug 2976504]: Corrected
5538 number of arguments to fstatfs() call.
5539
5540 * macosx/tclMacOSXBundle.c, macosx/tclMacOSXFCmd.c:
5541 * macosx/tclMacOSXNotify.c: Reduce the level of ifdeffery in the
5542 functions of these files to improve readability. They need to be
5543 audited for whether complexity can be removed based on the minimum
5544 supported version of OSX, but that requires a real expert.
5545
5546 2010-03-24 Don Porter <[email protected]>
5547
5548 * generic/tclResult.c: [Bug 2383005]: Revise [return -errorcode] so
5549 * tests/result.test: that it rejects illegal non-list values.
5550
5551 2010-03-24 Donal K. Fellows <[email protected]>
5552
5553 * generic/tclOOInfo.c (InfoObjectMethodTypeCmd)
5554 (InfoClassMethodTypeCmd): Added introspection of method types so that
5555 it is possible to find this info out without using errors.
5556 * generic/tclOOMethod.c (procMethodType): Now that introspection can
5557 reveal the name of method types, regularize the name of normal methods
5558 to be the name of the definition type used to create them.
5559
5560 * tests/async.test (async-4.*): Reduce obscurity of these tests by
5561 putting the bulk of the code for them inside the test body with the
5562 help of [apply].
5563
5564 * generic/tclCmdMZ.c (TryPostBody, TryPostHandler): Make sure that the
5565 [try] command does not trap unwinding due to limits.
5566
5567 2010-03-23 Don Porter <[email protected]>
5568
5569 * generic/tclCmdMZ.c: [Bug 2973361]: Revised fix for computing
5570 indices of script arguments to [try].
5571
5572 2010-03-23 Jan Nijtmans <[email protected]>
5573
5574 * generic/tclCmdMZ.c: Make error message in "try" implementation
5575 * generic/tclCompCmdsSZ.c: exactly the same as the one in "return"
5576 * tests/error.test:
5577 * libtommath/mtests/mpi.c: Single "const" addition
5578
5579 2010-03-22 Don Porter <[email protected]>
5580
5581 * generic/tclCmdMZ.c: [Bug 2973361]: Compute the correct integer
5582 values to identify the argument indices of the various script
5583 arguments to [try]. Passing in -1 led to invalid memory reads.
5584
5585 2010-03-20 Donal K. Fellows <[email protected]>
5586
5587 * doc/exec.n: Make it a bit clearer that there is an option to run a
5588 pipeline in the background.
5589
5590 * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Lift the restriction
5591 * generic/tclIO.c (TclCopyChannel, CopyData): on the [fcopy] command
5592 * generic/tclIO.h (CopyState): that forced it to only
5593 copy up to 2GB per script-level callback. Now it is anything that can
5594 fit in a (signed) 64-bit integer. Problem identified by Frederic
5595 Bonnet on comp.lang.tcl. Note that individual low-level reads and
5596 writes are still smaller as the optimal buffer size is smaller.
5597
5598 2010-03-20 Jan Nijtmans <[email protected]>
5599
5600 * win/stub16.c: Don't hide that we use the ASCII API here.
5601 (does someone still use that?)
5602 * win/tclWinPipe.c: 2 unnecessary type casts.
5603
5604 2010-03-19 Donal K. Fellows <[email protected]>
5605
5606 * generic/tclCompCmdsSZ.c (TclCompileThrowCmd): Added compilation for
5607 the [throw] command.
5608
5609 2010-03-18 Don Porter <[email protected]>
5610
5611 * generic/tclListObj.c: [Bug 2971669]: Prevent in overflow trouble in
5612 * generic/tclTestObj.c: ListObjReplace operations. Thanks to kbk for
5613 * tests/listObj.test: fix and test.
5614
5615 2010-03-18 Donal K. Fellows <[email protected]>
5616
5617 * generic/tclCompCmdsSZ.c (IssueTryFinallyInstructions):
5618 [Bug 2971921]: Corrected jump so that it doesn't skip into the middle
5619 of an instruction! Tightened the instruction issuing. Moved endCatch
5620 calls closer to their point that they guard, ensuring correct ordering
5621 of result values.
5622
5623 2010-03-17 Andreas Kupries <[email protected]>
5624
5625 * generic/tclIORTrans.c (ReflectInput, ReflectOutput)
5626 (ReflectSeekWide): [Bug 2921116]: Added missing TclEventuallyFree
5627 calls for preserved ReflectedTransform* structures. Reworked
5628 ReflectInput to preserve the structure for its whole life, not only in
5629 InvokeTclMethod.
5630
5631 * generic/tclIO.c (Tcl_GetsObj): [Bug 2921116]: Regenerate topChan,
5632 may have been changed by a self-modifying transformation.
5633
5634 * tests/ioTrans/test (iortrans-4.8, iortrans-4.9, iortrans-5.11)
5635 (iortrans-7.4, iortrans-8.3): New test cases.
5636
5637 2010-03-16 Jan Nijtmans <[email protected]>
5638
5639 * compat/zlib/*: Upgrade zlib to version 1.2.4.
5640 * win/makefile.vc:
5641 * unix/Makefile.in:
5642 * win/tclWinChan.c: Don't cast away "const" without reason.
5643
5644 2010-03-12 Jan Nijtmans <[email protected]>
5645
5646 * win/makefile.vc: [Bug 2967340]: Static build was failing.
5647 * win/.cvsignore:
5648
5649 2010-03-10 Jan Nijtmans <[email protected]>
5650
5651 * generic/tclTest.c: Remove unnecessary '&' decoration for
5652 * generic/tclIOUtil.c: function pointers
5653 * win/tclWin32Dll.c: Double declaration of TclNativeDupInternalRep
5654 * unix/tclIOUtil.c:
5655 * unix/dltest/.cvsignore: Ignore *.so here
5656
5657 2010-03-09 Andreas Kupries <[email protected]>
5658
5659 * generic/tclIORChan.c: [Bug 2936225]: Thanks to Alexandre Ferrieux
5660 * doc/refchan.n: <[email protected]> for debugging and
5661 * tests/ioCmd.test: fixing the problem. It is the write-side
5662 equivalent to the bug fixed 2009-08-06.
5663
5664 2010-03-09 Don Porter <[email protected]>
5665
5666 * library/tzdata/America/Matamoros: New locale
5667 * library/tzdata/America/Ojinaga: New locale
5668 * library/tzdata/America/Santa_Isabel: New locale
5669 * library/tzdata/America/Asuncion:
5670 * library/tzdata/America/Tijuana:
5671 * library/tzdata/Antarctica/Casey:
5672 * library/tzdata/Antarctica/Davis:
5673 * library/tzdata/Antarctica/Mawson:
5674 * library/tzdata/Asia/Dhaka:
5675 * library/tzdata/Pacific/Fiji:
5676 Olson tzdata2010c.
5677
5678 2010-03-07 Jan Nijtmans <[email protected]>
5679
5680 * generic/tclTest.c: Test that tclOO stubs are present in stub
5681 library
5682 * generic/tclOOMethod.c: Applied missing part of [Patch 2961556]
5683 * win/tclWinInt.h: Change all tclWinProcs signatures to use
5684 * win/tclWin32Dll.c: TCHAR* in stead of WCHAR*. This is meant
5685 * win/tclWinDde.c: as preparation to make [Enh 2965056]
5686 * win/tclWinFCmd.c: possible at all.
5687 * win/tclWinFile.c:
5688 * win/tclWinPipe.c:
5689 * win/tclWinSock.c:
5690
5691 2010-03-06 Jan Nijtmans <[email protected]>
5692
5693 * generic/tclStubLib.c: Remove presence of tclTomMathStubsPtr here.
5694 * generic/tclTest.c: Test that tommath stubs are present in stub
5695 library.
5696
5697 2010-03-05 Donal K. Fellows <[email protected]>
5698
5699 * generic/tclIORTrans.c (ForwardProc): [Bug 2964425]: When cleaning
5700 the stables, it is sometimes necessary to do more than the minimum. In
5701 this case, rationalizing the variables for a forwarded limit? method
5702 required removing an extra Tcl_DecrRefCount too.
5703
5704 * generic/tclOO.h, generic/tclOOInt.h: [Patch 2961556]: Change TclOO
5705 to use the same style of function typedefs as Tcl, as this is about
5706 the last chance to get this right.
5707
5708 ***POTENTIAL INCOMPATIBILITY***
5709 Source code that uses function typedefs from TclOO will need to update
5710 variables and argument definitions so that pointers to the function
5711 values are used instead. Binary compatibility is not affected.
5712
5713 * generic/*.c, generic/tclInt.h, unix/*.c, macosx/*.c: Applied results
5714 of doing a Code Audit. Principal changes:
5715 * Use do { ... } while (0) in macros
5716 * Avoid shadowing one local variable with another
5717 * Use clearer 'foo.bar++;' instead of '++foo.bar;' where result not
5718 required (i.e., semantically equivalent); clarity is increased
5719 because it is bar that is incremented, not foo.
5720 * Follow Engineering Manual rules on spacing and declarations
5721
5722 2010-03-04 Donal K. Fellows <[email protected]>
5723
5724 * generic/tclOO.c (ObjectRenamedTrace): [Bug 2962664]: Add special
5725 handling so that when the class of classes is deleted, so is the class
5726 of objects. Immediately.
5727
5728 * generic/tclOOInt.h (ROOT_CLASS): Add new flag for specially marking
5729 the root class. Simpler and more robust than the previous technique.
5730
5731 2010-03-04 Jan Nijtmans <[email protected]>
5732
5733 * generic/tclGetDate.y: 3 unnecessary MODULE_SCOPE
5734 * generic/tclDate.c: symbols
5735 * generic/tclStubLib.c: Split tommath stub lib
5736 * generic/tclTomMathStubLib.c: in separate file.
5737 * win/makefile.bc:
5738 * win/Makefile.in:
5739 * win/makefile.vc:
5740 * win/tcl.dsp:
5741 * unix/Makefile.in:
5742 * unix/tcl.m4: Cygwin only gives warning
5743 * unix/configure: using -fvisibility=hidden
5744 * compat/strncasecmp.c: A few more const's
5745 * compat/strtod.c:
5746 * compat/strtoul.c:
5747
5748 2010-03-03 Andreas Kupries <[email protected]>
5749
5750 * doc/refchan.n: Followup to ChangeLog entry 2009-10-07
5751 (generic/tclIORChan.c). Fixed the documentation to explain that errno
5752 numbers are operating system dependent, and reworked the associated
5753 example.
5754
5755 2010-03-02 Jan Nijtmans <[email protected]>
5756
5757 * unix/tcl.m4: [FRQ 2959069]: Support for -fvisibility=hidden
5758 * unix/configure (regenerated with autoconf-2.59)
5759
5760 2010-03-01 Alexandre Ferrieux <[email protected]>
5761
5762 * unix/tclUnixSock.c: Refrain from a possibly lengthy reverse-DNS
5763 lookup on 0.0.0.0 when calling [fconfigure -sockname] on an
5764 universally-bound (default) server socket.
5765
5766 * generic/tclIndexObj.c: fix [AT 86258]: special-casing of empty
5767 tables when generating error messages for [::tcl::prefix match].
5768
5769 2010-02-28 Donal K. Fellows <[email protected]>
5770
5771 * generic/tclCmdIL.c: More additions of {TCL LOOKUP} error-code
5772 generation to various subcommands of [info] as part of long-term
5773 project to classify all Tcl's generated errors.
5774
5775 2010-02-28 Jan Nijtmans <[email protected]>
5776
5777 * generic/tclStubInit.c: [Bug 2959713]: Link error with gcc 4.1
5778
5779 2010-02-27 Donal K. Fellows <[email protected]>
5780
5781 * generic/tclCmdMZ.c (StringFirstCmd, StringLastCmd): [Bug 2960021]:
5782 Only search for the needle in the haystack when the needle isn't
5783 larger than the haystack. Prevents an odd crash from sometimes
5784 happening when things get mixed up (a common programming error).
5785
5786 * generic/tclMain.c (Tcl_Main): [Bug 801429]: Factor out the holding
5787 of the client-installed main loop function into thread-specific data.
5788
5789 ***POTENTIAL INCOMPATIBILITY***
5790 Code that previously tried to set the main loop from another thread
5791 will now fail. On the other hand, there is a fairly high probability
5792 that such programs would have been failing before due to the lack of
5793 any kind of inter-thread memory barriers guarding accesses to this
5794 part of Tcl's state.
5795
5796 2010-02-26 Donal K. Fellows <[email protected]>
5797
5798 * generic/tclCompCmds.c: Split this file into two pieces to make it
5799 * generic/tclCompCmdsSZ.c: easier to work with. It's still two very
5800 long files even after the split.
5801
5802 2010-02-26 Reinhard Max <[email protected]>
5803
5804 * doc/safe.n: Name the installed file after the command it documents.
5805 Use "Safe Tcl" instead of the "Safe Base", "Safe Tcl" mixture.
5806
5807 2010-02-26 Donal K. Fellows <[email protected]>
5808
5809 * unix/Makefile.in (NATIVE_TCLSH): Added this variable to allow for
5810 better control of what tclsh to use for various scripts when doing
5811 cross compiling. An imperfect solution, but works.
5812
5813 * unix/installManPage: Remap non-alphanumeric sequences in filenames
5814 to single underscores (especially colons).
5815
5816 2010-02-26 Pat Thoyts <[email protected]>
5817
5818 * tests/zlib.test: Add tests for [Bug 2818131] which was crashing with
5819 mismatched zlib algorithms used in combination with gets. This issue
5820 has been fixed by Andreas's last commit.
5821
5822 2010-02-25 Jan Nijtmans <[email protected]>
5823
5824 * generic/tclHash.c: [FRQ 2958832]: Further speed-up of the
5825 * generic/tclLiteral.c: ouster-hash function.
5826 * generic/tclObj.c:
5827 * generic/tclCkalloc.c: Eliminate various unnecessary (ClientData)
5828 * generic/tclTest.c: type casts.
5829 * generic/tclTestObj.c:
5830 * generic/tclTestProcBodyObj.c:
5831 * unix/tclUnixTest.c:
5832 * unix/tclUnixTime.c:
5833 * unix/tclXtTest.c:
5834
5835 2010-02-24 Donal K. Fellows <[email protected]>
5836
5837 * generic/tclDictObj.c (SetDictFromAny): Prevent the list<->dict
5838 * generic/tclListObj.c (SetListFromAny): conversion code from taking
5839 too many liberties. Stops loss of duplicate keys in some scenarios.
5840 Many thanks to Jean-Claude Wippler for finding this.
5841
5842 * generic/tclExecute.c (TclExecuteByteCode): Reduce ifdef-fery and
5843 size of activation record. More variables shared across instructions
5844 than before.
5845
5846 * doc/socket.n: [Bug 2957688]: Clarified that [socket -server] works
5847 with a command prefix. Extended example to show this in action.
5848
5849 2010-02-22 Andreas Kupries <[email protected]>
5850
5851 * generic/tclZlib.c (ZlibTransformInput): [Bug 2762041]: Added a hack
5852 to work around the general problem, early EOF recognition based on the
5853 base-channel, instead of the data we have ready for reading in the
5854 transform. Long-term we need a proper general fix (likely tracking EOF
5855 on each level of the channel stack), with attendant complexity.
5856 Furthermore, Z_BUF_ERROR can be ignored, and must be when feeding the
5857 zlib code with single characters.
5858
5859 2010-02-22 Jan Nijtmans <[email protected]>
5860
5861 * unix/tclUnixPort.h: Remove unnecessary EXTERN's, which already are
5862 in the global stub table.
5863 * unix/configure.in: Use @EXEEXT@ in stead of @EXT_SUFFIX@
5864 * unix/tcl.m4:
5865 * unix/Makefile.in: Use -DBUILD_tcl for CYGWIN
5866 * unix/configure: (regenerated)
5867 * unix/dltest/pkg*.c: Use EXTERN to control CYGWIN exported symbols
5868 * generic/tclCmdMZ.c: Remove some unnecessary type casts.
5869 * generic/tclCompCmds.c:
5870 * generic/tclTest.c:
5871 * generic/tclUtil.c:
5872
5873 2010-02-21 Mo DeJong <[email protected]>
5874
5875 * tests/regexp.test: Add test cases back ported from Jacl regexp work.
5876
5877 2010-02-21 Jan Nijtmans <[email protected]>
5878
5879 * generic/tclDate.c: Some more const tables.
5880 * generic/tclGetDate.y:
5881 * generic/regc_lex.c:
5882 * generic/regerror.c:
5883 * generic/tclStubLib.c:
5884 * generic/tclBasic.c: Fix [Bug 2954959] expr abs(0.0) is -0.0
5885 * tests/expr.test:
5886
5887 2010-02-20 Donal K. Fellows <[email protected]>
5888
5889 * generic/tclCompCmds.c (TclCompileStringLenCmd): Make [string length]
5890 of a constant string be handled better (i.e., handle backslashes too).
5891
5892 2010-02-19 Stuart Cassoff <[email protected]>
5893
5894 * tcl.m4: Correct compiler/linker flags for threaded builds on
5895 OpenBSD.
5896 * configure: (regenerated).
5897
5898 2010-02-19 Donal K. Fellows <[email protected]>
5899
5900 * unix/installManPage: [Bug 2954638]: Correct behaviour of manual page
5901 installer. Also added armouring to check that assumptions about the
5902 initial state are actually valid (e.g., look for existing input file).
5903
5904 2010-02-17 Donal K. Fellows <[email protected]>
5905
5906 * generic/tclHash.c (HashStringKey): Restore these hash functions
5907 * generic/tclLiteral.c (HashString): to use the classic algorithm.
5908 * generic/tclObj.c (TclHashObjKey): Community felt normal case
5909 speed to be more important than resistance to malicious cases. For
5910 now, hashes that need to deal with the malicious case can use a custom
5911 hash table and install their own hash function, though that is not
5912 functionality exposed to the script level.
5913
5914 * generic/tclCompCmds.c (TclCompileDictUpdateCmd): Stack depth must be
5915 correctly described when compiling a body to prevent crashes in some
5916 debugging modes.
5917
5918 2010-02-16 Jan Nijtmans <[email protected]>
5919
5920 * generic/tclInt.h: Change order of various struct members,
5921 fixing potential binary incompatibility with Tcl 8.5
5922
5923 2010-02-16 Donal K. Fellows <[email protected]>
5924
5925 * unix/configure.in, generic/tclIOUtil.c (Tcl_Stat): Updated so that
5926 we do not assume that all unix systems have the POSIX blkcnt_t type,
5927 since OpenBSD apparently does not.
5928
5929 * generic/tclLiteral.c (HashString): Missed updating to FNV in one
5930 place; the literal table (a copy of the hash table code...)
5931
5932 2010-02-15 Jan Nijtmans <[email protected]>
5933
5934 * tools/genStubs.tcl: Reverted earlier rename from tcl*Stubs to
5935 * generic/tclBasic.c: tcl*ConstStubs, it's not necessary at all.
5936 * generic/tclOO.c:
5937 * generic/tclTomMathInterface.c:
5938 * generic/tclStubInit.c: (regenerated)
5939 * generic/tclOOStubInit.c: (regenerated)
5940 * generic/tclEnsemble.c:Fix signed-unsigned mismatch
5941 * win/tclWinInt.h: make tclWinProcs "const"
5942 * win/tclWin32Dll.c:
5943 * win/tclWinFCmd.c: Eliminate all internal Tcl_WinUtfToTChar
5944 * win/tclWinFile.c: and Tcl_WinTCharToUtf calls, needed
5945 * win/tclWinInit.c: for mslu support.
5946 * win/tclWinLoad.c:
5947 * win/tclWinPipe.c:
5948 * win/tclWinSerial.c:
5949 * win/.cvsignore:
5950 * compat/unicows/readme.txt: [FRQ 2819611]: Add first part of MSLU
5951 * compat/unicows/license.txt: support.
5952 * compat/unicows/unicows.lib:
5953
5954 2010-02-15 Donal K. Fellows <[email protected]>
5955
5956 * generic/tclOO.c (AllocObject, SquelchedNsFirst, ObjectRenamedTrace):
5957 * generic/tclNamesp.c (Tcl_DeleteNamespace): [Bug 2950259]: Revised
5958 the namespace deletion code to provide an additional internal callback
5959 that gets triggered early enough in namespace deletion to allow TclOO
5960 destructors to run sanely. Adjusted TclOO to take advantage of this,
5961 so making tearing down an object by killing its namespace appear to
5962 work seamlessly, which is needed for Itcl. (Note that this is not a
5963 feature that will ever be backported to 8.5, and it remains not a
5964 recommended way of deleting an object.)
5965
5966 2010-02-13 Donal K. Fellows <[email protected]>
5967
5968 * generic/tclCompCmds.c (TclCompileSwitchCmd): Divided the [switch]
5969 compiler into three pieces (after the model of [try]): a parser, an
5970 instruction-issuer for chained tests, and an instruction-issuer for
5971 jump tables.
5972
5973 * generic/tclEnsemble.c: Split the ensemble engine out into its own
5974 file rather than keeping it mashed together with the namespace code.
5975
5976 2010-02-12 Jan Nijtmans <[email protected]>
5977
5978 * win/tcl.m4: Use -pipe for gcc on win32
5979 * win/configure: (mingw/cygwin) (regenerated)
5980 * win/.cvsignore: Add .lib, .exp and .res here
5981
5982 2010-02-11 Mo DeJong <[email protected]>
5983
5984 * tests/list.test: Add tests for explicit \0 in a string argument to
5985 the list command.
5986
5987 2010-02-11 Donal K. Fellows <[email protected]>
5988
5989 * generic/tclIOCmd.c (Tcl_OpenObjCmd): [Bug 2949740]: Make sure that
5990 we do not try to put a NULL pipeline channel into binary mode.
5991
5992 2010-02-11 Mo DeJong <[email protected]>
5993
5994 [Bug 2826551, Patch 2948425]: Assorted regexp bugs related to -all,
5995 -line and -start options and newlines.
5996 * generic/tclCmdMZ.c (Tcl_RegexpObjCmd): If -offset is given, treat it
5997 as the start of the line if the previous character was a newline. Fix
5998 nasty edge case where a zero length match would not advance the index.
5999 * tests/regexp.test: Add regression tests back ported from Jacl.
6000 Checks for a number of issues related to -line and newline handling. A
6001 few of tests were broken before the patch and continue to be broken,
6002 marked as knownBug.
6003
6004 2010-02-11 Donal K. Fellows <[email protected]>
6005
6006 * generic/tclOO.c (ObjectRenamedTrace): [Bug 2949397]: Prevent
6007 destructors from running on the two core class objects when the whole
6008 interpreter is being destroyed.
6009
6010 2010-02-09 Donal K. Fellows <[email protected]>
6011
6012 * generic/tclCompCmds.c (TclCompileTryCmd, IssueTryInstructions)
6013 (IssueTryFinallyInstructions): Added compiler for the [try] command.
6014 It is split into three pieces that handle the parsing of the tokens,
6015 the issuing of instructions for finally-free [try], and the issuing of
6016 instructions for [try] with finally; there are enough differences
6017 between the all cases that it was easier to split the code rather than
6018 have a single function do the whole thing.
6019
6020 2010-02-09 Alexandre Ferrieux <[email protected]>
6021
6022 * tools/genStubs.tcl: Remove dependency on 8.5+ idiom "in" in
6023 expressions.
6024
6025 2010-02-08 Donal K. Fellows <[email protected]>
6026
6027 * generic/tclZlib.c (Tcl_ZlibDeflate, Tcl_ZlibInflate): [Bug 2947783]:
6028 Make sure that the result is an unshared object before appending to it
6029 so that nothing crashes if it is shared (use in Tcl code was not
6030 affected by this, but use from C was an issue).
6031
6032 2010-02-06 Donal K. Fellows <[email protected]>
6033
6034 * generic/tclHash.c (HashStringKey): Replace Tcl's crusty old hash
6035 * generic/tclObj.c (TclHashObjKey): function with the algorithm
6036 due to Fowler, Noll and Vo. This is slightly faster (assuming the
6037 presence of hardware multiply) and has somewhat better distribution
6038 properties of the resulting hash values. Note that we only ever used
6039 the 32-bit version of the FNV algorithm; Tcl's core hash engine
6040 assumes that hash values are simple unsigned ints.
6041
6042 ***POTENTIAL INCOMPATIBILITY***
6043 Code that depends on hash iteration order (especially tests) may well
6044 be disrupted by this. Where a definite order is required, the fix is
6045 usually to just sort the results after extracting them from the hash.
6046 Where this is insufficient, the code that has ceased working was
6047 always wrong and was only working by chance.
6048
6049 2010-02-05 Donal K. Fellows <[email protected]>
6050
6051 * generic/tclCompCmds.c (TclCompileErrorCmd): Added compilation of the
6052 [error] command. No new bytecodes.
6053
6054 2010-02-05 Jan Nijtmans <[email protected]>
6055
6056 * tools/genStubs.tcl: Follow-up to earlier commit today:
6057 Eliminate the need for an extra Stubs Pointer for adressing
6058 a static stub table: Just change the exported table from
6059 static to MODULE_SCOPE.
6060 * generic/tclBasic.c
6061 * generic/tclOO.c
6062 * generic/tclTomMathInterface.c
6063 * generic/tcl*Decls.h (regenerated)
6064 * generic/tclStubInit.c (regenerated)
6065 * generic/tclOOStubInit.c (regenerated)
6066 * generic/tclTest.c (minor formatting)
6067
6068 2010-02-05 Donal K. Fellows <[email protected]>
6069
6070 * generic/tclVar.c: More consistency in errorcode generation.
6071
6072 * generic/tclOOBasic.c (TclOO_Object_Destroy): Rewrote to be NRE-aware
6073 when calling destructors. Note that there is no guarantee that
6074 destructors will always be called in an NRE context; that's a feature
6075 of the 'destroy' method only.
6076
6077 * generic/tclEncoding.c: Add 'const' to many function-internal vars
6078 that are never pointing to things that are written to.
6079
6080 2010-02-05 Jan Nijtmans <[email protected]>
6081
6082 * tools/genStubs.tcl: Follow-up to [2010-01-29] commit:
6083 prevent space within stub table function parameters if the
6084 parameter type is a pointer.
6085 * win/tclWinInt.h: Minor Formatting
6086 * generic/tcl.h: VOID -> void and other formatting
6087 * generic/tclInt.h: Minor formatting
6088 * generic/tclInt.decls: Change signature of TclNRInterpProcCore,
6089 * generic/tclOO.decls: and TclOONewProc(Instance|)MethodEx,
6090 * generic/tclProc.c: indicating that errorProc is a function,
6091 * generic/tclOOMethod.c:pointer, and other formatting
6092 * generic/tcl*Decls.h: (regenerated)
6093 * generic/tclVar.c: gcc warning(line 3703): 'pattern' may be used
6094 uninitialized in this function
6095 gcc warning(line 3788): 'matched' may be used
6096 uninitialized in this function
6097
6098 2010-02-04 Donal K. Fellows <[email protected]>
6099
6100 * generic/tclVar.c: Added more use of error-codes and reduced the
6101 stack overhead of older interfaces.
6102 (ArrayGetCmd): Stop silly crash when using a trivial pattern due to
6103 error in conversion to ensemble.
6104 (ArrayNamesCmd): Use the object RE interface for faster matching.
6105
6106 2010-02-03 Donal K. Fellows <[email protected]>
6107
6108 * generic/tclVar.c (ArrayUnsetCmd): More corrections.
6109
6110 2010-02-02 Donal K. Fellows <[email protected]>
6111
6112 * generic/tclVar.c: Turned the [array] command into a true ensemble.
6113
6114 * generic/tclOO.c (AllocObject, MyDeleted): A slightly faster way to
6115 handle the deletion of [my] is with a standard delete callback. This
6116 is because it doesn't require an additional memory allocation during
6117 object creation. Also reduced the amount of string manipulation
6118 performed during object creation to further streamline memory
6119 handling; this is not backported to the 8.5 package as it breaks a
6120 number of abstractions.
6121
6122 * generic/tclOOBasic.c (TclOO_Object_Destroy): [Bug 2944404]: Do not
6123 crash when a destructor deletes the object that is executing that
6124 destructor.
6125
6126 2010-02-01 Donal K. Fellows <[email protected]>
6127
6128 * generic/tclVar.c (Tcl_ArrayObjCmd): [Bug 2939073]: Stop the [array
6129 unset] command from having dangling pointer problems when an unset
6130 trace deletes the element that is going to be processed next. Many
6131 thanks to Alexandre Ferrieux for the bulk of this fix.
6132
6133 * generic/regexec.c (ccondissect, crevdissect): [Bug 2942697]: Rework
6134 these functions so that certain pathological patterns are matched much
6135 more rapidly. Many thanks to Tom Lane for dianosing this issue and
6136 providing an initial patch.
6137
6138 2010-01-30 Donal K. Fellows <[email protected]>
6139
6140 * generic/tclCompile.c (tclInstructionTable): Bytecode instructions
6141 * generic/tclCompCmds.c (TclCompileUnsetCmd): to allow the [unset]
6142 * generic/tclExecute.c (TclExecuteByteCode): command to be compiled
6143 with the compiler being a complete compilation for all compile-time
6144 decidable uses.
6145
6146 * generic/tclVar.c (TclPtrUnsetVar): Var reference version of the code
6147 to unset a variable. Required for INST_UNSET bytecodes.
6148
6149 2010-01-29 Jan Nijtmans <[email protected]>
6150
6151 * generic/tcl.h: [Bug 2942081]: Reverted Tcl_ThreadDataKey type change
6152 Changed some Tcl_CallFrame fields from "char *"
6153 to "void *". This saves unnecessary space on
6154 Cray's (and it's simply more correct).
6155
6156 * tools/genStubs.tcl: No longer generate a space after "*" and
6157 immediately after a function name, so the
6158 format of function definitions in tcl*Decls.h
6159 match all other tcl*.h header files.
6160 * doc/ParseArgs.3: Change Tcl_ArgvFuncProc, Tcl_ArgvGenFuncProc
6161 * generic/tcl.h: and GetFrameInfoValueProc to be function
6162 * generic/tclInt.h: definitions, not pointers, for consistency
6163 * generic/tclOOInt.h: with all other Tcl function definitions.
6164 * generic/tclIndexObj.c:
6165 * generic/regguts.h: CONST -> const
6166 * generic/tcl.decls: Formatting
6167 * generic/tclTomMath.decls: Formatting
6168 * generic/tclDecls.h: (regenerated)
6169 * generic/tclIntDecls.h:
6170 * generic/tclIntPlatDecls.h:
6171 * generic/tclOODecls.h:
6172 * generic/tclOOIntDecls.h:
6173 * generic/tclPlatDecls.h:
6174 * generic/tclTomMathDecls.h:
6175
6176 2010-01-28 Donal K. Fellows <[email protected]>
6177
6178 * generic/tclOOBasic.c (TclOO_Object_Destroy): Move the execution of
6179 destructors to a point where they can produce an error. This will not
6180 work for all destructors, but it does mean that more failing calls of
6181 them will be caught.
6182 * generic/tclOO.c (AllocObject, MyDeletedTrace, ObjectRenamedTrace):
6183 (ObjectNamespaceDeleted): Stop various ways of getting at commands
6184 with dangling pointers to the object. Also increases the reliability
6185 of calling of destructors (though most destructors won't benefit; when
6186 an object is deleted namespace-first, its destructors are not run in a
6187 nice state as the namespace is partially gone).
6188
6189 2010-01-25 Jan Nijtmans <[email protected]>
6190
6191 * generic/tclOOStubInit.c: Remove double includes (which causes a
6192 * generic/tclOOStubLib.c: warning in CYGWIN compiles)
6193 * unix/.cvsignore: add confdefs.h
6194
6195 2010-01-22 Donal K. Fellows <[email protected]>
6196
6197 * doc/proc.n: [Bug 1970629]: Define a bit better what the current
6198 namespace of a procedure is.
6199
6200 2010-01-22 Jan Nijtmans <[email protected]>
6201
6202 * generic/tclInt.decls: Don't use DWORD and HANDLE here.
6203 * generic/tclIntPlatDecls.h:
6204 * generic/tcl.h: Revert [2009-12-21] change, instead
6205 * generic/tclPort.h: resolve the CYGWIN inclusion problems by
6206 * win/tclWinPort.h: re-arranging the inclusions at other
6207 places.
6208 * win/tclWinError.c
6209 * win/tclWinPipe.c
6210 * win/tcl.m4: Make cygwin configuration error into
6211 * win/configure.in: a warning: CYGWIN compilation works
6212 * win/configure: although there still are test failures.
6213
6214 2010-01-22 Donal K. Fellows <[email protected]>
6215
6216 * generic/tclExecute.c (TclExecuteByteCode): Improve error code
6217 generation from some of the tailcall-related bits of TEBC.
6218
6219 2010-01-21 Miguel Sofer <[email protected]>
6220
6221 * generic/tclCompile.h: [Bug 2910748]: NRE-enable direct eval on BC
6222 * generic/tclExecute.c: spoilage.
6223 * tests/nre.test:
6224
6225 2010-01-19 Donal K. Fellows <[email protected]>
6226
6227 * doc/dict.n: [Bug 2929546]: Clarify just what [dict with] and [dict
6228 update] are doing with variables.
6229
6230 2010-01-18 Andreas Kupries <[email protected]>
6231
6232 * generic/tclIO.c (CreateScriptRecord): [Bug 2918110]: Initialize
6233 the EventScriptRecord (esPtr) fully before handing it to
6234 Tcl_CreateChannelHandler for registration. Otherwise a reflected
6235 channel calling 'chan postevent' (== Tcl_NotifyChannel) in its
6236 'watchProc' will cause the function 'TclChannelEventScriptInvoker'
6237 to be run on an uninitialized structure.
6238
6239 2010-01-18 Donal K. Fellows <[email protected]>
6240
6241 * generic/tclStringObj.c (Tcl_AppendFormatToObj): [Bug 2932421]: Stop
6242 the [format] command from causing argument objects to change their
6243 internal representation when not needed. Thanks to Alexandre Ferrieux
6244 for this fix.
6245
6246 2010-01-13 Donal K. Fellows <[email protected]>
6247
6248 * tools/tcltk-man2html.tcl: More factoring out of special cases
6249 * tools/tcltk-man2html-utils.tcl: so that they are described outside
6250 the engine file. Now there is only one real set of special cases in
6251 there, to handle the .SO/.OP/.SE directives.
6252
6253 2010-01-13 Jan Nijtmans <[email protected]>
6254
6255 * generic/tcl.h: Fix TCL_LL_MODIFIER for Cygwin
6256 * generic/tclEnv.c: Fix CYGWIN compilation problems,
6257 * generic/tclInt.h: and remove some unnecessary
6258 * generic/tclPort.h: double includes.
6259 * generic/tclPlatDecls.h:
6260 * win/cat.c:
6261 * win/tclWinConsole.c:
6262 * win/tclWinFCmd.c:
6263 * win/tclWinFile.c:
6264 * win/tclWinPipe.c:
6265 * win/tclWinSerial.c:
6266 * win/tclWinThrd.c:
6267 * win/tclWinPort.h: Put win32 includes first
6268 * unix/tclUnixChan.c: Forgot one CONST change
6269
6270 2010-01-12 Donal K. Fellows <[email protected]>
6271
6272 * tools/tcltk-man2html.tcl: Make the generation of the list of things
6273 to process the docs from simpler and more flexible. Also factored out
6274 the lists of special cases.
6275
6276 2010-01-10 Jan Nijtmans <[email protected]>
6277
6278 * win/tclWinDde.c: VC++ 6.0 doesn't have
6279 * win/tclWinReg.c: PDWORD_PTR
6280 * win/tclWinThrd.c: Fix various minor gcc warnings.
6281 * win/tclWinTime.c:
6282 * win/tclWinConsole.c: Put channel type definitions
6283 * win/tclWinChan.c: in static const memory
6284 * win/tclWinPipe.c:
6285 * win/tclWinSerial.c:
6286 * win/tclWinSock.c:
6287 * generic/tclIOGT.c:
6288 * generic/tclIORChan.c:
6289 * generic/tclIORTrans.c:
6290 * unix/tclUnixChan.c:
6291 * unix/tclUnixPipe.c:
6292 * unix/tclUnixSock.c:
6293 * unix/configure: (regenerated with autoconf 2.59)
6294 * tests/info.test: Make test independant from
6295 tcltest implementation.
6296
6297 2010-01-10 Donal K. Fellows <[email protected]>
6298
6299 * tests/namespace.test (namespace-51.17): [Bug 2898722]: Demonstrate
6300 that there are still bugs in the handling of resolution epochs. This
6301 bug is not yet fixed.
6302
6303 * tools/tcltk-man2html.tcl: Split the man->html converter into
6304 * tools/tcltk-man2html-utils.tcl: two pieces for easier maintenance.
6305 Also made it much less verbose in its printed messages by default.
6306
6307 2010-01-09 Donal K. Fellows <[email protected]>
6308
6309 * tools/tcltk-man2html.tcl: Added basic support for building the docs
6310 for contributed packages into the HTML versions. Prompted by question
6311 on Tcler's Chat by Tom Krehbiel. Note that there remain problems in
6312 the documentation generated due to errors in the contributed docs.
6313
6314 2010-01-05 Don Porter <[email protected]>
6315
6316 * generic/tclPathObj.c (TclPathPart): [Bug 2918610]: Correct
6317 * tests/fileName.test (filename-14.31): inconsistency between the
6318 string rep and the intrep of a path value created by [file rootname].
6319 Thanks to Vitaly Magerya for reporting.
6320
6321 2010-01-03 Donal K. Fellows <[email protected]>
6322
6323 * unix/tcl.m4 (SC_CONFIG_CFLAGS): [Bug 1636685]: Use the configuration
6324 for modern FreeBSD suggested by the FreeBSD porter.
6325
6326 2010-01-03 Miguel Sofer <[email protected]>
6327
6328 * generic/tclBasic.c: [Bug 2724403]: Fix leak of coroutines on
6329 * generic/tclCompile.h: namespace deletion. Added a test for this
6330 * generic/tclNamesp.c: leak, and also a test for leaks on namespace
6331 * tests/coroutine.test: deletion.
6332 * tests/namespace.test:
6333
6334 2009-12-30 Donal K. Fellows <[email protected]>
6335
6336 * library/safe.tcl (AliasSource): [Bug 2923613]: Make the safer
6337 * tests/safe.test (safe-8.9): [source] handle a [return] at the
6338 end of the file correctly.
6339
6340 2009-12-30 Miguel Sofer <[email protected]>
6341
6342 * library/init.tcl (unknown): [Bug 2824981]: Fix infinite recursion of
6343 ::unknown when [set] is undefined.
6344
6345 2009-12-29 Donal K. Fellows <[email protected]>
6346
6347 * generic/tclHistory.c (Tcl_RecordAndEvalObj): Reduce the amount of
6348 allocation and deallocation of memory by caching objects in the
6349 interpreter assocData table.
6350
6351 * generic/tclObj.c (Tcl_GetCommandFromObj): Rewrite the logic so that
6352 it does not require making assignments part way through an 'if'
6353 condition, which was deeply unclear.
6354
6355 * generic/tclInterp.c (Tcl_MakeSafe): [Bug 2895741]: Make sure that
6356 the min() and max() functions are supported in safe interpreters.
6357
6358 2009-12-29 Pat Thoyts <[email protected]>
6359
6360 * generic/tclBinary.c: [Bug 2922555]: Handle completely invalid input
6361 * tests/binary.test: to the decode methods.
6362
6363 2009-12-28 Donal K. Fellows <[email protected]>
6364
6365 * unix/Makefile.in (trace-shell, trace-test): [FRQ 1083288]: Added
6366 targets to allow easier tracing of shell and test invocations.
6367
6368 * unix/configure.in: [Bug 942170]: Detect the st_blocks field of
6369 * generic/tclCmdAH.c (StoreStatData): 'struct stat' correctly.
6370 * generic/tclFileName.c (Tcl_GetBlocksFromStat):
6371 * generic/tclIOUtil.c (Tcl_Stat):
6372
6373 * generic/tclInterp.c (TimeLimitCallback): [Bug 2891362]: Ensure that
6374 * tests/interp.test (interp-34.13): the granularity ticker is
6375 reset when we check limits because of the time limit event firing.
6376
6377 2009-12-27 Donal K. Fellows <[email protected]>
6378
6379 * doc/namespace.n (SCOPED SCRIPTS): [Bug 2921538]: Updated example to
6380 not be quite so ancient.
6381
6382 2009-12-25 Jan Nijtmans <[email protected]>
6383
6384 * generic/tclCmdMZ.c: CONST -> const
6385 * generic/tclParse.c
6386
6387 2009-12-23 Donal K. Fellows <[email protected]>
6388
6389 * library/safe.tcl (AliasSource, AliasExeName): [Bug 2913625]: Stop
6390 information about paths from leaking through [info script] and [info
6391 nameofexecutable].
6392
6393 2009-12-23 Jan Nijtmans <[email protected]>
6394
6395 * unix/tcl.m4: Install libtcl8.6.dll in bin directory
6396 * unix/Makefile.in:
6397 * unix/configure: (regenerated)
6398
6399 2009-12-22 Donal K. Fellows <[email protected]>
6400
6401 * generic/tclCmdIL.c (Tcl_LsortObjCmd): [Bug 2918962]: Stop crash when
6402 -index and -stride are used together.
6403
6404 2009-12-21 Jan Nijtmans <[email protected]>
6405
6406 * generic/tclThreadStorage.c: Fix gcc warning, using gcc-4.3.4 on
6407 cygwin: missing initializer
6408 * generic/tclOOInt.h: Prevent conflict with DUPLICATE
6409 definition in WINAPI's nb30.h
6410 * generic/rege_dfa.c: Fix macro conflict on CYGWIN: don't use
6411 "small".
6412 * generic/tcl.h: Include <winsock2.h> before <stdio.h> on
6413 CYGWIN
6414 * generic/tclPathObj.c
6415 * generic/tclPort.h
6416 * tests/env.test: Don't unset WINDIR and TERM, it has a
6417 special meaning on CYGWIN (both in UNIX
6418 and WIN32 mode!)
6419 * generic/tclPlatDecls.h: Include <tchar.h> through tclPlatDecls.h
6420 * win/tclWinPort.h: stricmp -> strcasecmp
6421 * win/tclWinDde.c: _wcsicmp -> wcscasecmp
6422 * win/tclWinFile.c
6423 * win/tclWinPipe.c
6424 * win/tclWinSock.c
6425 * unix/tcl.m4: Add dynamic loading support to CYGWIN
6426 * unix/configure (regenerated)
6427 * unix/Makefile.in
6428
6429 2009-12-19 Miguel Sofer <[email protected]>
6430
6431 * generic/tclBasic.c: [Bug 2917627]: Fix for bad cmd resolution by
6432 * tests/coroutine.test: coroutines. Thanks to schelte for finding it.
6433
6434 2009-12-16 Donal K. Fellows <[email protected]>
6435
6436 * library/safe.tcl (::safe::AliasGlob): Upgrade to correctly support a
6437 larger fraction of [glob] functionality, while being stricter about
6438 directory management.
6439
6440 2009-12-11 Jan Nijtmans <[email protected]>
6441
6442 * generic/tclTest.c: Fix gcc warning: ignoring return value of
6443 * unix/tclUnixNotify.c: "write", declared with attribute
6444 * unix/tclUnixPipe.c: warn_unused_result.
6445 * generic/tclInt.decls: CONSTify functions TclpGetUserHome and
6446 * generic/tclIntDecls.h:TclSetPreInitScript (TIP #27)
6447 * generic/tclInterp.c:
6448 * win/tclWinFile.c:
6449 * unix/tclUnixFile.c:
6450
6451 2009-12-16 Donal K. Fellows <[email protected]>
6452
6453 * doc/tm.n: [Bug 1911342]: Formatting rewrite to avoid bogus crosslink
6454 to the list manpage when generating HTML.
6455
6456 * library/msgcat/msgcat.tcl (Init): [Bug 2913616]: Do not use platform
6457 tests that are not needed and which don't work in safe interpreters.
6458
6459 2009-12-14 Donal K. Fellows <[email protected]>
6460
6461 * doc/file.n (file tempfile): [Bug 2388866]: Note that this only ever
6462 creates files on the native filesystem. This is a design feature.
6463
6464 2009-12-13 Miguel Sofer <[email protected]>
6465
6466 * generic/tclBasic.c: Release TclPopCallFrame() from its
6467 * generic/tclExecute.c: tailcall-management duties
6468 * generic/tclNamesp.c:
6469
6470 * generic/tclBasic.c: Moving TclBCArgumentRelease call from
6471 * generic/tclExecute.c: TclNRTailcallObjCmd to TEBC, so that the
6472 pairing of the Enter and Release calls is clearer.
6473
6474 2009-12-12 Donal K. Fellows <[email protected]>
6475
6476 * generic/tclTest.c (TestconcatobjCmd): [Bug 2895367]: Stop memory
6477 leak when testing. We don't need extra noise of this sort when
6478 tracking down real problems!
6479
6480 2009-12-11 Jan Nijtmans <[email protected]>
6481
6482 * generic/tclBinary.c: Fix gcc warning, using gcc-4.3.4 on cygwin
6483 * generic/tclCompExpr.c:warning: array subscript has type 'char'
6484 * generic/tclPkg.c:
6485 * libtommath/bn_mp_read_radix.c:
6486 * win/makefile.vc: [Bug 2912773]: Revert to version 1.203
6487 * unix/tclUnixCompat.c: Fix gcc warning: signed and unsigned type
6488 in conditional expression.
6489
6490 2009-12-11 Donal K. Fellows <[email protected]>
6491
6492 * tools/tcltk-man2html.tcl (long-toc, cross-reference): [FRQ 2897296]:
6493 Added cross links to sections within manual pages.
6494
6495 2009-12-11 Miguel Sofer <[email protected]>
6496
6497 * generic/tclBasic.c: [Bug 2806407]: Full nre-enabling of coroutines
6498 * generic/tclExecute.c:
6499
6500 * generic/tclBasic.c: Small cleanup
6501
6502 * generic/tclExecute.c: Fix panic in http11.test caused by buggy
6503 earlier commits in coroutine management.
6504
6505 2009-12-10 Andreas Kupries <[email protected]>
6506
6507 * generic/tclObj.c (TclContinuationsEnter): [Bug 2895323]: Updated
6508 comments to describe when the function can be entered for the same
6509 Tcl_Obj* multiple times. This is a continuation of the 2009-11-10
6510 entry where a memory leak was plugged, but where not sure if that was
6511 just a band-aid to paper over some other error. It isn't, this is a
6512 legal situation.
6513
6514 2009-12-10 Miguel Sofer <[email protected]>
6515
6516 * generic/tclBasic.c: Reducing the # of moving parts for coroutines
6517 * generic/tclExecute.c: by delegating more to tebc; eliminate the
6518 special coroutine CallFrame.
6519
6520 2009-12-09 Andreas Kupries <[email protected]>
6521
6522 * generic/tclIO.c: [Bug 2901998]: Applied Alexandre Ferrieux's patch
6523 fixing the inconsistent buffered I/O. Tcl's I/O now flushes buffered
6524 output before reading, discards buffered input before writing, etc.
6525
6526 2009-12-09 Miguel Sofer <[email protected]>
6527
6528 * generic/tclBasic.c: Ensure right lifetime of varFrame's (objc,objv)
6529 for coroutines.
6530
6531 * generic/tclExecute.c: Code regrouping
6532
6533 2009-12-09 Donal K. Fellows <[email protected]>
6534
6535 * generic/tclBasic.c: Added some of the missing setting of errorcode
6536 values.
6537
6538 2009-12-08 Miguel Sofer <[email protected]>
6539
6540 * generic/tclExecute.c (TclStackFree): Improved panic msg.
6541
6542 2009-12-08 Miguel Sofer <[email protected]>
6543
6544 * generic/tclBasic.c: Partial nre-enabling of coroutines. The
6545 * generic/tclExecute.c: initial call still requires its own
6546 * generic/tclInt.h: instance of tebc, but on resume coros can
6547 execute in the caller's tebc.
6548
6549 * generic/tclExecute.c (TEBC): Silence warning about pcAdjustment.
6550
6551 2009-12-08 Donal K. Fellows <[email protected]>
6552
6553 * generic/tclExecute.c (TclExecuteByteCode): Make the dict opcodes
6554 more sparing in their use of C variables, to reduce size of TEBC
6555 activiation record a little bit.
6556
6557 2009-12-07 Miguel Sofer <[email protected]>
6558
6559 * generic/tclExecute.c (TEBC): Grouping "slow" variables into structs,
6560 to reduce register pressure and help the compiler with variable
6561 allocation.
6562
6563 2009-12-07 Miguel Sofer <[email protected]>
6564
6565 * generic/tclExecute.c: Start cleaning the TEBC stables
6566 * generic/tclInt.h:
6567
6568 * generic/tclCmdIL.c: [Bug 2910094]: Fix by aku
6569 * tests/coroutine.test:
6570
6571 * generic/tclBasic.c: Arrange for [tailcall] to be created with the
6572 other builtins: was being created in a separate call, leftover from
6573 pre-tip days.
6574
6575 2009-12-07 Don Porter <[email protected]>
6576
6577 * generic/tclStrToD.c: [Bug 2902010]: Correct conditional compile
6578 directives to better detect the toolchain that needs extra work for
6579 proper underflow treatment instead of merely detecting the MIPS
6580 platform.
6581
6582 2009-12-07 Miguel Sofer <[email protected]>
6583
6584 * generic/tclBasic.c: [Patch 2910056]: Add ::tcl::unsupported::yieldTo
6585 * generic/tclInt.h:
6586
6587 2009-12-07 Donal K. Fellows <[email protected]>
6588
6589 * generic/tclCmdMZ.c (TryPostBody): [Bug 2910044]: Close off memory
6590 leak in [try] when a variable-free handler clause is present.
6591
6592 2009-12-05 Miguel Sofer <[email protected]>
6593
6594 * generic/tclBasic.c: Small changes for clarity in tailcall
6595 * generic/tclExecute.c: and coroutine code.
6596 * tests/coroutine.test:
6597
6598 * tests/tailcall.test: Remove some old unused crud; improved the
6599 stack depth tests.
6600
6601 * generic/tclBasic.c: Fixed things so that you can tailcall
6602 * generic/tclNamesp.c: properly out of a coroutine.
6603 * tests/tailcall.test:
6604
6605 * generic/tclInterp.c: Fixed tailcalls for same-interp aliases (no
6606 test)
6607
6608 2009-12-03 Donal K. Fellows <[email protected]>
6609
6610 * library/safe.tcl (::safe::AliasEncoding): Make the safe encoding
6611 command behave more closely like the unsafe one (for safe ops).
6612 (::safe::AliasGlob): [Bug 2906841]: Clamp down on evil use of [glob]
6613 in safe interpreters.
6614 * tests/safe.test: Rewrite to use tcltest2 better.
6615
6616 2009-12-02 Jan Nijtmans <[email protected]>
6617
6618 * tools/genStubs.tcl: Add support for win32 CALLBACK functions and
6619 remove obsolete "emitStubs" and "genStubs" functions.
6620 * win/Makefile.in: Use tcltest86.dll for all tests, and add
6621 .PHONY rules to preemptively stop trouble that plagued Tk from hitting
6622 Tcl too.
6623
6624 2009-11-30 Jan Nijtmans <[email protected]>
6625
6626 * generic/tcl.h: Don't use EXPORT for Tcl_InitStubs
6627 * win/Makefile.in: Better dependancies in case of static build.
6628
6629 2009-11-30 Donal K. Fellows <[email protected]>
6630
6631 * doc/Tcl.n: [Bug 2901433]: Improved description of expansion to
6632 mention that it is using list syntax.
6633
6634 2009-11-27 Kevin B. Kenny <[email protected]>
6635
6636 * win/tclAppInit.c (Tcl_AppInit): [Bug 2902965]: Reverted Jan's change
6637 that added a call to Tcl_InitStubs. The 'tclsh' and 'tcltest' programs
6638 are providers, not consumers of the Stubs table, and should not link
6639 with the Stubs library, but only with the main Tcl library. (In any
6640 case, the presence of Tcl_InitStubs broke the build.)
6641
6642 2009-11-27 Donal K. Fellows <[email protected]>
6643
6644 * doc/BoolObj.3, doc/Class.3, doc/CrtChannel.3, doc/DictObj.3:
6645 * doc/DoubleObj.3, doc/Ensemble.3, doc/Environment.3:
6646 * doc/FileSystem.3, doc/Hash.3, doc/IntObj.3, doc/Limit.3:
6647 * doc/Method.3, doc/NRE.3, doc/ObjectType.3, doc/PkgRequire.3:
6648 * doc/SetChanErr.3, doc/SetResult.3: [Patch 2903921]: Many small
6649 spelling fixes from Larry Virden.
6650
6651 BUMP VERSION OF TCLOO TO 0.6.2. Too many people need accumulated small
6652 versions and bugfixes, so the version-bump removes confusion.
6653
6654 * generic/tclOOBasic.c (TclOO_Object_LinkVar): [Bug 2903811]: Remove
6655 unneeded restrictions on who can usefully call this method.
6656
6657 2009-11-26 Donal K. Fellows <[email protected]>
6658
6659 * unix/Makefile.in: Add .PHONY rules and documentation to preemptively
6660 stop trouble that plagued Tk from hitting Tcl too, and to make the
6661 overall makefile easier to understand. Some reorganization too to move
6662 related rules closer together.
6663
6664 2009-11-26 Jan Nijtmans <[email protected]>
6665
6666 * win/Makefile.in: [Bug 2902965]: Fix stub related changes that
6667 * win/makefile.vc: caused tclkit build to break.
6668 * win/tclAppInit.c
6669 * unix/tcl.m4
6670 * unix/Makefile.in
6671 * unix/tclAppInit.c
6672 * unix/configure: (regenerated)
6673
6674 2009-11-25 Kevin B. Kenny <[email protected]>
6675
6676 * win/Makefile.in: Added a 'test-tcl' rule that is identical to
6677 'test' except that it does not go spelunking in 'pkgs/'. (This rule
6678 has existed in unix/Makefile.in for some time.)
6679
6680 2009-11-25 Stuart Cassoff <[email protected]>
6681
6682 * unix/configure.in: [Patch 2892871]: Remove unneeded
6683 * unix/tcl.m4: AC_STRUCT_TIMEZONE and use
6684 * unix/tclConfig.h.in: AC_CHECK_MEMBERS([struct stat.st_blksize])
6685 * unix/tclUnixFCmd.c: instead of AC_STRUCT_ST_BLKSIZE.
6686 * unix/configure: Regenerated with autoconf-2.59.
6687
6688 2009-11-24 Andreas Kupries <[email protected]>
6689
6690 * library/tclIndex: Manually redone the part of tclIndex dealing with
6691 safe.tcl and tm.tcl. This part passes the testsuite. Note that
6692 automatic regeneration of this part is not possible because it wrongly
6693 puts 'safe::Setup' on the list, and wrongly leaves out 'safe::Log'
6694 which is more dynamically created than the generator expects.
6695
6696 Further note that the file "clock.tcl" is explicitly loaded by
6697 "init.tcl", the first time the clock command is invoked. The relevant
6698 code can be found at line 172ff, roughly, the definition of the
6699 procedure 'clock'. This means none of the procedures of this file
6700 belong in the tclIndex. Another indicator that automatic regeneration
6701 of tclIndex is ill-advised.
6702
6703 2009-11-24 Donal K. Fellows <[email protected]>
6704
6705 * generic/tclOO.c (FinalizeAlloc, Tcl_NewObjectInstance):
6706 [Bug 2903011]: Make it an error to destroy an object in a constructor,
6707 and also make sure that an object is not deleted twice in the error
6708 case.
6709
6710 2009-11-24 Pat Thoyts <[email protected]>
6711
6712 * tests/fCmd.test: [Bug 2893771]: Teach [file stat] to handle locked
6713 * win/tclWinFile.c: files so that [file exists] no longer lies.
6714
6715 2009-11-23 Kevin Kenny <[email protected]>
6716
6717 * tests/fCmd.test (fCmd-30.1): Changed registry location of the 'My
6718 Documents' folder to the one that's correct for Windows 2000, XP,
6719 Server 2003, Vista, Server 2008, and Windows 7. (See
6720 http://support.microsoft.com/kb/310746)
6721
6722 2009-11-23 Jan Nijtmans <[email protected]>
6723
6724 * win/tclWinDde.c: #undef STATIC_BUILD, in order to make sure
6725 * win/tclWinReg.c: that Xxxxx_Init is always exported even when
6726 * generic/tclTest.c: Tcl is built static (otherwise we cannot
6727 create a DLL).
6728 * generic/tclThreadTest.c: Make all functions static, except
6729 TclThread_Init.
6730 * tests/fCmd.test: Enable fCmd-30.1 when registry is available.
6731 * win/tcl.m4: Fix ${SHLIB_LD_LIBS} definition, fix conflicts
6732 * win/Makefile.in: Simplifications related to tcl.m4 changes.
6733 * win/configure.in: Between static libraries and import library on
6734 windows.
6735 * win/configure: (regenerated)
6736 * win/makefile.vc: Add stub library to necessary link lines.
6737
6738 2009-11-23 Kevin B. Kenny <[email protected]>
6739
6740 * generic/tclThreadTest.c (NewTestThread): [Bug 2901803]: Further
6741 machinations to get NewTestThread actually to launch the thread, not
6742 just compile.
6743
6744 2009-11-22 Donal K. Fellows <[email protected]>
6745
6746 * generic/tclThreadTest.c (NewTestThread): [Bug 2901803]: Fix small
6747 error in function naming which blocked a threaded test build.
6748
6749 2009-11-19 Jan Nijtmans <[email protected]>
6750
6751 * win/Makefile.in: Create tcltest86.dll as dynamic Tcltest
6752 package.
6753 * generic/tclTest.c: Remove extraneous prototypes, follow-up to
6754 * generic/tclTestObj.c: [Bug 2883850]
6755 * tests/chanio.test: Test-cases for fixed [Bug 2849797]
6756 * tests/io.test:
6757 * tests/safe.test: Fix safe-10.1 and safe-10.4 test cases, making
6758 the wrong assumption that Tcltest is a static
6759 package.
6760 * generic/tclEncoding.c:[Bug 2857044]: Updated freeIntRepProc routines
6761 * generic/tclVar.c: so that they set the typePtr field to NULL so
6762 that the Tcl_Obj is not left in an
6763 inconsistent state.
6764 * unix/tcl.m4: [Patch 2883533]: tcl.m4 support for Haiku OS
6765 * unix/configure: autoconf-2.59
6766
6767 2009-11-19 Don Porter <[email protected]>
6768
6769 * unix/tclAppInit.c: [Bug 2883850, 2900542]: Repair broken build of
6770 * win/tclAppInit.c: the tcltest executable.
6771
6772 2009-11-19 Donal K. Fellows <[email protected]>
6773
6774 * library/auto.tcl (tcl_findLibrary):
6775 * library/clock.tcl (MakeUniquePrefixRegexp, MakeParseCodeFromFields)
6776 (SetupTimeZone, ProcessPosixTimeZone): Restored the use of a literal
6777 * library/history.tcl (HistAdd): 'then' when following a multi-
6778 * library/safe.tcl (interpConfigure): line test expresssion. It's an
6779 * library/tm.tcl (UnknownHandler): aid to readability then.
6780
6781 2009-11-19 Jan Nijtmans <[email protected]>
6782
6783 * generic/tclInt.h: Make all internal initialization
6784 * generic/tclTest.c: routines MODULE_SCOPE
6785 * generic/tclTestObj.c:
6786 * generic/tclTestProcBodyObj.c:
6787 * generic/tclThreadTest.c:
6788 * unix/Makefile.in: Fix [Bug 2883850]: pkgIndex.tcl doesn't
6789 * unix/tclAppInit.c: get created with static Tcl build
6790 * unix/tclXtTest.c:
6791 * unix/tclXtNotify.c:
6792 * unix/tclUnixTest.c:
6793 * win/Makefile.in:
6794 * win/tcl.m4:
6795 * win/configure: (regenerated)
6796 * win/tclAppInit.c:
6797 * win/tclWinDde.c: Always compile with Stubs.
6798 * win/tclWinReg.c:
6799 * win/tclWinTest.c:
6800
6801 2009-11-18 Jan Nijtmans <[email protected]>
6802
6803 * doc/CrtChannel.3: [Bug 2849797]: Fix channel name inconsistences
6804 * generic/tclIORChan.c: as suggested by DKF.
6805 * generic/tclIO.c: Minor *** POTENTIAL INCOMPATIBILITY ***
6806 because Tcl_CreateChannel() and derivatives
6807 now sometimes ignore their "chanName"
6808 argument.
6809
6810 * generic/tclAsync.c: Eliminate various gcc warnings (with -Wextra)
6811 * generic/tclBasic.c
6812 * generic/tclBinary.c
6813 * generic/tclCmdAH.c
6814 * generic/tclCmdIL.c
6815 * generic/tclCmdMZ.c
6816 * generic/tclCompile.c
6817 * generic/tclDate.c
6818 * generic/tclExecute.c
6819 * generic/tclDictObj.c
6820 * generic/tclIndexObj.c
6821 * generic/tclIOCmd.c
6822 * generic/tclIOUtil.c
6823 * generic/tclIORTrans.c
6824 * generic/tclOO.c
6825 * generic/tclZlib.c
6826 * generic/tclGetDate.y
6827 * win/tclWinInit.c
6828 * win/tclWinChan.c
6829 * win/tclWinConsole.c
6830 * win/tclWinNotify.c
6831 * win/tclWinReg.c
6832 * library/auto.tcl: Eliminate "then" keyword
6833 * library/clock.tcl
6834 * library/history.tcl
6835 * library/safe.tcl
6836 * library/tm.tcl
6837 * library/http/http.tcl: Eliminate unnecessary spaces
6838 * library/http1.0/http.tcl
6839 * library/msgcat/msgcat.tcl
6840 * library/opt/optparse.tcl
6841 * library/platform/platform.tcl
6842 * tools/tcltk-man2html.tcl
6843 * tools/tclZIC.tcl
6844 * tools/tsdPerf.c
6845
6846 2009-11-17 Andreas Kupries <[email protected]>
6847
6848 * unix/tclUnixChan.c (TtyParseMode): Partial undo of Donal's tidy-up
6849 from a few days ago (2009-11-9, not in ChangeLog). It seems that
6850 strchr is apparently a macro on AIX and reacts badly to preprocessor
6851 directives in its arguments.
6852
6853 2009-11-16 Alexandre Ferrieux <[email protected]>
6854
6855 * generic/tclEncoding.c: [Bug 2891556]: Fix and improve test to
6856 * generic/tclTest.c: detect similar manifestations in the future.
6857 * tests/encoding.test: Add tcltest support for finalization.
6858
6859 2009-11-15 Mo DeJong <[email protected]>
6860
6861 * win/tclWinDde.c: Avoid gcc compiler warning by explicitly casting
6862 DdeCreateStringHandle argument.
6863
6864 2009-11-12 Andreas Kupries <[email protected]>
6865
6866 * generic/tclIO.c (CopyData): [Bug 2895565]: Dropped bogosity which
6867 * tests/io.test: used the number of _written_ bytes or character to
6868 update the counters for the read bytes/characters. New test io-53.11.
6869 This is a forward port from the 8.5 branch.
6870
6871 2009-11-11 Don Porter <[email protected]>
6872
6873 * generic/tclClock.c (TclClockInit): Do not create [clock] support
6874 commands in safe interps.
6875
6876 2009-11-11 Jan Nijtmans <[email protected]>
6877
6878 * library/http/http.tcl (http::geturl): [Bug 2891171]: URL checking
6879 too strict when using multiple question marks.
6880 * tests/http.test
6881 * library/http/pkgIndex.tcl: Bump to http 2.8.2
6882 * unix/Makefile.in:
6883 * win/Makefile.in:
6884
6885 2009-11-11 Alexandre Ferrieux <[email protected]>
6886
6887 * generic/tclIO.c: Fix [Bug 2888099] (close discards ENOSPC error) by
6888 saving the errno from the first of two FlushChannel()s. Uneasy to
6889 test; might need specific channel drivers. Four-hands with aku.
6890
6891 2009-11-10 Pat Thoyts <[email protected]>
6892
6893 * tests/winFCmd.test: Cleanup directories that have been set chmod
6894 000. On Windows7 and Vista we really have no access and these were
6895 getting left behind.
6896 A few tests were changed to reflect the intent of the test where
6897 setting a directory chmod 000 should prevent any modification. This
6898 restriction was ignored on XP but is honoured on Vista
6899
6900 2009-11-10 Andreas Kupries <[email protected]>
6901
6902 * generic/tclBasic.c: Plug another leak in TCL_EVAL_DIRECT evaluation.
6903 Forward port from Tcl 8.5 branch, change by Don Porter.
6904
6905 * generic/tclObj.c: [Bug 2895323]: Plug memory leak in
6906 TclContinuationsEnter(). Forward port from Tcl 8.5 branch, change by
6907 Don Porter.
6908
6909 2009-11-09 Stuart Cassoff <[email protected]>
6910
6911 * win/README: [bug 2459744]: Removed outdated Msys + Mingw info.
6912
6913 2009-11-09 Andreas Kupries <[email protected]>
6914
6915 * generic/tclBasic.c (TclEvalObjEx): Moved the #280 decrement of
6916 refCount for the file path out of the branch after the whole
6917 conditional, closing a memory leak. Added clause on structure type to
6918 prevent seg.faulting. Forward port from valgrinding the Tcl 8.5
6919 branch.
6920
6921 * tests/info.test: Resolve ambiguous resolution of variable "res".
6922 Forward port from 8.5
6923
6924 2009-11-08 Donal K. Fellows <[email protected]>
6925
6926 * doc/string.n (bytelength): Noted that this command is not a good
6927 thing to use, and suggested a better alternatve. Also factored out the
6928 description of the indices into its own section.
6929
6930 2009-11-07 Pat Thoyts <[email protected]>
6931
6932 * tests/fCmd.test: [Bug 2891026]: Exclude tests using chmod 555
6933 directories on vista and win7. The current user has access denied and
6934 so cannot rename the directory without admin privileges.
6935
6936 2009-11-06 Andreas Kupries <[email protected]>
6937
6938 * library/safe.tcl (::safe::Setup): Added documentation of the
6939 contents of the state array. Also killed the 'InterpState' procedure
6940 with its upleveled variable/upvar combination, and replaced all uses
6941 with 'namespace upvar'.
6942
6943 2009-11-05 Andreas Kupries <[email protected]>
6944
6945 * library/safe.tcl: A series of patches which bring the SafeBase up to
6946 date with code guidelines, Tcl's features, also eliminating a number
6947 of inefficiencies along the way.
6948 (1) Changed all procedure names to be fully qualified.
6949 (2) Moved the procedures out of the namespace eval. Kept their
6950 locations. IOW, broke the namespace eval apart into small sections not
6951 covering the procedure definitions.
6952 (3) Reindented the code. Just lots of whitespace changes.
6953 Functionality unchanged.
6954 (4) Moved the multiple namespace eval's around. Command export at the
6955 top, everything else (var decls, argument parsing setup) at the
6956 bottom.
6957 (5) Moved the argument parsing setup into a procedure called when the
6958 code is loaded. Easier management of temporary data.
6959 (6) Replaced several uses of 'Set' with calls to the new procedure
6960 'InterpState' and direct access to the per-slave state array.
6961 (7) Replaced the remaining uses of 'Set' and others outside of the
6962 path/token handling, and deleted a number of procedures related to
6963 state array access which are not used any longer.
6964 (8) Converted the path token system to cache normalized paths and path
6965 <-> token conversions. Removed more procedures not used any longer.
6966 Removed the test cases 4.3 and 4.4 from safe.test. They were testing
6967 the now deleted command "InterpStateName".
6968 (9) Changed the log command setup so that logging is compiled out
6969 completely when disabled (default).
6970 (10) Misc. cleanup. Inlined IsInterp into CheckInterp, its only user.
6971 Consistent 'return -code error' for error reporting. Updated to use
6972 modern features (lassign, in/ni, dicts). The latter are used to keep a
6973 reverse path -> token map and quicker check of existence.
6974 (11) Fixed [Bug 2854929]: Recurse into all subdirs under all TM root
6975 dirs and put them on the access path.
6976
6977 2009-11-02 Kevin B. Kenny <[email protected]>
6978
6979 * library/tzdata/Asia/Novokuznetsk: New tzdata locale for Kemerovo
6980 oblast', which now keeps Novosibirsk time and not Kranoyarsk time.
6981 * library/tzdata/Asia/Damascus: Syrian DST changes.
6982 * library/tzdata/Asia/Hong_Kong: Hong Kong historic DST corrections.
6983 Olson tzdata2009q.
6984
6985 2009-11-02 Donal K. Fellows <[email protected]>
6986
6987 * doc/object.n (DESCRIPTION): Substantive revision to make it clearer
6988 what the fundamental semantics of an object actually are.
6989
6990 2009-11-01 Joe Mistachkin <[email protected]>
6991
6992 * doc/Cancel.3: Minor cosmetic fixes.
6993 * win/makefile.vc: Make htmlhelp target work again. An extra set of
6994 double quotes around the definition of the HTML help compiler tool
6995 appears to be required. Previously, there was one set of double
6996 quotes around the definition of the tool and one around the actual
6997 invocation. This led to confusion because it was the only such tool
6998 path to include double quotes around its invocation. Also, it was
6999 somewhat inflexible in the event that somebody needed to override the
7000 tool command to include arguments. Therefore, even though it may look
7001 "wrong", there are now two double quotes on either side of the tool
7002 path definition. This fixes the problem that currently prevents the
7003 htmlhelp target from building and maintains flexibility in case
7004 somebody needs to override it via the command line or an environment
7005 variable.
7006
7007 2009-11-01 Joe English <[email protected]>
7008
7009 * doc/Eval.3, doc/Cancel.3: Move TIP#285 routines out of Eval.3 into
7010 their own manpage.
7011
7012 2009-10-31 Donal K. Fellows <[email protected]>
7013
7014 * generic/tclBasic.c (ExprRoundFunc): [Bug 2889593]: Correctly report
7015 the expected number of arguments when generating an error for round().
7016
7017 2009-10-30 Pat Thoyts <[email protected]>
7018
7019 * tests/tcltest.test: When creating the notwritabledir we deny the
7020 current user access to delete the file. We must grant this right when
7021 we cleanup. Required on Windows 7 when the user does not automatically
7022 have administrator rights.
7023
7024 2009-10-29 Don Porter <[email protected]>
7025
7026 * generic/tcl.h: Changed the typedef for the mp_digit type
7027 from:
7028 typedef unsigned long mp_digit;
7029 to:
7030 typedef unsigned int mp_digit;
7031 For 32-bit builds where "long" and "int" are two names for the same
7032 thing, this is no change at all. For 64-bit builds, though, this
7033 causes the dp[] array of an mp_int to be made up of 32-bit elements
7034 instead of 64-bit elements. This is a huge improvement because
7035 details elsewhere in the mp_int implementation cause only 28 bits of
7036 each element to be actually used storing number data. Without this
7037 change bignums are over 50% wasted space on 64-bit systems. [Bug
7038 2800740].
7039
7040 ***POTENTIAL INCOMPATIBILITY***
7041 For 64-bit builds, callers of routines with (mp_digit) or (mp_digit *)
7042 arguments *will*, and callers of routines with (mp_int *) arguments
7043 *may* suffer both binary and stubs incompatibilities with Tcl releases
7044 8.5.0 - 8.5.7. Such possibilities should be checked, and if such
7045 incompatibilities are present, suitable [package require] requirements
7046 on the Tcl release should be put in place to keep such built code
7047 [load]-ing only in Tcl interps that are compatible.
7048
7049 2009-10-29 Donal K. Fellows <[email protected]>
7050
7051 * tests/dict.test: Make variable-clean and simplify tests by utilizing
7052 the fact that dictionaries have defined orders.
7053
7054 * generic/tclZlib.c (TclZlibCmd): Remove accidental C99-ism which
7055 reportedly makes the AIX native compiler choke.
7056
7057 2009-10-29 Kevin B. Kenny <[email protected]>
7058
7059 * library/clock.tcl (LocalizeFormat):
7060 * tests/clock.test (clock-67.1):
7061 [Bug 2819334]: Corrected a problem where '%%' followed by a letter in
7062 a format group could expand recursively: %%R would turn into %%H:%M:%S
7063
7064 2009-10-28 Don Porter <[email protected]>
7065
7066 * generic/tclLiteral.c: [Bug 2888044]: Fixed 2 bugs.
7067 * tests/info.test: First, as noted in the comments of the
7068 TclCleanupLiteralTable routine, since the teardown of the intrep of
7069 one Tcl_Obj can cause the teardown of others in the same table, the
7070 full table cleanup must be done with care, but the code did not
7071 contain the same care demanded in the comment. Second, recent
7072 additions to the info.test file had poor hygiene, leaving an array
7073 variable ::a lying around, which breaks later interp.test tests during
7074 a -singleproc 1 run of the test suite.
7075
7076 2009-10-28 Kevin B. Kenny <[email protected]>
7077
7078 * tests/fileName.test (fileName-20.[78]): Corrected poor test
7079 hygiene (failure to save and restore the working directory) that
7080 caused these two tests to fail on Windows (and [Bug 2806250] to be
7081 reopened).
7082
7083 2009-10-27 Don Porter <[email protected]>
7084
7085 * generic/tclPathObj.c: [Bug 2884203]: Missing refcount on cached
7086 normalized path caused crashes.
7087
7088 2009-10-27 Kevin B. Kenny <[email protected]>
7089
7090 * library/clock.tcl (ParseClockScanFormat): [Bug 2886852]: Corrected a
7091 problem where [clock scan] didn't load the timezone soon enough when
7092 processing a time format that lacked a complete date.
7093 * tests/clock.test (clock-66.1):
7094 Added a test case for the above bug.
7095 * library/tzdata/America/Argentina/Buenos_Aires:
7096 * library/tzdata/America/Argentina/Cordoba:
7097 * library/tzdata/America/Argentina/San_Luis:
7098 * library/tzdata/America/Argentina/Tucuman:
7099 New DST rules for Argentina. (Olson's tzdata2009p.)
7100
7101 2009-10-26 Don Porter <[email protected]>
7102
7103 * unix/Makefile.in: Remove $(PACKAGE).* and prototype from the
7104 `make distclean` target. Completes 2009-10-20 commit.
7105
7106 2009-10-24 Kevin B. Kenny <[email protected]>
7107
7108 * library/clock.tcl (ProcessPosixTimeZone):
7109 Corrected a regression in the fix to [Bug 2207436] that caused
7110 [clock] to apply EU daylight saving time rules in the US.
7111 Thanks to Karl Lehenbauer for reporting this regression.
7112 * tests/clock.test (clock-52.4):
7113 Added a regression test for the above bug.
7114 * library/tzdata/Asia/Dhaka:
7115 * library/tzdata/Asia/Karachi:
7116 New DST rules for Bangladesh and Pakistan. (Olson's tzdata2009o.)
7117
7118 2009-10-23 Andreas Kupries <[email protected]>
7119
7120 * generic/tclIO.c (FlushChannel): Skip OutputProc for low-level
7121 0-length writes. When closing pipes which have already been closed
7122 not skipping leads to spurious SIG_PIPE signals. Reported by
7123 Mikhail Teterin <[email protected]>.
7124
7125 2009-10-22 Donal K. Fellows <[email protected]>
7126
7127 * generic/tclOOBasic.c (TclOO_Object_VarName): [Bug 2883857]: Allow
7128 the passing of array element names through this method.
7129
7130 2009-10-21 Donal K. Fellows <[email protected]>
7131
7132 * generic/tclPosixStr.c: [Bug 2882561]: Work around oddity on Haiku OS
7133 where SIGSEGV and SIGBUS are the same value.
7134
7135 * generic/tclTrace.c (StringTraceProc): [Bug 2881259]: Added back cast
7136 to work around silly bug in MSVC's handling of auto-casting.
7137
7138 2009-10-20 Don Porter <[email protected]>
7139
7140 * unix/Makefile.in: Removed the long outdated and broken targets
7141 package-* that were for building Solaris packages. Appears that the
7142 pieces needed for these targets to function have never been present in
7143 the current era of Tcl development and belong completely to Tcl
7144 prehistory.
7145
7146 2009-10-19 Don Porter <[email protected]>
7147
7148 * generic/tclIO.c: [Patch 2107634]: Revised ReadChars and
7149 FilterInputBytes routines to permit reads to continue up to the string
7150 limits of Tcl values. Before revisions, large read attempts could
7151 panic when as little as half the limiting value length was reached.
7152 Thanks to Sean Morrison and Bob Parker for their roles in the fix.
7153
7154 2009-10-18 Joe Mistachkin <[email protected]>
7155
7156 * generic/tclObj.c (TclDbDumpActiveObjects, TclDbInitNewObj)
7157 (Tcl_DbIncrRefCount, Tcl_DbDecrRefCount, Tcl_DbIsShared):
7158 [Bug 2871908]: Enforce separation of concerns between the lineCLPtr
7159 and objThreadMap thread specific data members.
7160
7161 2009-10-18 Joe Mistachkin <[email protected]>
7162
7163 * tests/thread.test (thread-4.[345]): [Bug 1565466]: Correct tests to
7164 save their error state before the final call to threadReap just in
7165 case it triggers an "invalid thread id" error. This error can occur
7166 if one or more of the target threads has exited prior to the attempt
7167 to send it an asynchronous exit command.
7168
7169 2009-10-17 Donal K. Fellows <[email protected]>
7170
7171 * generic/tclVar.c (UnsetVarStruct, TclDeleteNamespaceVars)
7172 (TclDeleteCompiledLocalVars, DeleteArray):
7173 * generic/tclTrace.c (Tcl_UntraceVar2): [Bug 2629338]: Stop traces
7174 that are deleted part way through (a feature used by tdom) from
7175 causing freed memory to be accessed.
7176
7177 2009-10-08 Donal K. Fellows <[email protected]>
7178
7179 * generic/tclDictObj.c (DictIncrCmd): [Bug 2874678]: Don't leak any
7180 bignums when doing [dict incr] with a value.
7181 * tests/dict.test (dict-19.3): Memory leak detection code.
7182
7183 2009-10-07 Andreas Kupries <[email protected]>
7184
7185 * generic/tclObj.c: [Bug 2871908]: Plug memory leaks of objThreadMap
7186 and lineCLPtr hashtables. Also make the names of the continuation
7187 line information initialization and finalization functions more
7188 consistent. Patch supplied by Joe Mistachkin <[email protected]>.
7189
7190 * generic/tclIORChan.c (ErrnoReturn): Replace hardwired constant 11
7191 with proper errno #define, EAGAIN. What was I thinking? The BSD's have
7192 a different errno assignment and break with the hardwired number.
7193 Reported by emiliano on the chat.
7194
7195 2009-10-06 Don Porter <[email protected]>
7196
7197 * generic/tclInterp.c (SlaveEval): Agressive stomping of internal reps
7198 was added as part of the NRE patch of 2008-07-13. This doesn't appear
7199 to actually be needed, and it hurts quite a bit when large lists lose
7200 their intreps and require reparsing. Thanks to Ashok Nadkarni for
7201 reporting the problem.
7202
7203 * generic/tclTomMathInt.h (new): Public header tclTomMath.h had
7204 * generic/tclTomMath.h: dependence on private headers, breaking use
7205 * generic/tommath.h: by extensions [Bug 1941434].
7206
7207 2009-10-05 Andreas Kupries <[email protected]>
7208
7209 * library/safe.tcl (AliasGlob): Fixed conversion of catch to
7210 try/finally, it had an 'on ok msg' branch missing, causing a silent
7211 error immediately, and bogus glob results, breaking search for Tcl
7212 modules.
7213
7214 2009-10-04 Daniel Steffen <[email protected]>
7215
7216 * macosx/tclMacOSXBundle.c: [Bug 2569449]: Workaround CF memory
7217 * unix/tclUnixInit.c: managment bug in Mac OS X 10.4 &
7218 earlier.
7219
7220 2009-10-02 Kevin B. Kenny <[email protected]>
7221
7222 * library/tzdata/Africa/Cairo:
7223 * library/tzdata/Asia/Gaza:
7224 * library/tzdata/Asia/Karachi:
7225 * library/tzdata/Pacific/Apia: Olson's tzdata2009n.
7226
7227 2009-09-29 Don Porter <[email protected]>
7228
7229 * generic/tclDictObj.c: [Bug 2857044]: Updated freeIntRepProc
7230 * generic/tclExecute.c: routines so that they set the typePtr
7231 * generic/tclIO.c: field to NULL so that the Tcl_Obj is
7232 * generic/tclIndexObj.c: not left in an inconsistent state.
7233 * generic/tclInt.h:
7234 * generic/tclListObj.c:
7235 * generic/tclNamesp.c:
7236 * generic/tclOOCall.c:
7237 * generic/tclObj.c:
7238 * generic/tclPathObj.c:
7239 * generic/tclProc.c:
7240 * generic/tclRegexp.c:
7241 * generic/tclStringObj.c:
7242
7243 * generic/tclAlloc.c: Cleaned up various routines in the
7244 * generic/tclCkalloc.c: call stacks for memory allocation to
7245 * generic/tclInt.h: guarantee that any size values computed
7246 * generic/tclThreadAlloc.c: are within the domains of the routines
7247 they get passed to. [Bugs 2557696 and 2557796].
7248
7249 2009-09-28 Don Porter <[email protected]>
7250
7251 * generic/tclCmdMZ.c: Replaced TclProcessReturn() calls with
7252 * tests/error.test: Tcl_SetReturnOptions() calls as a simple fix
7253 for [Bug 2855247]. Thanks to Anton Kovalenko for the report and fix.
7254 Additional fixes for other failures demonstrated by new tests.
7255
7256 2009-09-27 Don Porter <[email protected]>
7257
7258 * tests/error.test (error-15.8.*): Coverage tests illustrating
7259 flaws in the propagation of return options by [try].
7260
7261 2009-09-26 Donal K. Fellows <[email protected]>
7262
7263 * unix/tclooConfig.sh, win/tclooConfig.sh: [Bug 2026844]: Added dummy
7264 versions of tclooConfig.sh that make it easier to build extensions
7265 against both Tcl8.5+TclOO-standalone and Tcl8.6.
7266
7267 2009-09-24 Don Porter <[email protected]>
7268
7269 TIP #356 IMPLEMENTATION
7270
7271 * generic/tcl.decls: Promote internal routine TclNRSubstObj()
7272 * generic/tclCmdMZ.c: to public Tcl_NRSubstObj(). Still needs docs.
7273 * generic/tclCompile.c:
7274 * generic/tclInt.h:
7275
7276 * generic/tclDecls.h: make genstubs
7277 * generic/tclStubInit.c:
7278
7279 2009-09-23 Miguel Sofer <[email protected]>
7280
7281 * doc/namespace.n: the description of [namespace unknown] failed
7282 to mention [namespace path]: fixed. Thx emiliano.
7283
7284 2009-09-21 Mo DeJong <[email protected]>
7285
7286 * tests/regexp.test: Added check for error message from
7287 unbalanced [] in regexp. Added additional simple test cases
7288 of basic regsub command.
7289
7290 2009-09-21 Don Porter <[email protected]>
7291
7292 * generic/tclCompile.c: Correct botch in the conversion of
7293 Tcl_SubstObj(). Thanks to Kevin Kenny for detection and report.
7294
7295 2009-09-17 Don Porter <[email protected]>
7296
7297 * generic/tclCompile.c: Re-implement Tcl_SubstObj() as a simple
7298 * generic/tclParse.c: wrapper around TclNRSubstObj(). This has
7299 * tests/basic.test: the effect of caching compiled bytecode in
7300 * tests/parse.test: the value to be substituted. Note that
7301 Tcl_SubstObj() now exists only for extensions. Tcl itself no longer
7302 makes any use of it. Note also that TclSubstTokens() is now reachable
7303 only by Tcl_EvalEx() and Tcl_ParseVar() so tests aiming to test its
7304 functioning needed adjustment to still have the intended effect.
7305
7306 2009-09-16 Alexandre Ferrieux <[email protected]>
7307
7308 * generic/tclObj.c: Extended ::tcl::unsupported::representation.
7309
7310 2009-09-11 Don Porter <[email protected]>
7311
7312 * generic/tclBasic.c: Completed the NR-enabling of [subst].
7313 * generic/tclCmdMZ.c: [Bug 2314561].
7314 * generic/tclCompCmds.c:
7315 * generic/tclCompile.c:
7316 * generic/tclInt.h:
7317 * tests/coroutine.test:
7318 * tests/parse.test:
7319
7320 2009-09-11 Donal K. Fellows <[email protected]>
7321
7322 * tests/http.test: Added in cleaning up of http tokens for each test
7323 to reduce amount of global-variable pollution.
7324
7325 2009-09-10 Donal K. Fellows <[email protected]>
7326
7327 * library/http/http.tcl (http::Event): [Bug 2849860]: Handle charset
7328 names in double quotes; some servers like generating them like that.
7329
7330 2009-09-07 Don Porter <[email protected]>
7331
7332 * generic/tclParse.c: [Bug 2850901]: Corrected line counting error
7333 * tests/into.test: in multi-command script substitutions.
7334
7335 2009-09-07 Daniel Steffen <[email protected]>
7336
7337 * generic/tclExecute.c: Fix potential uninitialized variable use and
7338 * generic/tclFCmd.c: null dereference flagged by clang static
7339 * generic/tclProc.c: analyzer.
7340 * generic/tclTimer.c:
7341 * generic/tclUtf.c:
7342
7343 * generic/tclExecute.c: Silence false positives from clang static
7344 * generic/tclIO.c: analyzer about potential null dereference.
7345 * generic/tclScan.c:
7346 * generic/tclCompExpr.c:
7347
7348 2009-09-04 Don Porter <[email protected]>
7349
7350 * generic/tclCompCmds.c (TclCompileSubstCmd): [Bug 2314561]:
7351 * generic/tclBasic.c: Added a bytecode compiler routine for the
7352 * generic/tclCmdMZ.c: [subst] command. This is a partial solution to
7353 * generic/tclCompile.c: the need to NR-enable [subst] since bytecode
7354 * generic/tclCompile.h: execution is already NR-enabled. Two new
7355 * generic/tclExecute.c: bytecode instructions, INST_NOP and
7356 * generic/tclInt.h: INST_RETURN_CODE_BRANCH were added to support
7357 * generic/tclParse.c: the new routine. INST_RETURN_CODE_BRANCH is
7358 * tests/basic.test: likely to be useful in any future effort to
7359 * tests/info.test: add a bytecode compiler routine for [try].
7360 * tests/parse.test:
7361
7362 2009-09-03 Donal K. Fellows <[email protected]>
7363
7364 * doc/LinkVar.3: [Bug 2844962]: Added documentation of issues relating
7365 to use of this API in a multi-threaded environment.
7366
7367 2009-09-01 Andreas Kupries <[email protected]>
7368
7369 * generic/tclIORTrans.c (ReflectInput): Remove error response to
7370 0-result from method 'limit?' of transformations. Return the number of
7371 copied bytes instead, which is possibly nothing. The latter then
7372 triggers EOF handling in the higher layers, making the 0-result of
7373 limit? the way to inject artificial EOF's into the data stream.
7374
7375 2009-09-01 Don Porter <[email protected]>
7376
7377 * library/tcltest/tcltest.tcl: Bump to tcltest 2.3.2 after revision
7378 * library/tcltest/pkgIndex.tcl: to verbose error message.
7379 * unix/Makefile.in:
7380 * win/Makefile.in:
7381
7382 2009-08-27 Don Porter <[email protected]>
7383
7384 * generic/tclStringObj.c: [Bug 2845535]: A few more string
7385 overflow cases in [format].
7386
7387 2009-08-25 Andreas Kupries <[email protected]>
7388
7389 * generic/tclBasic.c (Tcl_CreateInterp, Tcl_EvalTokensStandard)
7390 (Tcl_EvalEx, TclEvalEx, TclAdvanceContinuations, TclNREvalObjEx):
7391 * generic/tclCmdMZ.c (Tcl_SwitchObjCmd, TclListLines):
7392 * generic/tclCompCmds.c (*):
7393 * generic/tclCompile.c (TclSetByteCodeFromAny, TclInitCompileEnv)
7394 (TclFreeCompileEnv, TclCompileScript, TclCompileTokens):
7395 * generic/tclCompile.h (CompileEnv):
7396 * generic/tclInt.h (ContLineLoc, Interp):
7397 * generic/tclObj.c (ThreadSpecificData, ContLineLocFree)
7398 (TclThreadFinalizeObjects, TclInitObjSubsystem, TclContinuationsEnter,
7399 (TclContinuationsEnterDerived, TclContinuationsCopy, TclFreeObj)
7400 (TclContinuationsGet):
7401 * generic/tclParse.c (TclSubstTokens, Tcl_SubstObj):
7402 * generic/tclProc.c (TclCreateProc):
7403 * generic/tclVar.c (TclPtrSetVar):
7404 * tests/info.test (info-30.0-24):
7405
7406 Extended the parser, compiler, and execution engine with code and
7407 attendant data structures tracking the position of continuation lines
7408 which are not visible in the resulting script Tcl_Obj*'s, to properly
7409 account for them while counting lines for #280.
7410
7411 2009-08-24 Daniel Steffen <[email protected]>
7412
7413 * generic/tclInt.h: Annotate Tcl_Panic as noreturn for clang static
7414 analyzer in PURIFY builds, replacing preprocessor/assert technique.
7415
7416 * macosx/tclMacOSXNotify.c: Fix multiple issues with nested event loops
7417 when CoreFoundation notifier is running in embedded mode. (Fixes
7418 problems in TkAqua Cocoa reported by Youness Alaoui on tcl-mac)
7419
7420 2009-08-21 Don Porter <[email protected]>
7421
7422 * generic/tclFileName.c: Correct regression in [Bug 2837800] fix.
7423 * tests/fileName.test:
7424
7425 2009-08-20 Don Porter <[email protected]>
7426
7427 * generic/tclFileName.c: [Bug 2837800]: Correct the result produced by
7428 [glob */test] when * matches something like ~foo.
7429
7430 * generic/tclPathObj.c: [Bug 2806250]: Prevent the storage of strings
7431 starting with ~ in the "tail" part (normPathPtr field) of the path
7432 intrep when PATHFLAGS != 0. This establishes the assumptions relied
7433 on elsewhere that the name stored there is a relative path. Also
7434 refactored to make an AppendPath() routine instead of the cut/paste
7435 stanzas that were littered throughout.
7436
7437 2009-08-20 Donal K. Fellows <[email protected]>
7438
7439 * generic/tclCmdIL.c (TclNRIfObjCmd): [Bug 2823276]: Make [if]
7440 NRE-safe on all arguments when interpreted.
7441 (Tcl_LsortObjCmd): Close off memory leak.
7442
7443 2009-08-19 Donal K. Fellows <[email protected]>
7444
7445 * generic/tclCmdAH.c (TclNRForObjCmd, etc.): [Bug 2823276]: Make [for]
7446 and [while] into NRE-safe commands, even when interpreted.
7447
7448 2009-08-18 Don Porter <[email protected]>
7449
7450 * generic/tclPathObj.c: [Bug 2837800]: Added NULL check to prevent
7451 * tests/fileName.test: crashes during [glob].
7452
7453 2009-08-16 Jan Nijtmans <[email protected]>
7454
7455 * unix/dltest/pkge.c: const addition
7456 * unix/tclUnixThrd.c: Use <pthread.h> in stead of "pthread.h"
7457 * win/tclWinDde.c: Eliminate some more gcc warnings
7458 * win/tclWinReg.c:
7459 * generic/tclInt.h: Change ForIterData, make it const-safe.
7460 * generic/tclCmdAH.c:
7461
7462 2009-08-12 Don Porter <[email protected]>
7463
7464 TIP #353 IMPLEMENTATION
7465
7466 * doc/NRE.3: New public routine Tcl_NRExprObj() permits
7467 * generic/tcl.decls: extension commands to evaluate Tcl expressions
7468 * generic/tclBasic.c: in NR-enabled command procedures.
7469 * generic/tclCmdAH.c:
7470 * generic/tclExecute.c:
7471 * generic/tclInt.h:
7472 * generic/tclObj.c:
7473 * tests/expr.test:
7474
7475 * generic/tclDecls.h: make genstubs
7476 * generic/tclStubInit.c:
7477
7478 2009-08-06 Andreas Kupries <[email protected]>
7479
7480 * doc/refchan.n [Bug 2827000]: Extended the implementation of
7481 * generic/tclIORChan.c: reflective channels (TIP 219, method
7482 * tests/ioCmd.test: 'read'), enabling handlers to signal EAGAIN to
7483 indicate 'no data, but not at EOF either', and other system
7484 errors. Updated documentation, extended testsuite (New test cases
7485 iocmd*-23.{9,10}).
7486
7487 2009-08-02 Miguel Sofer <[email protected]>
7488
7489 * tests/coroutine.test: fix testfile cleanup
7490
7491 2009-08-02 Donal K. Fellows <[email protected]>
7492
7493 * generic/tclObj.c (Tcl_RepresentationCmd): Added an unsupported
7494 command for reporting the representation of an object. Result string
7495 is deliberately a bit obstructive so that people are not encouraged to
7496 make code that depends on it; it's a debugging tool only!
7497
7498 * unix/tclUnixFCmd.c (GetOwnerAttribute, SetOwnerAttribute)
7499 (GetGroupAttribute, SetGroupAttribute): [Bug 1942222]: Stop calling
7500 * unix/tclUnixFile.c (TclpGetUserHome): endpwent() and endgrent();
7501 they've been unnecessary for ages.
7502
7503 2009-08-02 Jan Nijtmans <[email protected]>
7504
7505 * win/tclWin32Dll.c: Eliminate TclWinResetInterfaceEncodings, since it
7506 * win/tclWinInit.c: does exactly the same as TclWinEncodingsCleanup,
7507 * win/tclWinInt.h: make sure that tclWinProcs and
7508 tclWinTCharEncoding are always set and reset
7509 concurrently.
7510 * win/tclWinFCmd.c: Correct check for win95
7511
7512 2009-07-31 Don Porter <[email protected]>
7513
7514 * generic/tclStringObj.c: [Bug 2830354]: Corrected failure to
7515 * tests/format.test: grow buffer when format spec request
7516 large width floating point values. Thanks to Clemens Misch.
7517
7518 2009-07-26 Donal K. Fellows <[email protected]>
7519
7520 * library/auto.tcl (tcl_findLibrary, auto_mkindex):
7521 * library/package.tcl (pkg_mkIndex, tclPkgUnknown, MacOSXPkgUnknown):
7522 * library/safe.tcl (interpAddToAccessPath, interpDelete, AliasGlob):
7523 (AliasSource, AliasLoad, AliasEncoding):
7524 * library/tm.tcl (UnknownHandler): Simplify by swapping some [catch]
7525 gymnastics for use of [try].
7526
7527 2009-07-26 Alexandre Ferrieux <[email protected]>
7528
7529 * tools/genStubs.tcl: Forced LF translation when generating .h's to
7530 avoid spurious diffs when regenerating on a Windows box.
7531
7532 2009-07-26 Jan Nijtmans <[email protected]>
7533
7534 * win/Makefile.in: [Bug 2827066]: msys build --enable-symbols broken
7535 * win/tcl.m4: And modified the same for unicows.dll, as a
7536 * win/configure: preparation for [Enh 2819611].
7537
7538 2009-07-25 Donal K. Fellows <[email protected]>
7539
7540 * library/history.tcl (history): Reworked the history mechanism in
7541 terms of ensembles, rather than the ad hoc ensemble-lite mechanism
7542 used previously.
7543
7544 2009-07-24 Donal K. Fellows <[email protected]>
7545
7546 * doc/self.n (self class): [Bug 2704302]: Add some text to make it
7547 clearer how to get the name of the current object's class.
7548
7549 2009-07-23 Andreas Kupries <[email protected]>
7550
7551 * generic/tclIO.c (Tcl_GetChannelHandle): [Bug 2826248]: Do not crash
7552 * generic/tclPipe.c (FileForRedirect): for getHandleProc == NULL, this
7553 is allowed. Provide a nice error message in the bypass area. Updated
7554 caller to check the bypass for a mesage. Bug reported by Andy
7555 Sonnenburg <[email protected]>
7556
7557 2009-07-23 Joe Mistachkin <[email protected]>
7558
7559 * generic/tclNotify.c: [Bug 2820349]: Ensure that queued events are
7560 freed once processed.
7561
7562 2009-07-22 Jan Nijtmans <[email protected]>
7563
7564 * macosx/tclMacOSXFCmd.c: CONST -> const
7565 * generic/tclGetDate.y:
7566 * generic/tclDate.c:
7567 * generic/tclLiteral.c: (char *) cast in ckfree call
7568 * generic/tclPanic.c: [Feature Request 2814786]: remove TclpPanic
7569 * generic/tclInt.h
7570 * unix/tclUnixPort.h
7571 * win/tclWinPort.h
7572
7573 2009-07-22 Alexandre Ferrieux <[email protected]>
7574
7575 * generic/tclEvent.c: [Bug 2001201 again]: Refined the 20090617 patch
7576 on [exit] streamlining, so that it now correctly calls thread exit
7577 handlers for the calling thread, including <Destroy> bindings in Tk.
7578
7579 2009-07-21 Kevin B. Kenny <[email protected]>
7580
7581 * library/tzdata/Asia/Dhaka:
7582 * library/tzdata/Indian/Mauritius: Olson's tzdata2009k.
7583
7584 2009-07-20 Donal K. Fellows <[email protected]>
7585
7586 * generic/tclCmdMZ.c (StringIsCmd): Reorganize so that [string is] is
7587 more efficient when parsing things that are correct, at a cost of
7588 making the empty string test slightly more costly. With this, the cost
7589 of doing [string is integer -strict $x] matches [catch {expr {$x+0}}]
7590 in the successful case, and greatly outstrips it in the failing case.
7591
7592 2009-07-19 Donal K. Fellows <[email protected]>
7593
7594 * generic/tclOO.decls, generic/tclOO.c (Tcl_GetObjectName): Expose a
7595 function for efficiently returning the current name of an object.
7596
7597 2009-07-18 Daniel Steffen <[email protected]>
7598
7599 * unix/Makefile.in: Define NDEBUG in optimized (non-symbols) build to
7600 disable NRE assert()s and threaded allocator range checks.
7601
7602 2009-07-16 Don Porter <[email protected]>
7603
7604 * generic/tclBinary.c: Removed unused variables.
7605 * generic/tclCmdIL.c:
7606 * generic/tclCompile.c:
7607 * generic/tclExecute.c:
7608 * generic/tclHash.c:
7609 * generic/tclIOUtil.c:
7610 * generic/tclVar.c:
7611
7612 * generic/tclBasic.c: Silence compiler warnings about ClientData.
7613 * generic/tclProc.c:
7614
7615 * generic/tclScan.c: Typo in ACCEPT_NAN configuration.
7616
7617 * generic/tclStrToD.c: [Bug 2819200]: Set floating point control
7618 register on MIPS systems so that the gradual underflow expected by Tcl
7619 is in effect.
7620
7621 2009-07-15 Donal K. Fellows <[email protected]>
7622
7623 * generic/tclInt.h (Namespace): Added machinery to allow
7624 * generic/tclNamesp.c (many functions): reduction of memory used
7625 * generic/tclResolve.c (BumpCmdRefEpochs): by namespaces. Currently
7626 #ifdef'ed out because of compatibility concerns.
7627
7628 * generic/tclInt.decls: Added four functions for better integration
7629 with itcl-ng.
7630
7631 2009-07-14 Kevin B. Kenny <[email protected]>
7632
7633 * generic/tclInt.h (TclNRSwitchObjCmd):
7634 * generic/tclBasic.c (builtInCmds):
7635 * generic/tclCmdMZ.c (Tcl_SwitchObjCmd):
7636 * tests/switch.test (switch-15.1):
7637 [Bug 2821401]: Make non-bytecoded [switch] command aware of NRE.
7638
7639 2009-07-13 Andreas Kupries <[email protected]>
7640
7641 * generic/tclCompile.c (TclInitCompileEnv, EnterCmdWordIndex)
7642 (TclCleanupByteCode, TclCompileScript):
7643 * generic/tclExecute.c (TclCompileObj, TclExecuteByteCode):
7644 * tclCompile.h (ExtCmdLoc):
7645 * tclInt.h (ExtIndex, CFWordBC, CmdFrame):
7646 * tclBasic.c (DeleteInterpProc, TclArgumentBCEnter)
7647 (TclArgumentBCRelease, TclArgumentGet, SAVE_CONTEXT)
7648 (RESTORE_CONTEXT, NRCoroutineExitCallback, TclNRCoroutineObjCmd):
7649 * generic/tclCmdAH.c (TclNRForObjCmd, TclNRForIterCallback,
7650 (ForNextCallback):
7651 * generic/tclCmdMZ.c (TclNRWhileObjCmd):
7652
7653 Extended the bytecode compiler initialization to recognize the
7654 compilation of whole files (NRE enabled 'source' command) and switch
7655 to the counting of absolute lines in that case.
7656
7657 Further extended the bytecode compiler to track the start line in the
7658 generated information, and modified the bytecode execution to
7659 recompile an object if the location as per the calling context doesn't
7660 match the location saved in the bytecode. This part could be optimized
7661 more by using more memory to keep all possibilities which occur
7662 around, or by just adjusting the location information instead of a
7663 total recompile.
7664
7665 Reworked the handling of literal command arguments in bytecode to be
7666 saved (compiler) and used (execution) per command (See the
7667 TCL_INVOKE_STK* instructions), and not per the whole bytecode. This,
7668 and the previous change remove the problems with location data caused
7669 by literal sharing (across whole files, but also proc bodies).
7670 Simplified the associated datastructures (ExtIndex is gone, as is the
7671 function EnterCmdWordIndex).
7672
7673 The last change causes the hashtable 'lineLABCPtr' to be state which
7674 has to be kept per coroutine, like the CmdFrame stack. Reworked the
7675 coroutine support code to create, delete and switch the information as
7676 needed. Further reworked the tailcall command as well, it has to pop
7677 its own arguments when run in a bytecode context to keep a proper
7678 stack in 'lineLABCPtr'.
7679
7680 Fixed the mishandling of line information in the NRE-enabled 'for' and
7681 'while' commands introduced when both were made to share their
7682 iteration callbacks without taking into account that the loop body is
7683 found in different words of the command. Introduced a separate data
7684 structure to hold all the callback information, as we went over the
7685 limit of 4 direct client-data values for NRE callbacks.
7686
7687 The above fixes [Bug 1605269].
7688
7689 2009-07-12 Donal K. Fellows <[email protected]>
7690
7691 * generic/tclCmdMZ.c (StringIndexCmd, StringEqualCmd, StringCmpCmd):
7692 * generic/tclExecute.c (TclExecuteByteCode): [Bug 2637173]: Factor out
7693 * generic/tclInt.h (TclIsPureByteArray): the code to determine if
7694 * generic/tclUtil.c (TclStringMatchObj): it is safe to work with
7695 byte arrays directly, so that we get the check correct _once_.
7696
7697 * generic/tclOOCall.c (TclOOGetCallContext): [Bug 1895546]: Changed
7698 * generic/tclOO.c (TclOOObjectCmdCore): the way that the cache is
7699 managed so that when itcl does cunning things, those cunning things
7700 can be cached properly.
7701
7702 2009-07-11 Donal K. Fellows <[email protected]>
7703
7704 * doc/vwait.n: Substantially increased the discussion of issues and
7705 work-arounds relating to nested vwaits, following discussion on the
7706 tcl-core mailing list on the topic.
7707
7708 2009-07-10 Pat Thoyts <[email protected]>
7709
7710 * tests/zlib.test: ZlibTransformClose may be called with a NULL
7711 * generic/tclZlib.c: interpreter during finalization and
7712 Tcl_SetChannelError requires a list. Added some tests to ensure error
7713 propagation from the zlib library to the interp.
7714
7715 2009-07-09 Pat Thoyts <[email protected]>
7716
7717 * tests/zlib.test: [Bug 2818131]: Added tests and fixed a typo that
7718 broke [zlib push] for deflate format.
7719
7720 2009-07-09 Donal K. Fellows <[email protected]>
7721
7722 * compat/mkstemp.c (mkstemp): [Bug 2819227]: Use rand() for random
7723 numbers as it is more portable.
7724
7725 2009-07-05 Donal K. Fellows <[email protected]>
7726
7727 * generic/tclZlib.c (ZlibTransformWatch): Correct the handling of
7728 events so that channel transforms work with things like an asynch
7729 [chan copy]. Problem reported by Pat Thoyts.
7730
7731 2009-07-01 Pat Thoyts <[email protected]>
7732
7733 * win/tclWinInt.h: [Bug 2806622]: Handle the GetUserName API call
7734 * win/tclWin32Dll.c: via the tclWinProcs indirection structure. This
7735 * win/tclWinInit.c: fixes a problem obtaining the username when the
7736 USERNAME environment variable is unset.
7737
7738 2009-06-30 Daniel Steffen <[email protected]>
7739
7740 * generic/tclInt.h: Add assert macros for clang static
7741 * generic/tclPanic.c: analyzer and redefine Tcl_Panic to
7742 * generic/tclStubInit.c: assert after panic in clang PURIFY
7743 builds.
7744
7745 * generic/tclCmdIL.c: Add clang assert for false positive
7746 from static analyzer.
7747
7748 2009-06-26 Daniel Steffen <[email protected]>
7749
7750 * macosx/Tcl-Common.xcconfig: Update projects for Xcode 3.1 and
7751 * macosx/Tcl.xcode/*: 3.2, standardize on gcc 4.2, remove
7752 * macosx/Tcl.xcodeproj/*: obsolete configurations and pre-Xcode
7753 * macosx/Tcl.pbproj/* (removed): project.
7754
7755 * macosx/README: Update project docs, cleanup.
7756
7757 * unix/Makefile.in: Update dist target for project
7758 changes.
7759
7760 2009-06-24 Donal K. Fellows <[email protected]>
7761
7762 * tests/oo.test (oo-19.1): [Bug 2811598]: Make more resilient.
7763
7764 2009-06-24 Pat Thoyts <[email protected]>
7765
7766 * tests/http11.test: [Bug 2811492]: Clean up procs after testing.
7767
7768 2009-06-18 Donal K. Fellows <[email protected]>
7769
7770 * generic/tclCkalloc.c (MemoryCmd): [Bug 988703]:
7771 * generic/tclObj.c (ObjData, TclFinalizeThreadObjects): Add mechanism
7772 for discovering what Tcl_Objs are allocated when built for memory
7773 debugging. Developed by Joe Mistachkin.
7774
7775 2009-06-17 Alexandre Ferrieux <[email protected]>
7776
7777 * generic/tclEvent.c: Applied a patch by George Peter Staplin
7778 drastically reducing the ambition of [exit] wrt finalization, and
7779 thus solving many multi-thread teardown issues. [Bugs 2001201,
7780 486399, and possibly 597575, 990457, 1437595, 2750491]
7781
7782 2009-06-15 Don Porter <[email protected]>
7783
7784 * generic/tclStringObj.c: sprintf() -> Tcl_ObjPrintf() conversion.
7785
7786 2009-06-15 Reinhard Max <[email protected]>
7787
7788 * unix/tclUnixPort.h: Move all socket-related code from tclUnixChan.c
7789 * unix/tclUnixChan.c: to tclUnixSock.c.
7790 * unix/tclUnixSock.c:
7791
7792 2009-06-15 Donal K. Fellows <[email protected]>
7793
7794 * tools/tcltk-man2html.tcl (make-man-pages): [Patch 557486]: Apply
7795 last remaining meaningful part of this patch, a clean up of some
7796 closing tags.
7797
7798 2009-06-13 Don Porter <[email protected]>
7799
7800 * generic/tclCompile.c: [Bug 2802881]: The value stashed in
7801 * generic/tclProc.c: iPtr->compiledProcPtr when compiling a proc
7802 * tests/execute.test: survives too long. We only need it there long
7803 enough for the right TclInitCompileEnv() call to re-stash it into
7804 envPtr->procPtr. Once that is done, the CompileEnv controls. If we
7805 let the value of iPtr->compiledProcPtr linger, though, then any other
7806 bytecode compile operation that takes place will also have its
7807 CompileEnv initialized with it, and that's not correct. The value is
7808 meant to control the compile of the proc body only, not other compile
7809 tasks that happen along. Thanks to Carlos Tasada for discovering and
7810 reporting the problem.
7811
7812 2009-06-10 Don Porter <[email protected]>
7813
7814 * generic/tclStringObj.c: [Bug 2801413]: Revised [format] to not
7815 overflow the integer calculations computing the length of the %ll
7816 formats of really big integers. Also added protections so that
7817 [format]s that would produce results overflowing the maximum string
7818 length of Tcl values throw a normal Tcl error instead of a panic.
7819
7820 * generic/tclStringObj.c: [Bug 2803109]: Corrected failures to
7821 deal with the "pure unicode" representation of an empty string.
7822 Thanks to Julian Noble for reporting the problem.
7823
7824 2006-06-09 Kevin B. Kenny <[email protected]>
7825
7826 * generic/tclGetDate.y: Fixed a thread safety bug in the generated
7827 * library/clock.tcl: Bison parser (needed a %pure-parser
7828 * tests/clock.test: declaration to avoid static variables).
7829 Discovered that the %pure-parser declaration
7830 allowed for returning the Bison error message
7831 to the Tcl caller in the event of a syntax
7832 error, so did so.
7833 * generic/tclDate.c: bison 2.3
7834
7835 2006-06-08 Kevin B. Kenny <[email protected]>
7836
7837 * library/tzdata/Asia/Dhaka: New DST rule for Bangladesh. (Olson's
7838 tzdata2009i.)
7839
7840 2009-06-08 Donal K. Fellows <[email protected]>
7841
7842 * doc/copy.n: Fix error in example spotted by Venkat Iyer.
7843
7844 2009-06-02 Don Porter <[email protected]>
7845
7846 * generic/tclExecute.c: Replace dynamically-initialized table with a
7847 table of static constants in the lookup table for exponent operator
7848 computations that fit in a 64 bit integer result.
7849
7850 * generic/tclExecute.c: [Bug 2798543]: Corrected implementations and
7851 selection logic of the INST_EXPON instruction.
7852
7853 2009-06-01 Don Porter <[email protected]>
7854
7855 * tests/expr.test: [Bug 2798543]: Added many tests demonstrating
7856 the broken cases.
7857
7858 009-05-30 Kevin B. Kenny <[email protected]>
7859
7860 * library/tzdata/Africa/Cairo:
7861 * library/tzdata/Asia/Amman: Olson's tzdata2009h.
7862
7863 2009-05-29 Andreas Kupries <[email protected]>
7864
7865 * library/platform/platform.tcl: Fixed handling of cpu ia64,
7866 * library/platform/pkgIndex.tcl: taking ia64_32 into account
7867 * unix/Makefile.in: now. Bumped version to 1.0.5. Updated the
7868 * win/Makefile.in: installation commands.
7869
7870 2009-05-26 Alexandre Ferrieux <[email protected]>
7871
7872 * doc/expr.n: Fixed documentation of the right-associativity of
7873 the ** operator. (spotted by kbk)
7874
7875 2009-05-14 Donal K. Fellows <[email protected]>
7876
7877 * generic/tclOOInfo.c (InfoObjectNsCmd): Added introspection mechanism
7878 for finding out what an object's namespace is. Experience suggests
7879 that it is just too useful to be able to do without it.
7880
7881 2009-05-12 Donal K. Fellows <[email protected]>
7882
7883 * doc/vwait.n: Added more words to make it clear just how bad it is to
7884 nest [vwait]s.
7885
7886 * compat/mkstemp.c: Add more headers to make this file build on IRIX
7887 6.5. Thanks to Larry McVoy for this.
7888
7889 2009-05-08 Donal K. Fellows <[email protected]>
7890
7891 * generic/tclOO.c (TclNRNewObjectInstance): [Bug 2414858]: Add a
7892 * generic/tclBasic.c (TclPushTailcallPoint): marker to the stack of
7893 NRE callbacks at the right point so that tailcall works correctly in a
7894 constructor.
7895
7896 * tests/exec.test (cat): [Bug 2788468]: Adjust the scripted version of
7897 cat so that it does not perform transformations on the data it is
7898 working with, making it more like the standard Unix 'cat' program.
7899
7900 2009-05-07 Miguel Sofer <[email protected]>
7901
7902 * generic/tclObj.c (Tcl_GetCommandFromObj): [Bug 2785893]: Ensure that
7903 a command in a deleted namespace can't be found through a cached name.
7904
7905 * generic/tclBasic.c: Let coroutines start with a much smaller
7906 * generic/tclCompile.h: stack: 200 words (previously was 2000, the
7907 * generic/tclExecute.c: same as interps).
7908
7909 2009-05-07 Donal K. Fellows <[email protected]>
7910
7911 * tests/env.test (printenvScript, env-4.3, env-4.5): [Bug 1513659]:
7912 * tests/exec.test (exec-2.6): These tests had subtle dependencies on
7913 being on platforms that were either ISO 8859-1 or UTF-8. Stabilized
7914 the results by forcing the encoding.
7915
7916 2009-05-06 Don Porter <[email protected]>
7917
7918 * generic/tclCmdMZ.c: [Bug 2582327]: Improve overflow error message
7919 from [string repeat].
7920
7921 * tests/interp.test: interp-20.50 test for Bug 2486550.
7922
7923 2009-05-04 Donal K. Fellows <[email protected]>
7924
7925 * generic/tclOO.c (InitFoundation, AllocObject, AllocClass):
7926 * generic/tclOODefineCmds.c (InitDefineContext): Make sure that when
7927 support namespaces are deleted, nothing bad can subsequently happen.
7928 Issue spotted by Don Porter.
7929
7930 2009-05-03 Donal K. Fellows <[email protected]>
7931
7932 * doc/Tcl.n: [Bug 2538432]: Clarified exact treatment of ${arr(idx)}
7933 form of variable substitution. This is not a change of behavior, just
7934 an improved description of the current situation.
7935
7936 2009-04-30 Miguel Sofer <[email protected]>
7937
7938 * generic/tclBasic.c (TclObjInvoke): [Bug 2486550]: Make sure that a
7939 null objProc is not used, use Tcl_NRCallObjProc instead.
7940
7941 2009-05-01 Jan Nijtmans <[email protected]>
7942
7943 * win/configure.in Fix 64-bit detection for zlib on Win64
7944 * win/configure (regenerated)
7945
7946 2009-04-28 Jeff Hobbs <[email protected]>
7947
7948 * unix/tcl.m4, unix/configure (SC_CONFIG_CFLAGS): harden the check to
7949 add _r to CC on AIX with threads.
7950
7951 2009-04-27 Donal K. Fellows <[email protected]>
7952
7953 * doc/concat.n (EXAMPLES): [Bug 2780680]: Rewrote so that the spacing
7954 of result messages is correct. (The exact way they were wrong was
7955 different when rendered through groff or as HTML, but it was still
7956 wrong both ways.)
7957
7958 2009-04-27 Jan Nijtmans <[email protected]>
7959
7960 * generic/tclIndexObj.c: Reset internal INTERP_ALTERNATE_WRONG_ARGS
7961 * generic/tclIOCmd.c: flag inside the Tcl_WrongNumArgs function,
7962 so the caller no longer has to do the reset.
7963
7964 2009-04-24 Stuart Cassoff <[email protected]>
7965
7966 * unix/Makefile.in: [Patch 2769530]: Don't chmod/exec installManPage.
7967
7968 2009-04-19 Pat Thoyts <[email protected]>
7969
7970 * library/http/http.tcl: [Bug 2715421]: Removed spurious newline added
7971 * tests/http11.test: after POST and added tests to detect excess
7972 * tests/httpd11.tcl: bytes being POSTed.
7973 * library/http/pkgIndex.tcl:
7974 * makefiles: package version now 2.8.1
7975
7976 2009-04-15 Donal K. Fellows <[email protected]>
7977
7978 * doc/chan.n, doc/close.n: Tidy up documentation of TIP #332.
7979
7980 2009-04-14 Kevin B. Kenny <[email protected]>
7981
7982 * library/tzdata/Asia/Karachi: Updated rules for Pakistan Summer
7983 Time (Olson's tzdata2009f)
7984
7985 2009-04-11 Donal K. Fellows <[email protected]>
7986
7987 * generic/tclOOMethod.c (InvokeForwardMethod): Clarify the resolution
7988 behaviour of the name of the command that is forwarded to: it's now
7989 resolved using the object's namespace as context, which is much more
7990 useful than the previous (somewhat random) behaviour of using the
7991 caller's current namespace.
7992
7993 2009-04-10 Pat Thoyts <[email protected]>
7994
7995 * library/http/http.tcl: Improved HTTP/1.1 support and added
7996 * library/http/pkgIndex.tcl: specific HTTP/1.1 testing to ensure
7997 * tests/http11.test: we handle chunked+gzip for the various
7998 * tests/httpd11.test: modes (normal, -channel and -handler)
7999 * makefiles: package version set to 2.8.0
8000
8001 2009-04-10 Daniel Steffen <[email protected]>
8002
8003 * unix/tclUnixChan.c: TclUnixWaitForFile(): use FD_* macros
8004 * macosx/tclMacOSXNotify.c: to manipulate select masks (Cassoff).
8005 [FRQ 1960647] [Bug 3486554]
8006
8007 * unix/tclLoadDyld.c: Use RTLD_GLOBAL instead of RTLD_LOCAL.
8008 [Bug 1961211]
8009
8010 * macosx/tclMacOSXNotify.c: revise CoreFoundation notifier to allow
8011 embedding into applications that
8012 already have a CFRunLoop running and
8013 want to run the tcl event loop via
8014 Tcl_ServiceModeHook(TCL_SERVICE_ALL).
8015
8016 * macosx/tclMacOSXNotify.c: add CFRunLoop based Tcl_Sleep() and
8017 * unix/tclUnixChan.c: TclUnixWaitForFile() implementations
8018 * unix/tclUnixEvent.c: and disable select() based ones in
8019 CoreFoundation builds.
8020
8021 * unix/tclUnixNotify.c: simplify, sync with tclMacOSXNotify.c.
8022
8023 * generic/tclInt.decls: add TclMacOSXNotifierAddRunLoopMode()
8024 * generic/tclIntPlatDecls.h: internal API, regen.
8025 * generic/tclStubInit.c:
8026
8027 * unix/configure.in (Darwin): use Darwin SUSv3 extensions if
8028 available; remove /Network locations
8029 from default tcl package search path
8030 (NFS mounted locations and thus slow).
8031 * unix/configure: autoconf-2.59
8032 * unix/tclConfig.h.in: autoheader-2.59
8033
8034 * macosx/tclMacOSXBundle.c: on Mac OS X 10.4 and later, replace
8035 deprecated NSModule API by dlfcn API.
8036
8037 2009-04-10 Donal K. Fellows <[email protected]>
8038
8039 * doc/StringObj.3: [Bug 2089279]: Corrected example so that it works
8040 on 64-bit machines as well.
8041
8042 2009-04-10 Pat Thoyts <[email protected]>
8043
8044 * tests/http.test: [Bug 26245326]: Added specific check for problem
8045 * tests/httpd: (return incomplete HTTP response header).
8046
8047 2009-04-08 Kevin B. Kenny <[email protected]>
8048
8049 * tools/tclZIC.tcl: Always emit files with Unix line termination.
8050 * library/tzdata: Olson's tzdata2009e
8051
8052 2009-04-09 Don Porter <[email protected]>
8053
8054 * library/http/http.tcl: [Bug 26245326]: Handle incomplete
8055 lines in the "connecting" state. Thanks to Sergei Golovan.
8056
8057 2009-04-08 Andreas Kupries <[email protected]>
8058
8059 * library/platform/platform.tcl: Extended the darwin sections to add
8060 * library/platform/pkgIndex.tcl: a kernel version number to the
8061 * unix/Makefile.in: identifier for anything from Leopard (10.5) on up.
8062 * win/Makefile.in: Extended patterns for same. Extended cpu
8063 * doc/platform.n: recognition for 64bit Tcl running on a 32bit kernel
8064 on a 64bit processor (By Daniel Steffen). Bumped version to 1.0.4.
8065 Updated Makefiles.
8066
8067 2009-04-08 Don Porter <[email protected]>
8068
8069 * library/tcltest/tcltest.tcl: [Bug 2570363]: Converted [eval]s (some
8070 * library/tcltest/pkgIndex.tcl: unsafe!) to {*} in tcltest package.
8071 * unix/Makefile.in: => tcltest 2.3.1
8072 * win/Makefile.in:
8073
8074 2009-04-07 Don Porter <[email protected]>
8075
8076 * generic/tclStringObj.c: Correction so that value of
8077 TCL_GROWTH_MIN_ALLOC is everywhere expressed in bytes as comment
8078 claims.
8079
8080 2009-04-04 Donal K. Fellows <[email protected]>
8081
8082 * doc/vwait.n: [Bug 1910136]: Extend description and examples to make
8083 it clearer just how this command interprets variable names.
8084
8085 2009-03-30 Don Porter <[email protected]>
8086
8087 * doc/Alloc.3: [Bug 2556263]: Size argument is "unsigned int".
8088
8089 2009-03-27 Don Porter <[email protected]>
8090
8091 * generic/tclPathObj.c (TclPathPart): [Bug 2710920]: TclPathPart()
8092 * tests/fileName.test: was computing the wrong results for both [file
8093 dirname] and [file tail] on "path" arguments with the PATHFLAGS != 0
8094 intrep and with an empty string for the "joined-on" part.
8095
8096 2009-03-25 Jan Nijtmans <[email protected]>
8097
8098 * doc/tclsh.1: Bring doc and tools in line with
8099 * tools/installData.tcl: https://wiki.tcl-lang.org/page/exec+magic
8100 * tools/str2c
8101 * tools/tcltk-man2html.tcl
8102
8103 2009-03-25 Donal K. Fellows <[email protected]>
8104
8105 * doc/coroutine.n: [Bug 2152285]: Added basic documentation for the
8106 coroutine and yield commands.
8107
8108 2009-03-24 Donal K. Fellows <[email protected]>
8109
8110 * generic/tclOOBasic.c (TclOOSelfObjCmd): [Bug 2704302]: Make 'self
8111 class' better defined in the context of objects that change class.
8112
8113 * generic/tclVar.c (Tcl_UpvarObjCmd): [Bug 2673163] (ferrieux)
8114 * generic/tclProc.c (TclObjGetFrame): Make the upvar command more able
8115 to handle its officially documented syntax.
8116
8117 2009-03-22 Miguel Sofer <[email protected]>
8118
8119 * generic/tclBasic.c: [Bug 2502037]: NR-enable the handling of unknown
8120 commands.
8121
8122 2009-03-21 Miguel Sofer <[email protected]>
8123
8124 * generic/tclBasic.c: Fixed "leaks" in aliases, imports and
8125 * generic/tclInt.h: ensembles. Only remaining known leak is in
8126 * generic/tclInterp.c: ensemble unknown dispatch (as it not
8127 * generic/tclNamesp.c: NR-enabled)
8128 * tests/tailcall.test:
8129
8130 * tclInt.h: comments
8131
8132 * tests/tailcall.test: Added tests to show that [tailcall] does not
8133 currently always execute in constant space: interp-alias, ns-imports
8134 and ensembles "leak" as of this commit.
8135
8136 * tests/nre.test: [foreach] has been NR-enabled for a while, the test
8137 was marked 'knownBug': unmark it.
8138
8139 * generic/tclBasic.c: Fix for (among others) [Bug 2699087]
8140 * generic/tclCmdAH.c: Tailcalls now perform properly even from
8141 * generic/tclExecute.c: within [eval]ed scripts.
8142 * generic/tclInt.h: More tests missing, as well as proper
8143 exploration and testing of the interaction with "redirectors" like
8144 interp-alias (suspect that it does not happen in constant space)
8145 and pure-eval commands.
8146
8147 * generic/tclExecute.c: Proper fix for [Bug 2415422]. Reenabled
8148 * tests/nre.test: the failing assertion that was disabled on
8149 2008-12-18: the assertion is correct, the fault was in the
8150 management of expansions.
8151
8152 * generic/tclExecute.c: Fix both test and code for tailcall
8153 * tests/tailcall.test: from within a compiled [eval] body.
8154
8155 * tests/tailcall.test: Slightly improved tests
8156
8157 2009-03-20 Don Porter <[email protected]>
8158
8159 * tests/stringObj.test: [Bug 2597185]: Test stringObj-6.9
8160 checks that Tcl_AppendStringsToObj() no longer crashes when operating
8161 on a pure unicode value.
8162
8163 * generic/tclExecute.c (INST_CONCAT1): [Bug 2669109]: Panic when
8164 appends overflow the max length of a Tcl value.
8165
8166 2009-03-19 Miguel Sofer <[email protected]>
8167
8168 * generic/tcl.h:
8169 * generic/tclInt.h:
8170 * generic/tclBasic.c:
8171 * generic/tclExecute.c:
8172 * generic/tclNamesp.c (Tcl_PopCallFrame): Rewritten tailcall
8173 implementation, ::unsupported::atProcExit is (temporarily?) gone. The
8174 new approach is much simpler, and also closer to being correct. This
8175 commit fixes [Bug 2649975] and [Bug 2695587].
8176
8177 * tests/coroutine.test: Moved the tests to their own files,
8178 * tests/tailcall.test: removed the unsupported.test. Added
8179 * tests/unsupported.test: tests for the fixed bugs.
8180
8181 2009-03-19 Donal K. Fellows <[email protected]>
8182
8183 * doc/tailcall.n: Added documentation for tailcall command.
8184
8185 2009-03-18 Don Porter <[email protected]>
8186
8187 * win/tclWinFile.c (TclpObjNormalizePath): [Bug 2688184]:
8188 Corrected Tcl_Obj leak. Thanks to Joe Mistachkin for detection and
8189 patch.
8190
8191 * generic/tclVar.c (TclLookupSimpleVar): [Bug 2689307]: Shift
8192 all calls to Tcl_SetErrorCode() out of TclLookupSimpleVar and onto its
8193 callers, where control with TCL_LEAVE_ERR_MSG flag is more easily
8194 handled.
8195
8196 2009-03-16 Donal K. Fellows <[email protected]>
8197
8198 * generic/tclCmdMZ.c (TryPostBody): [Bug 2688063]: Extract information
8199 from list before getting rid of last reference to it.
8200
8201 2009-03-15 Joe Mistachkin <[email protected]>
8202
8203 * generic/tclThread.c: [Bug 2687952]: Modify fix for TSD leak to match
8204 * generic/tclThreadStorage.c: Tcl 8.5 (and prior) allocation semantics
8205
8206 2009-03-15 Donal K. Fellows <[email protected]>
8207
8208 * generic/tclThreadStorage.c (TSDTableDelete): [Bug 2687952]: Ensure
8209 * generic/tclThread.c (Tcl_GetThreadData): that structures in
8210 Tcl's TSD system are all freed. Use the correct matching allocator.
8211
8212 * generic/tclPosixStr.c (Tcl_SignalId,Tcl_SignalMsg): [Patch 1513655]:
8213 Added support for SIGINFO, which is present on BSD platforms.
8214
8215 2009-03-14 Donal K. Fellows <[email protected]>
8216
8217 * unix/tcl.pc.in (new file): [Patch 2243948] (hat0)
8218 * unix/configure.in, unix/Makefile.in: Added support for reporting
8219 Tcl's public build configuration via the pkg-config system. TEA is
8220 still the official mechanism though, in part because pkg-config is not
8221 universally supported across all Tcl's supported platforms.
8222
8223 2009-03-11 Miguel Sofer <[email protected]>
8224
8225 * generic/tclBasic.c (TclNRCoroutineObjCmd): fix Tcl_Obj leak.
8226 Diagnosis and fix thanks to GPS.
8227
8228 2009-03-09 Donal K. Fellows <[email protected]>
8229
8230 * generic/tclCmdMZ.c (Tcl_TryObjCmd, TclNRTryObjCmd): Moved the
8231 implementation of [try] from Tcl code into C. Still lacks a bytecode
8232 version, but should be better than what was before.
8233
8234 2009-03-04 Donal K. Fellows <[email protected]>
8235
8236 * generic/tclZlib.c (TclZlibCmd): Checksums are defined to be unsigned
8237 32-bit integers, use Tcl_WideInt to pass to scripts. [Bug 2662434]
8238 (ZlibStreamCmd, ChanGetOption): A few other related corrections.
8239
8240 2009-02-27 Jan Nijtmans <[email protected]>
8241
8242 * generic/tcl.decls: [Bug 218977]: Tcl_DbCkfree needs return value
8243 * generic/tclCkalloc.c
8244 * generic/tclDecls.h: (regenerated)
8245 * generic/tclInt.decls: don't use CONST84/CONST86 here
8246 * generic/tclCompile.h: don't use CONST86 here, comment fixing.
8247 * generic/tclIO.h: don't use CONST86 here, comment fixing.
8248 * generic/tclIntDecls.h (regenerated)
8249
8250 2009-02-25 Don Porter <[email protected]>
8251
8252 * generic/tclUtil.c (TclStringMatchObj): [Bug 2637173]: Revised
8253 the branching on the strObj->typePtr so that untyped values get
8254 converted to the "string" type and pass through the Unicode matcher.
8255 [Bug 2613766]: Also added checks to only perform "bytearray"
8256 optimization on pure bytearray values.
8257
8258 * generic/tclCmdMZ.c: Since Tcl_GetCharLength() has its own
8259 * generic/tclExecute.c: optimizations for the tclByteArrayType, stop
8260 having the callers do them.
8261
8262 2009-02-24 Donal K. Fellows <[email protected]>
8263
8264 * doc/clock.n, doc/fblocked.n, doc/format.n, doc/lsort.n,
8265 * doc/pkgMkIndex.n, doc/regsub.n, doc/scan.n, doc/tclvars.n:
8266 General minor documentation improvements.
8267
8268 * library/http/http.tcl (geturl, Eof): Added support for 8.6's built
8269 in zlib routines.
8270
8271 2009-02-22 Alexandre Ferrieux <[email protected]>
8272
8273 * tests/lrange.test: Revert commits of 2008-07-23. Those were speed
8274 * tests/binary.test: tests, that are inherently brittle.
8275
8276 2009-02-21 Don Porter <[email protected]>
8277
8278 * generic/tclStringObj.c: Several revisions to the shimmering
8279 patterns between Unicode and UTF string reps. Most notably the
8280 call: objPtr = Tcl_NewUnicodeObj(...,0); followed by a loop of calls:
8281 Tcl_AppendUnicodeToObj(objPtr, u, n); will now grow and append to
8282 the Unicode representation. Before this commit, the sequence would
8283 convert each append to UTF and perform the append to the UTF rep.
8284 This is puzzling and likely a bug. The performance of [string map]
8285 is significantly improved by this change (according to the MAP
8286 collection of benchmarks in tclbench). Just in case there was some
8287 wisdom in the old ways that I missed, I left in the ability to restore
8288 the old patterns with a #define COMPAT 1 at the top of the file.
8289
8290 2009-02-20 Don Porter <[email protected]>
8291
8292 * generic/tclPathObj.c: [Bug 2571597]: Fixed mistaken logic in
8293 * tests/fileName.test: TclFSGetPathType() that assumed (not
8294 "absolute") => "relative". This is a false assumption on Windows,
8295 where "volumerelative" is another possibility.
8296
8297 2009-02-18 Don Porter <[email protected]>
8298
8299 * generic/tclStringObj.c: Simplify the logic of the
8300 Tcl_*SetObjLength() routines.
8301
8302 * generic/tclStringObj.c: Rewrite GrowStringBuffer() so that it
8303 has parallel structure with GrowUnicodeBuffer(). The revision permits
8304 allocation attempts to continue all the way up to failure, with no
8305 gap. It also directly manipulates the String and Tcl_Obj internals
8306 instead of inefficiently operating via Tcl_*SetObjLength() with all of
8307 its extra protections and underdocumented special cases.
8308
8309 * generic/tclStringObj.c: Another round of simplification on
8310 the allocation macros.
8311
8312 2009-02-17 Jeff Hobbs <[email protected]>
8313
8314 * win/tcl.m4, win/configure: Check if cl groks _WIN64 already to
8315 avoid CC manipulation that can screw up later configure checks.
8316 Use 'd'ebug runtime in 64-bit builds.
8317
8318 2009-02-17 Don Porter <[email protected]>
8319
8320 * generic/tclStringObj.c: Pare back the length of the unicode
8321 array in a non-extended String struct to one Tcl_UniChar, meant to
8322 hold the terminating NUL character. Non-empty unicode strings are
8323 then stored by extending the String struct by stringPtr->maxChars
8324 additional slots in that array with sizeof(Tcl_UniChar) bytes per
8325 slot. This revision makes the allocation macros much simpler.
8326
8327 * generic/tclStringObj.c: Factor out common GrowUnicodeBuffer()
8328 and solve overflow and growth algorithm fallbacks in it.
8329
8330 * generic/tclStringObj.c: Factor out common GrowStringBuffer().
8331
8332 * generic/tclStringObj.c: Convert Tcl_AppendStringsToObj into
8333 * tests/stringObj.test: a radically simpler implementation
8334 where we just loop over calls to Tcl_AppendToObj. This fixes [Bug
8335 2597185]. It also creates a *** POTENTIAL INCOMPATIBILITY *** in
8336 that T_ASTO can now allocate more space than is strictly required,
8337 like all the other Tcl_Append* routines. The incompatibility was
8338 detected by test stringObj-6.5, which I've updated to reflect the
8339 new behavior.
8340
8341 * generic/tclStringObj.c: Revise buffer growth implementation
8342 in ExtendStringRepWithUnicode. Use cheap checks to determine that
8343 no reallocation is necessary without cost of computing the precise
8344 number of bytes needed. Also make use of the string growth algortihm
8345 in the case of repeated appends.
8346
8347 2009-02-16 Jan Nijtmans <[email protected]>
8348
8349 * generic/tclZlib.c: Hack needed for official zlib1.dll build.
8350 * win/configure.in: fix [Feature Request 2605263] use official
8351 * win/Makefile.in: zlib build.
8352 * win/configure: (regenerated)
8353 * compat/zlib/zdll.lib: new files
8354 * compat/zlib/zlib1.dll:
8355
8356 * win/Makefile.in: [Bug 2605232]: tdbc doesn't build when Tcl is
8357 compiled with --disable-shared.
8358
8359 2009-02-15 Don Porter <[email protected]>
8360
8361 * generic/tclStringObj.c: [Bug 2603158]: Added protections from
8362 * generic/tclTestObj.c: invalid memory accesses when we append
8363 * tests/stringObj.test: (some part of) a Tcl_Obj to itself.
8364 Added the appendself and appendself2 subcommands to the
8365 [teststringobj] testing command and added tests to the test suite.
8366
8367 * generic/tclStringObj.c: Factor out duplicate code from
8368 Tcl_AppendObjToObj.
8369
8370 * generic/tclStringObj.c: Replace the 'size_t uallocated' field
8371 of the String struct, storing the number of bytes allocated to store
8372 the Tcl_UniChar array, with an 'int maxChars' field, storing the
8373 number of Tcl_UniChars that may be stored in the allocated space.
8374 This reduces memory requirement a small bit, and makes some range
8375 checks simpler to code.
8376 * generic/tclTestObj.c: Replace the [teststringobj ualloc] testing
8377 * tests/stringObj.test: command with [teststringobj maxchars] and
8378 update the tests.
8379
8380 * generic/tclStringObj.c: Removed limitation in
8381 Tcl_AppendObjToObj where the char length of the result was only
8382 computed if the appended string was all single byte characters.
8383 This limitation was in place to dodge a bug in Tcl_GetUniChar.
8384 With that bug gone, we can take advantage of always recording the
8385 length of append results when we know it.
8386
8387 2009-02-14 Don Porter <[email protected]>
8388
8389 * generic/tclStringObj.c: Revisions so that we avoid creating
8390 the strange representation of an empty string with
8391 objPtr->bytes == NULL and stringPtr->hasUnicode == 0. Instead in
8392 the situations where that was being created, create a traditional
8393 two-legged stork representation (objPtr->bytes = tclEmptyStringRep
8394 and stringPtr->hasUnicode = 1). In the situations where the strange
8395 rep was treated differently, continue to do so by testing
8396 stringPtr->numChars == 0 to detect it. These changes make the code
8397 more conventional so easier for new maintainers to pick up. Also
8398 sets up further simplifications.
8399
8400 * generic/tclTestObj.c: Revise updates to [teststringobj] so we don't
8401 get blocked by MODULE_SCOPE limits.
8402
8403 2009-02-12 Don Porter <[email protected]>
8404
8405 * generic/tclStringObj.c: Rewrites of the routines
8406 Tcl_GetCharLength, Tcl_GetUniChar, Tcl_GetUnicodeFromObj,
8407 Tcl_GetRange, and TclStringObjReverse to use the new macro, and
8408 to more simply and clearly split the cases depending on whether
8409 a valid unicode rep is present or needs to be created.
8410 New utility routine UnicodeLength(), to compute the length of unicode
8411 buffer arguments when no length is passed in, with built-in
8412 overflow protection included. Update three callers to use it.
8413
8414 * generic/tclInt.h: New macro TclNumUtfChars meant to be a faster
8415 replacement for a full Tcl_NumUtfChars() call when the string has all
8416 single-byte characters.
8417
8418 * generic/tclStringObj.c: Simplified Tcl_GetCharLength by
8419 * generic/tclTestObj.c: removing code that did nothing.
8420 Added early returns from Tcl_*SetObjLength when the desired length
8421 is already present; adapted test command to the change.
8422
8423 * generic/tclStringObj.c: Re-implemented AppendUtfToUnicodeRep
8424 so that we no longer pass through Tcl_DStrings which have their own
8425 sets of problems when lengths overflow the int range. Now AUTUR and
8426 FillUnicodeRep share a common core routine.
8427
8428 2009-02-12 Donal K. Fellows <[email protected]>
8429
8430 * generic/tclOODefineCmds.c (TclOOGetDefineCmdContext): Use the
8431 correct field in the Interp structure for retrieving the frame to get
8432 the context object so that people can extend [oo::define] without deep
8433 shenanigans. Bug found by Federico Ferri.
8434
8435 2009-02-11 Don Porter <[email protected]>
8436
8437 * generic/tclStringObj.c: Re-implemented AppendUnicodeToUtfRep
8438 so that we no longer pass through Tcl_DStrings which have their own
8439 sets of problems when lengths overflow the int range. Now AUTUR and
8440 UpdateStringOfString share a common core routine.
8441
8442 * generic/tclStringObj.c: Changed type of the 'allocated' field
8443 * generic/tclTestObj.c: of the String struct (and the
8444 TestString counterpart) from size_t to int since only int values are
8445 ever stored in it.
8446
8447 2009-02-10 Jan Nijtmans <[email protected]>
8448
8449 * generic/tclEncoding.c: Eliminate some unnessary type casts
8450 * generic/tclEvent.c: some internal const decorations
8451 * generic/tclExecute.c: spacing
8452 * generic/tclIndexObj.c:
8453 * generic/tclInterp.c:
8454 * generic/tclIO.c:
8455 * generic/tclIOCmd.c:
8456 * generic/tclIORChan.c:
8457 * generic/tclIOUtil.c:
8458 * generic/tclListObj.c:
8459 * generic/tclLiteral.c:
8460 * generic/tclNamesp.c:
8461 * generic/tclObj.c:
8462 * generic/tclOOBasic.c:
8463 * generic/tclPathObj.c:
8464 * generic/tclPkg.c:
8465 * generic/tclProc.c:
8466 * generic/tclRegexp.c:
8467 * generic/tclScan.c:
8468 * generic/tclStringObj.c:
8469 * generic/tclTest.c:
8470 * generic/tclTestProcBodyObj.c:
8471 * generic/tclThread.c:
8472 * generic/tclThreadTest.c:
8473 * generic/tclTimer.c:
8474 * generic/tclTrace.c:
8475 * generic/tclUtil.c:
8476 * generic/tclVar.c:
8477 * generic/tclStubInit.c: (regenerated)
8478
8479 2009-02-10 Jan Nijtmans <[email protected]>
8480
8481 * unix/tcl.m4: [Bug 2502365]: Building of head on HPUX is broken when
8482 using the native CC.
8483 * unix/configure: (autoconf-2.59)
8484
8485 2009-02-10 Don Porter <[email protected]>
8486
8487 * generic/tclObj.c (Tcl_GetString): Added comments and validity
8488 checks following the call to an UpdateStringProc.
8489
8490 * generic/tclStringObj.c: Reduce code duplication in Tcl_GetUnicode*.
8491 Restrict AppendUtfToUtfRep to non-negative length appends.
8492 Convert all Tcl_InvalidateStringRep() calls into macros.
8493 Simplify Tcl_AttemptSetObjLength by removing unreachable code.
8494 Simplify SetStringFromAny() by removing unreachable and duplicate code.
8495 Simplify Tcl_SetObjLength by removing unreachable code.
8496 Removed handling of (objPtr->bytes != NULL) from UpdateStringOfString,
8497 which is only called when objPtr->bytes is NULL.
8498
8499 2009-02-09 Jan Nijtmans <[email protected]>
8500
8501 * generic/tclCompile.c: [Bug 2555129]: const compiler warning (as
8502 error) in tclCompile.c
8503
8504 2009-02-07 Donal K. Fellows <[email protected]>
8505
8506 * generic/tclZlib.c (TclZlibCmd): [Bug 2573172]: Ensure that when
8507 invalid subcommand name is given, the list of valid subcommands is
8508 produced. This gives a better experience when using the command
8509 interactively.
8510
8511 2009-02-05 Joe Mistachkin <[email protected]>
8512
8513 * generic/tclInterp.c: [Bug 2544618]: Fix argument checking for
8514 [interp cancel].
8515 * unix/Makefile.in: Fix build issue with zlib on FreeBSD (and possibly
8516 other platforms).
8517
8518 2009-02-05 Donal K. Fellows <[email protected]>
8519
8520 * generic/tclCmdMZ.c (StringIndexCmd, StringRangeCmd, StringLenCmd):
8521 Simplify the implementation of some commands now that the underlying
8522 string API knows more about bytearrays.
8523
8524 * generic/tclExecute.c (TclExecuteByteCode): [Bug 2568434]: Make sure
8525 that INST_CONCAT1 will not lose string reps wrongly.
8526
8527 * generic/tclStringObj.c (Tcl_AppendObjToObj): Special-case the
8528 appending of one bytearray to another, which can be extremely rapid.
8529 Part of scheme to address [Bug 1665628] by making the basic string
8530 operations more efficient on byte arrays.
8531 (Tcl_GetCharLength, Tcl_GetUniChar, Tcl_GetRange): More special casing
8532 work for bytearrays.
8533
8534 2009-02-04 Don Porter <[email protected]>
8535
8536 * generic/tclStringObj.c: [Bug 2561794]: Added overflow protections to
8537 the AppendUtfToUtfRep routine to either avoid invalid arguments and
8538 crashes, or to replace them with controlled panics.
8539
8540 * generic/tclCmdMZ.c: [Bug 2561746]: Prevent crashes due to int
8541 overflow of the length of the result of [string repeat].
8542
8543 2009-02-03 Jan Nijtmans <[email protected]>
8544
8545 * macosx/tclMacOSXFCmd.c: Eliminate some unnessary type casts
8546 * unix/tclLoadDyld.c: some internal const decorations
8547 * unix/tclUnixCompat.c: spacing
8548 * unix/tclUnixFCmd.c
8549 * unix/tclUnixFile.c
8550 * win/tclWinDde.c
8551 * win/tclWinFCmd.c
8552 * win/tclWinInit.c
8553 * win/tclWinLoad.c
8554 * win/tclWinPipe.c
8555 * win/tclWinReg.c
8556 * win/tclWinTest.c
8557 * generic/tclBasic.c
8558 * generic/tclBinary.c
8559 * generic/tclCmdAH.c
8560 * generic/tclCmdIL.c
8561 * generic/tclCmdMZ.c
8562 * generic/tclCompCmds.c
8563 * generic/tclDictObj.c
8564
8565 2009-02-03 Donal K. Fellows <[email protected]>
8566
8567 * generic/tclObj.c (tclCmdNameType): [Bug 2558422]: Corrected the type
8568 of this structure so that extensions that write it (yuk!) will still
8569 be able to function correctly.
8570
8571 2009-02-03 Don Porter <[email protected]>
8572
8573 * generic/tclStringObj.c (SetUnicodeObj): [Bug 2561488]:
8574 Corrected failure of Tcl_SetUnicodeObj() to panic on a shared object.
8575 Also factored out common code to reduce duplication.
8576
8577 * generic/tclObj.c (Tcl_GetStringFromObj): Reduce code duplication.
8578
8579 2009-02-02 Don Porter <[email protected]>
8580
8581 * generic/tclInterp.c: Reverted the conversion of [interp] into an
8582 * tests/interp.test: ensemble. Such conversion is not necessary
8583 * tests/nre.test: (or even all that helpful) in the NRE-enabling
8584 of [interp invokehidden], and it has other implications -- including
8585 significant forkage of the 8.5 and 8.6 implementations -- that are
8586 better off avoided if there's no gain.
8587
8588 * generic/tclStringObj.c (STRING_NOMEM): [Bug 2494093]: Add missing
8589 cast of NULL to (char *) that upsets some compilers.
8590
8591 * generic/tclStringObj.c (Tcl_(Attempt)SetObjLength): [Bug 2553906]:
8592 Added protections against callers asking for negative lengths. It is
8593 likely when this happens that an integer overflow is to blame.
8594
8595 2009-02-01 David Gravereaux <[email protected]>
8596
8597 * win/makefile.vc: Allow nmake flags such as -a (rebuild all) to pass
8598 down to the pkgs targets, too.
8599
8600 2009-01-30 Donal K. Fellows <[email protected]>
8601
8602 * doc/chan.n: [Bug 1216074]: Added another extended example.
8603
8604 * doc/refchan.n: Added an example of how to build a scripted channel.
8605
8606 2009-01-29 Donal K. Fellows <[email protected]>
8607
8608 * tests/stringObj.test: [Bug 2006888]: Remove non-ASCII chars from
8609 non-comment locations in the file, making it work more reliably in
8610 locales with a non-Latin-1 default encoding.
8611
8612 * generic/tclNamesp.c (Tcl_FindCommand): [Bug 2519474]: Ensure that
8613 the path is not searched when the TCL_NAMESPACE_ONLY flag is given.
8614
8615 * generic/tclOODecls.h (Tcl_OOInitStubs): [Bug 2537839]: Make the
8616 declaration of this macro work correctly in the non-stub case.
8617
8618 2009-01-29 Don Porter <[email protected]>
8619
8620 * generic/tclInterp.c: Convert the [interp] command into a
8621 * tests/interp.test: [namespace ensemble]. Work in progress
8622 * tests/nre.test: to NRE-enable the [interp invokehidden]
8623 subcommand.
8624
8625 2009-01-29 Donal K. Fellows <[email protected]>
8626
8627 * generic/tclNamesp.c (TclMakeEnsemble): [Bug 2529117]: Make this
8628 function behave more sensibly when presented with a fully-qualified
8629 name, rather than doing strange stuff.
8630
8631 2009-01-28 Donal K. Fellows <[email protected]>
8632
8633 * generic/tclBasic.c (TclInvokeObjectCommand): Made this understand
8634 what to do if it ends up being used on a command with no objProc; that
8635 shouldn't happen, but...
8636
8637 * generic/tclNamesp.c (TclMakeEnsemble): [Bug 2529157]: Made this
8638 understand NRE command implementations better.
8639 * generic/tclDictObj.c (DictForCmd): Eliminate unnecessary command
8640 implementation.
8641
8642 2009-01-27 Donal K. Fellows <[email protected]>
8643
8644 * generic/tclOODefineCmds.c (Tcl_ClassSetConstructor):
8645 [Bug 2531577]: Ensure that caches of constructor chains are cleared
8646 when the constructor is changed.
8647
8648 2009-01-26 Alexandre Ferrieux <[email protected]>
8649
8650 * generic/tclInt.h: [Bug 1028264]: WSACleanup() too early.
8651 * generic/tclEvent.c: The fix introduces "late exit handlers" for
8652 * win/tclWinSock.c: similar late process-wide cleanups.
8653
8654 2009-01-26 Alexandre Ferrieux <[email protected]>
8655
8656 * win/tclWinSock.c: [Bug 2446662]: Resync Win behavior on RST with
8657 that of unix (EOF).
8658
8659 2009-01-26 Donal K. Fellows <[email protected]>
8660
8661 * generic/tclZlib.c (ChanClose): [Bug 2536400]: Only generate error
8662 messages in the interpreter when the thread is not being closed down.
8663
8664 2009-01-23 Donal K. Fellows <[email protected]>
8665
8666 * doc/zlib.n: Added a note that 'zlib push' is reversed by 'chan pop'.
8667
8668 2009-01-22 Jan Nijtmans <[email protected]>
8669
8670 * generic/tclCompile.h: CONSTify TclPrintInstruction (TIP #27)
8671 * generic/tclCompile.c
8672 * generic/tclInt.h: CONSTify TclpNativeJoinPath (TIP #27)
8673 * generic/tclFileName.c
8674 * generic/tcl.decls: {unix win} is equivalent to {generic}
8675 * generic/tclInt.decls
8676 * generic/tclDecls.h: (regenerated)
8677 * generic/tclIntDecls.h
8678 * generic/tclGetDate.y: Single internal const decoration.
8679 * generic/tclDate.c:
8680
8681 2009-01-22 Kevin B. Kenny <[email protected]>
8682
8683 * unix/tcl.m4: Corrected a typo ($(SHLIB_VERSION) should be
8684 ${SHLIB_VERSION}).
8685 * unix/configure: Autoconf 2.59
8686
8687 2009-01-21 Andreas Kupries <[email protected]>
8688
8689 * generic/tclIORChan.c (ReflectClose): [Bug 2458202]:
8690 * generic/tclIORTrans.c (ReflectClose): Closing a channel may supply
8691 NULL for the 'interp'. Test for finalization needs to be different,
8692 and one place has to pull the interp out of the channel instead.
8693
8694 2009-01-21 Don Porter <[email protected]>
8695
8696 * generic/tclStringObj.c: New fix for [Bug 2494093] replaces the
8697 flawed attempt committed 2009-01-09.
8698
8699 2009-01-19 Kevin B. Kenny <[email protected]>
8700
8701 * unix/Makefile.in: [Patch 907924]:Added a CONFIG_INSTALL_DIR
8702 * unix/tcl.m4: parameter so that distributors can control where
8703 tclConfig.sh goes. Made the installation of 'ldAix' conditional upon
8704 actually being on an AIX system. Allowed for downstream packagers to
8705 customize SHLIB_VERSION on BSD-derived systems. Thanks to Stuart
8706 Cassoff for his help.
8707 * unix/configure: Autoconf 2.59
8708
8709 2009-01-19 David Gravereaux <[email protected]>
8710
8711 * win/build.vc.bat: Improved tools detection and error message
8712 * win/makefile.vc: Reorganized the $(TCLOBJ) file list into separate
8713 parts for easier maintenance. Matched all sources built using -GL to
8714 both $(lib) and $(link) to use -LTCG and avoid a warning message.
8715 Addressed the over-building nature of the htmlhelp target by moving
8716 from a pseudo target to a real target dependent on the entire docs/
8717 directory contents.
8718 * win/nmakehlp.c: Removed -g option and GrepForDefine() func as it
8719 isn't being used anymore. The -V option method is much better.
8720
8721 2009-01-16 Don Porter <[email protected]>
8722
8723 * generic/tcl.h: Bump patchlevel to 8.6b1.1 to distinguish
8724 * library/init.tcl: CVS snapshots from the 8.6b1 and 8.6b2 releases
8725 * unix/configure.in: and to deal with the fact that the 8.6b1
8726 * win/configure.in: version of init.tcl will not [source] in the
8727 HEAD version of Tcl.
8728
8729 * unix/configure: autoconf-2.59
8730 * win/configure:
8731
8732 2009-01-14 Don Porter <[email protected]>
8733
8734 * generic/tclBasic.c (Tcl_DeleteCommandFromToken): Reverted most
8735 of the substance of my 2009-01-12 commit. NULLing the objProc field of
8736 a Command when deleting it is important so that tests for certain
8737 classes of commands don't return false positives when applied to
8738 deleted command tokens. Overall change is now just replacement of a
8739 false comment with a true one.
8740
8741 2009-01-13 Jan Nijtmans <[email protected]>
8742
8743 * unix/tcl.m4: [Bug 2502365]: Building of head on HPUX is broken when
8744 using the native CC.
8745 * unix/configure (autoconf-2.59)
8746
8747 2009-01-13 Donal K. Fellows <[email protected]>
8748
8749 * generic/tclCmdMZ.c (Tcl_ThrowObjCmd): Move implementation of [throw]
8750 * library/init.tcl (throw): to C from Tcl.
8751
8752 2009-01-12 Don Porter <[email protected]>
8753
8754 * generic/tclBasic.c (Tcl_DeleteCommandFromToken): One consequence of
8755 the NRE rewrite is that there are now situations where a NULL objProc
8756 field in a Command struct is perfectly normal. Removed an outdated
8757 comment in Tcl_DeleteCommandFromToken that claimed we use
8758 cmdPtr->objPtr==NULL as a test of command validity. In fact we use
8759 cmdPtr->flags&CMD_IS_DELETED to perform that test. Also removed the
8760 setting to NULL, since any extension following the advice of the old
8761 comment is going to be broken by NRE anyway, and needs to shift to
8762 flag-based testing (or stop intruding into such internal matters).
8763 Part of [Bug 2486550].
8764
8765 2009-01-09 Don Porter <[email protected]>
8766
8767 * generic/tclStringObj.c (STRING_SIZE): [Bug 2494093]: Corrected
8768 failure to limit memory allocation requests to the sizes that can be
8769 supported by Tcl's memory allocation routines.
8770
8771 2009-01-09 Donal K. Fellows <[email protected]>
8772
8773 * generic/tclNamesp.c (NamespaceEnsembleCmd): [Bug 1558654]: Error out
8774 when someone gives wrong # of args to [namespace ensemble create].
8775
8776 2009-01-08 Don Porter <[email protected]>
8777
8778 * generic/tclStringObj.c (STRING_UALLOC): [Bug 2494093]: Added missing
8779 parens required to get correct results out of things like
8780 STRING_UALLOC(num + append).
8781
8782 2009-01-08 Donal K. Fellows <[email protected]>
8783
8784 * generic/tclDictObj.c, generic/tclIndexObj.c, generic/tclListObj.c,
8785 * generic/tclObj.c, generic/tclStrToD.c, generic/tclUtil.c,
8786 * generic/tclVar.c: Generate errorcodes for the error cases which
8787 approximate to "I can't interpret that string as one of those" and
8788 "You gave me the wrong number of arguments".
8789
8790 2009-01-07 Donal K. Fellows <[email protected]>
8791
8792 * doc/dict.n: [Tk Bug 2491235]: Added more examples.
8793
8794 * tests/oo.test (oo-22.1): Adjusted test to be less dependent on the
8795 specifics of how [info frame] reports general frame information, and
8796 instead to focus on what methods add to it; that's really what the
8797 test is about anyway.
8798
8799 2009-01-06 Don Porter <[email protected]>
8800
8801 * tests/stringObj.test: Revise tests that demand a NULL Tcl_ObjType
8802 in certain values to construct those values with [testdstring] so
8803 there's no lack of robustness depending on the shimmer history of
8804 shared literals.
8805
8806 2009-01-06 Donal K. Fellows <[email protected]>
8807
8808 * generic/tclDictObj.c (DictIncrCmd): Corrected twiddling in internals
8809 of dictionaries so that literals can't get destroyed.
8810
8811 * tests/expr.test: [Bug 2006879]: Eliminate non-ASCII char.
8812
8813 * generic/tclOOInfo.c (InfoObjectMethodsCmd,InfoClassMethodsCmd):
8814 [Bug 2489836]: Only delete pointers that were actually allocated!
8815
8816 * generic/tclOO.c (TclNRNewObjectInstance, Tcl_NewObjectInstance):
8817 [Bug 2481109]: Perform search for existing commands in right context.
8818
8819 2009-01-05 Donal K. Fellows <[email protected]>
8820
8821 * generic/tclCmdMZ.c (TclNRSourceObjCmd): [Bug 2412068]: Make
8822 * generic/tclIOUtil.c (TclNREvalFile): implementation of the
8823 [source] command be NRE enabled so that [yield] inside a script
8824 sourced in a coroutine can work.
8825
8826 2009-01-04 Donal K. Fellows <[email protected]>
8827
8828 * generic/tclCmdAH.c: Tidy up spacing and code style.
8829
8830 2009-01-03 Kevin B. Kenny <[email protected]>
8831
8832 * library/clock.tcl (tcl::clock::add): Fixed error message formatting
8833 in the case where [clock add] is presented with a bad switch.
8834 * tests/clock.test (clock-65.1) Added a test case for the above
8835 problem [Bug 2481670].
8836
8837 2009-01-02 Donal K. Fellows <[email protected]>
8838
8839 * unix/tcl.m4 (SC_CONFIG_CFLAGS): [Bug 878333]: Force the use of the
8840 compatibility version of mkstemp() on IRIX.
8841 * unix/configure.in, unix/Makefile.in (mkstemp.o):
8842 * compat/mkstemp.c (new file): [Bug 741967]: Added a compatibility
8843 implementation of the mkstemp() function, which is apparently needed
8844 on some platforms.
8845
8846 ******************************************************************
8847 *** CHANGELOG ENTRIES FOR 2008 IN "ChangeLog.2008" ***
8848 *** CHANGELOG ENTRIES FOR 2006-2007 IN "ChangeLog.2007" ***
8849 *** CHANGELOG ENTRIES FOR 2005 IN "ChangeLog.2005" ***
8850 *** CHANGELOG ENTRIES FOR 2004 IN "ChangeLog.2004" ***
8851 *** CHANGELOG ENTRIES FOR 2003 IN "ChangeLog.2003" ***
8852 *** CHANGELOG ENTRIES FOR 2002 IN "ChangeLog.2002" ***
8853 *** CHANGELOG ENTRIES FOR 2001 IN "ChangeLog.2001" ***
8854 *** CHANGELOG ENTRIES FOR 2000 IN "ChangeLog.2000" ***
8855 *** CHANGELOG ENTRIES FOR 1999 AND EARLIER IN "ChangeLog.1999" ***
8856 ******************************************************************