forked from CTSRD-CHERI/tcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog.2003
3349 lines (2466 loc) · 127 KB
/
ChangeLog.2003
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2003-12-25 Mo DeJong <[email protected]>
* win/tclWin32Dll.c (DllMain): Add HAVE_NO_SEH blocks in place of
__try and __except statements to support gcc builds. This is needed
after David's changes on 2003-12-21. [Patch 858493]
2003-12-23 David Gravereaux <[email protected]>
* generic/tclAlloc.c: All uses of 'panic' (the macro) changed to
* generic/tclBasic.c: 'Tcl_Panic' (the function). The #define of
* generic/tclBinary.c: panic in tcl.h clearly states it is deprecated
* generic/tclCkalloc.c: in the comments. [Patch 865264]
* generic/tclCmdAH.c:
* generic/tclCmdIL.c:
* generic/tclCmdMZ.c:
* generic/tclCompCmds.c:
* generic/tclCompExpr.c:
* generic/tclCompile.c:
* generic/tclConfig.c:
* generic/tclDictObj.c:
* generic/tclEncoding.c:
* generic/tclEvent.c:
* generic/tclExecute.c:
* generic/tclHash.c:
* generic/tclInterp.c:
* generic/tclIO.c:
* generic/tclIOCmd.c:
* generic/tclIOUtil.c:
* generic/tclListObj.c:
* generic/tclLiteral.c:
* generic/tclNamesp.c:
* generic/tclObj.c:
* generic/tclParse.c:
* generic/tclPathObj.c:
* generic/tclPkg.c:
* generic/tclPreserve.c:
* generic/tclProc.c:
* generic/tclStringObj.c:
* generic/tclTest.c:
* generic/tclThreadAlloc.c:
* generic/tclTimer.c:
* generic/tclTrace.c:
* generic/tclVar.c:
* mac/tclMacChan.c:
* mac/tclMacOSA.c:
* mac/tclMacResource.c:
* mac/tclMacSock.c
* mac/tclMacThrd.c:
* unix/tclUnixChan.c:
* unix/tclUnixNotfy.c:
* unix/tclUnixThrd.c:
* unix/tclXtNotify.c:
* win/tclWin32Dll.c:
* win/tclWinChan.c:
* win/tclWinFCmd.c:
* win/tclWinNotify.c:
* win/tclWinPipe.c:
* win/tclWinSock.c:
* win/tclWinThrd.c:
* generic/tclInt.h: Deprecated use of Tcl_Ckalloc changed to
Tcl_Alloc in the TclAllocObjStorage macro.
2003-12-22 David Gravereaux <[email protected]>
* win/nmakehlp.c:
* win/rules.vc: New feature for extensions that use rules.vc. Now
reads header files for version strings. No more hard coding
TCL_VERSION = 8.5 and having to edit it when you swap cores.
* win/makefile.vc: VERSION macro now set by reading tcl.h for it.
* generic/tcl.h: Removed note that makefile.vc needs to have a version
number changed.
2003-12-21 David Gravereaux <[email protected]>
* win/tclWin32Dll.c: Structured Exception Handling added around
Tcl_Finalize called from DllMain's DLL_PROCESS_DETACH. We can't be
100% assured that Tcl is being unloaded by the OS in a stable
condition and we need to protect the exit handlers should the stack be
in a hosed state. AT&T style assembly for SEH under MinGW has not been
added yet. This is a first part change for [Patch 858493]
2003-12-17 Daniel Steffen <[email protected]>
* generic/tclBinary.c (DeleteScanNumberCache): fixed crashing bug when
numeric scan-value cache contains NULL value.
2003-12-17 Vince Darley <[email protected]>
* generic/tclCmdAH.c:
* unix/tclUnixFile.c:
* win/tclWinFCmd.c:
* tests/fCmd.test:
* tests/fileSystem.test:
* doc/file.n: final fix to support for relative links and its
implications on normalization and other parts of the filesystem code.
Fixes [Bug 859251] and some Windows problems with recursive file
delete/copy and symbolic links.
2003-12-17 Vince Darley <[email protected]>
* generic/tclPathObj.c:
* tests/fileSystem.test: fix and tests for [Bug 860402] in new file
normalization code.
2003-12-17 Zoran Vasiljevic <[email protected]>
* generic/tclIOUtil.c: fixed 2 memory (object) leaks. [Bug 839519]
* generic/tclPathObj.c: fixed Tcl_FSGetTranslatedPath to always return
properly refcounted path object. [Bug 861515]
2003-12-16 Vince Darley <[email protected]>
* tests/fCmd.test: marking fCmd-9.14.2, as nonPortable, since on
Solaris one can change the name of the current directory with 'file
rename'.
* doc/FileSystem.3: clarified documentation on ownership of return
objects/strings of some Tcl_FS* calls.
2003-12-16 Donal K. Fellows <[email protected]>
* generic/tclThreadAlloc.c (binfo): Made variable file-local.
2003-12-15 David Gravereaux <[email protected]>
* win/tcl.rc:
* win/tclsh.rc: Slight modification to the STRINGIFY macro to support
Borland's rc tool.
* win/tclWinFile.c (TclpUtime) : utimbuf struct not a problem with
Borland.
* win/tclWinTime.c (TclpGetDate) : Borland's localtime() has a slight
behavioral difference.
From Helmut Giese <[email protected]> [Patch 758097].
2003-12-14 David Gravereaux <[email protected]>
* generic/tclInt.decls: commented-out entry for TclpCheckStackSpace,
removing it from the Stubs table. It's already declared in tclInt.h
and labeled as a function that is not to be exported. Regened tables.
2003-12-14 Donal K. Fellows <[email protected]>
* generic/tclCmdMZ.c (Tcl_SwitchObjCmd): TIP#75 Implementation
* tests/switch.test: Can now get submatch information when using
* doc/switch.n: -regexp matching in [switch].
2003-12-14 Vince Darley <[email protected]>
* generic/tclPathObj.c: complete rewrite of generic file normalization
code to cope with links followed by '..'. [Bug 849514], and parts of
[Bug 859251]
2003-12-12 David Gravereaux <[email protected]>
* win/tclWinChan.c: Win32's SetFilePointer() takes LONGs not DWORDs (a
signed/unsigned mismatch). Redid local vars to avoid all casting
except where truly required.
2003-12-12 Vince Darley <[email protected]>
* generic/tclCmdAH.c: fix to normalization of non-existent user name
('file normalize ~nobody') [Bug 858937]
* doc/file.n: clarify behaviour of 'file link' when the target is not
an absolute path.
* doc/filename.n: correct documentation to say that Windows Tcl does
handle '~user', for recent Windows releases, and clarified distinction
between MacOS 'classic' and MacOS X.
* doc/glob.n: clarification of glob's behaviour when returning
filenames starting with a '~'.
* tests/fileSystem.test:
* tests/fileName.test: new tests added for the normalization problem
above and other recentlt reported issues.
* win/tclWinFile.c: corrected unclear comments
* unix/tclUnixFile.c: allow creation of relative links. [Bug 833713]
2003-12-11 David Gravereaux <[email protected]>
* win/tclWinSock.c (SocketThreadExitHandler) : added a TerminateThread
fallback just in case the socket handler thread is really in a paused
state. This can happen when Tcl is being unloaded by the OS from an
exception handler. See MSDN docs on DllMain, it states this behavior.
2003-12-09 Jeff Hobbs <[email protected]>
* unix/configure:
* unix/tcl.m4: updated OpenBSD build configuration based on
[Patch #775246] (cassoff)
2003-12-09 Donal K. Fellows <[email protected]>
* unix/tclUnixPort.h: #ifdef'd out declarations of errno which are
* tools/man2tcl.c: known to cause problems with recent glibc.
[Bug 852369]
2003-12-09 Vince Darley <[email protected]>
* win/tclWinFile.c: fix to NT file permissions code [Bug 855923]
* tests/winFile.test: added tests for NT file permissions - patch and
test scripts supplied by Benny.
* tests/winFCmd.test: fixed one test for when not running in C:/
2003-12-02 Donal K. Fellows <[email protected]>
* generic/tclBinary.c (DeleteScanNumberCache, ScanNumber): Made the
numeric scan-value cache have proper references to the objects within
it so strange patterns of writes won't cause references to freed
objects. Thanks to Paul Obermeir for the report. [Bug 851747]
2003-12-01 Miguel Sofer <[email protected]>
* doc/lset.n: fix typo [Bug 852224]
2003-11-24 Don Porter <[email protected]>
* generic/tclParse.c: Corrected faulty check for trailing white
space in {expand} parsing. Thanks Andreas Leitgeb. [Bug 848262]
* tests/parse.test: New tests for the bug.
2003-11-24 Vince Darley <[email protected]>
* generic/tclPathObj.c: fix to [Bug 845778] - Infinite recursion on
[cd] (Windows only bug), for which new tests have just been added.
2003-11-21 Don Porter <[email protected]>
* tests/winFCmd.test (winFCmd-16.10,11): Merged new tests from
core-8-4-branch.
2003-11-20 Miguel Sofer <[email protected]>
* generic/tclVar.c: fix flag bit collision between LOOKUP_FOR_UPVAR
and TCL_PARSE_PART1 (deprecated) [Bug 835020]
2003-11-19 Don Porter <[email protected]>
* tests/compile.test (compile-16.22.0): Improved test for the recent
fix for Bug 845412.
2003-11-19 Donal K. Fellows <[email protected]>
* generic/tclCompile.c (TclCompileScript): Added a guard for the
expansion code so that long non-expanding commands don't get expansion
infrastructure inserted in them, especially when that infrastructure
isn't initialised. [Bug 845412]
2003-11-18 David Gravereaux <[email protected]>
* contrib/djgpp/Makefile: Changes from Victor Wagner
* contrib/djgpp/langinfo.c (new): <[email protected]> for better
* contrib/djgpp/langinfo.h (new): DJGPP support.
* unix/tclUnixInit.c: .
* unix/tclUnixChan.c: .
* unix/tclUnixFCmd.c: .
2003-11-17 Don Porter <[email protected]>
* tests/reg.test: Added tests for [Bugs 230589, 504785, 505048, 840258]
recently fixed by 2003-11-15 commit to regcomp.c by Pavel Goran. His
notes on the fix: This bug results from an error in code that splits
states into "progress" and "no-progress" ones. This error causes an
interesting situation with the pre-collected single-linked list of
states to be splitted: many items were added to the list, but only
several of them are accessible from the list beginning, since the
"tmp" member of struct state (which is used here to hold a pointer to
the next list item) gets overwritten, which results in a "looped"
chain. As a result, not all of states are splitted, and one state is
splitted two times, causing incorrect "no-progress" flag values.
2003-11-16 Donal K. Fellows <[email protected]>
* generic/tclExecute.c (TclExecuteByteCode): Make sure that
Tcl_AsyncInvoke is called regularly when processing bytecodes.
* generic/tclTest.c (AsyncThreadProc, TestasyncCmd): Extended testing
harness to send an asynchronous marking without relying on UNIX
signals.
* tests/async.test (async-4.*): Tests to check that async events are
handled by the bytecode core. [Bug 746722]
2003-11-15 Donal K. Fellows <[email protected]>
* generic/tclTest.c (TestHashSystemHashCmd): Removed 'const' modifier
from hash type structure; it should be const and the hash code assumes
it behaves like const, but that's not how the API is defined. Like
this, we are following in the same footsteps as Tcl_RegisterObjType()
which has the same conditions on its argument. Stops VC++5.2 warning.
[Bug 842511]
2003-11-14 Donal K. Fellows <[email protected]>
* generic/tclHash.c (Tcl_DeleteHashTable,Tcl_HashStats,RebuildTable):
* generic/tclTest.c (TestHashSystemHashCmd): TIP#138 implementation,
* tests/misc.test: plus a new chunk of stuff to test the hash
functions more thoroughly in the test suite.
[Patch 731356, modified]
* doc/Tcl.n: Updated Tcl version number and changebars.
2003-11-14 Don Porter <[email protected]>
* doc/ParseCmd.3: Implementation of TIP 157. Adds recognition
* doc/Tcl.n: of the new leading {expand} syntax on words.
* generic/tcl.h: Parses such words as the new Tcl_Token type
* generic/tclBasic.c: TCL_TOKEN_EXPAND_WORD. Updated Tcl_EvalEx and
* generic/tclCompile.c: the bytecode compiler/execution engine to
* generic/tclCompile.h: recognize the new token type. New opcodes
* generic/tclExecute.c: INST_LIST_VERIFY and INST_INVOKE_EXP and a new
* generic/tclParse.c: operand type OPERAND_ULIST1 are defined. Docs
* generic/tclTest.c: and tests are included.
* tests/basic.test:
* tests/compile.test:
* tests/parse.test:
* library/auto.tcl: Replaced several [eval]s used to perform
* library/package.tcl: argument expansion with the new syntax. In the
* library/safe.tcl: test files lindex.test and lset.test, replaced
* tests/cmdInfo.test: use of [eval] to force direct string
* tests/encoding.test: evaluation with use of [testevalex] which more
* tests/execute.test: directly and robustly serves the same purpose.
* tests/fCmd.test:
* tests/http.test:
* tests/init.test:
* tests/interp.test:
* tests/io.test:
* tests/ioUtil.test:
* tests/iogt.test:
* tests/lindex.test:
* tests/lset.test:
* tests/namespace-old.test:
* tests/namespace.test:
* tests/pkg.test:
* tests/pkgMkIndex.test:
* tests/proc.test:
* tests/reg.test:
* tests/trace.test:
* tests/upvar.test:
* tests/winConsole.test:
* tests/winFCmd.test:
2003-11-12 Jeff Hobbs <[email protected]>
* tests/cmdMZ.test (cmdMZ-1.4): change to nonPortable as more systems
are using permissions caching, and this isn't really a Tcl controlled
issue.
2003-11-11 Jeff Hobbs <[email protected]>
* unix/configure:
* unix/tcl.m4: improve AIX --enable-64bit handling
remove -D__NO_STRING_INLINES -D__NO_MATH_INLINES from CFLAGS_OPTIMIZE
on Linux. Make default opt -O2 (was -O).
2003-11-11 David Gravereaux <[email protected]>
* contrib/djgpp/Makefile: Suggested changes from [email protected]
(Victor Wagner)
* unix/tclUnixPort.h: added socklen_t typedef for DJGPP
2003-11-10 Don Porter <[email protected]>
* unix/tclUnixInit.c (TclpInitLibraryPath):
* win/tclWinInit.c (TclpInitLibraryPath): Fix for [Bug 832657]
that should not run afoul of startup constraints.
* library/dde/pkgIndex.tcl: Added safeguards so that registry and
* library/reg/pkgIndex.tcl: dde packages are not offered on
* win/tclWinDde.c: non-Windows platforms. Bumped to
* win/tclWinReg.c: registry 1.1.3 and dde 1.3.
* win/Makefile.in:
* win/configure.in:
* win/makefile.bc:
* win/makefile.vc:
* win/configure: autoconf (2.57)
2003-11-10 Donal K. Fellows <[email protected]>
* tests/cmdIL.test: Stopped cmdIL-5.5 from stomping over the test
command, and updated the tests to use some tcltest2 features in
relation to cleanup. [Bug 838384]
2003-11-10 Vince Darley <[email protected]>
* generic/tclCmdAH.c:
* tests/fCmd.test: fix to misleading error message in 'file link'.
[Bug 836208]
2003-11-07 Vince Darley <[email protected]>
* generic/tclIOUtil.c: fix to compiler warning/error with some
compilers. [Bug 835918]
2003-11-07 Daniel Steffen <[email protected]>
* macosx/Makefile: optimized builds define NDEBUG to turn off
ThreadAlloc range checking.
2003-11-05 Don Porter <[email protected]>
* tests/unixInit.test (unixInit-2.10): New test to expose [Bug 832657]
failure of TclpInitLibraryPath() to properly handle .. in the path
of the executable.
2003-11-04 Daniel Steffen <[email protected]>
* macosx/Makefile: added 'test' target.
2003-11-03 Vince Darley <[email protected]>
* generic/tclIOUtil.c
* generic/tclInt.h: added comments and re-arranged code to clarify
distinction between Tcl_LoadHandle, ClientData for 'load'ed code, and
point out limitations of the design introduced with Tcl 8.4.
* unix/tclUnixFile.c: fix to memory leak
* generic/tclCmdIL.c: removed warning on Windows.
2003-11-01 Donal K. Fellows <[email protected]>
* generic/tclCmdIL.c (Tcl_LrepeatObjCmd): Check for sensible list
lengths and allow for soft failure of the memory subsystem in the
[lconcat] command [Bug 829027]. Uses direct list creation to avoid
extra copies when working near the limit of available memory. Also
reorganized to encourage optimizing compilers to optimize heavily.
* generic/tclListObj.c (TclNewListObjDirect): New list constructor
that does not copy the array of objects. Useful for creating
potentially very large lists or where you are about to throw away the
array argument which is being used in its entirety.
2003-10-28 Miguel Sofer <[email protected]>
* generic/tclExecute.c (NEXT_INST macros): replaced macro variable
"result" by "resultHandling" to avoid confusion.
2003-10-23 Andreas Kupries <[email protected]>
* unix/tclUnixChan.c (Tcl_MakeFileChannel): Applied [Patch 813606]
fixing [Bug 813087]. Detection of sockets was off for Mac OS X which
implements pipes as local sockets. The new code ensures that only IP
sockets are detected as such.
* win/tclWinSock.c (TcpWatchProc): Watch for FD_CLOSE too when asked
for writable events by the generic layer.
(SocketEventProc): Generate a writable event too when a close is
detected.
Together the changes fix [Bug 599468].
2003-10-23 Vince Darley <[email protected]>
* tests/resource.test:
* mac/tclMacResource.c: fix to resource freeing problem in 'resource'
command reported by Bernard Desgraupes.
* doc/FileSystem.3: updated documentation for 'glob' fix on 2003-10-13
below
2003-10-22 Donal K. Fellows <[email protected]>
* generic/tclCmdAH.c (Tcl_FileObjCmd): Changed FILE_ prefix to FCMD_
to stop symbol/#def clashes on Cygwin/Mingw32 on NT. [Bug 822528]
2003-10-21 Daniel Steffen <[email protected]>
* tools/tcltk-man2html.tcl: fixed incorrect html generated for
.IP/.TP lists, now use <DL><DT>...<DD>...<P><DT>...<DD>...</DL>
instead of illegal <DL><P><DT>...<DD>...<P><DT>...<DD>...</DL>.
Added skipping of directives directly after .TP to avoid them being
used as item descriptions, e.g. .TP\n.VS in clock.n.
2003-10-21 Andreas Kupries <[email protected]>
* win/tclWinPipe.c (BuildCommandLine): Applied the patch coming with
[Bug 805605] to the code, fixing the incorrect use of ispace noted by
Ronald Dauster <[email protected]>.
2003-10-20 Kevin B. Kenny <[email protected]>
* doc/msgcat.n:
* library/msgcat/msgcat.tcl (mclocale,mcload):
* tools/tcl.wse.in:
* unix/Makefile.in: Implementation of TIP#156, add a "root locale"
* win/makefile.bc: to the 'msgcat' package. Advanced msgcat
* win/Makefile.in: version number to 1.4
* win/Makefile.vc:
2003-10-15 Donal K. Fellows <[email protected]>
* generic/tclCmdIL.c (SortInfo,etc): Reorganized so that SortInfo
carries an array of integer indices instead of a Tcl list. This nips
shimmering problems in the bud and simplifies SelectObjFromSublist at
the cost of making setup slightly more complex. [Bug 823768]
2003-10-14 David Gravereaux <[email protected]>
* win/tclAppInit.c (sigHandler): Punt gracefully if exitToken has
already been destroyed.
2003-10-14 Vince Darley <[email protected]>
* generic/tclCmdMZ.c:
* tests/regexp.test: fix to [Bug 823524] in regsub; added three new
tests.
2003-10-14 Don Porter <[email protected]>
* generic/tclBasic.c (TclAppendObjToErrorInfo): New internal routine
that appends a Tcl_Obj to the errorInfo, saving the caller the trouble
of extracting the string rep.
* generic/tclStringObj.c (TclAppendLimitedToObj): New internal
routine that supports truncated appends with optional ellipsis marking.
This single routine supports UTF-8-safe truncated appends needed in
several places throughout the Tcl source code, mostly for error and
stack messages. Clean fix for [Bug 760872].
* generic/tclInt.h: Declarations for new internal routines.
* generic/tclCmdMZ.c: Updated callers to use the new routines.
* generic/tclCompExpr.c:
* generic/tclCompile.c:
* generic/tclExecute.c:
* generic/tclIOUtil.c:
* generic/tclNamesp.c:
* generic/tclObj.c:
* generic/tclParseExpr.c:
* generic/tclProc.c:
* generic/tclStringObj.c:
* mac/tclMacResource.c:
* library/init.tcl: Updated ::errorInfo cleanup in [unknown] to
reflect slight modifications to Tcl_LogCommandInfo(). Corrects failing
init-4.* tests.
2003-10-14 Donal K. Fellows <[email protected]>
TIP#127 IMPLEMENTATION FROM JOE MICHAEL SCHLENKER
* generic/tclCmdIL.c (SelectObjFromSublist): Element selection engine.
* generic/tclCmdIL.c (Tcl_LsearchObjCmd, Tcl_LsortObjCmd):
* tests/lsearch.test: Set up and use of element selection engine,
* tests/cmdIL.test: plus tests and documentation.
* doc/lsearch.n: Based on [Patch 693836]
* doc/lsort.n:
2003-10-13 Vince Darley <[email protected]>
* generic/tcl.h:
* generic/tclFileName.c:
* generic/tclIOUtil.c:
* generic/tclPathObj.c:
* generic/tclTest.c:
* mac/tclMacFile.c:
* tests/fileName.test: better tests for [Bug 813273]
* unix/tclUnixFCmd.c:
* unix/tclUnixFile.c:
* win/tclWin32Dll.c:
* win/tclWinFCmd.c:
* win/tclWinFile.c:
* win/tclFileInt.h:
Fixed [Bug 800106] in which 'glob' was incapable of merging the
results of a directory listing (real or virtual) and any virtual
filesystem mountpoints in that directory (the latter were ignored).
This meant boundaries between different filesystems were not seamless
(e.g. 'glob */*' across a filesystem boundary was wrong). Added new
entry to Tcl_GlobTypeData in a totally backwards compatible way. To
allow listing of mounts, registered filesystems must support the
'TCL_GLOB_TYPE_MOUNT' flag. If this is not supported (e.g. in tclvfs
1.2) then mounts will simply not be listed for that filesystem.
Fixed [Bug 749876] 'file writable/readable/etc' (NativeAccess) using
correct permission checking code for Windows NT/2000/XP where more
complex user-based security/access priveleges are available,
particularly on shared volumes. The performance impact of this extra
checking will need further investigation. Note: Win 95,98,ME have no
support for this.
Also made better use of normalized rather than translated paths in the
platform specific code.
2003-10-12 Jeff Hobbs <[email protected]>
* unix/tclUnixTest.c (TestalarmCmd): don't bother checking return
value of alarm. [Bug #664755] (english)
2003-10-09 Pat Thoyts <[email protected]>
* win/makefile.vc: Applied patches for bug #801467 by Joe Mistachkin
* win/tclAppInit.c: to fix incompatible TCL_MEM_DEBUG handling in
* generic/tclObj.c: Win32 VC builds.
2003-10-08 Don Porter <[email protected]>
* generic/tclBasic.c: Save and restore the iPtr->flag bits that
control the state of errorCode and errorInfo management when calling
"leave" execution traces, so that all error information of the traced
command is still available whether traced or not. [Bug 760947]
Thanks to Yahalom Emet.
2003-10-08 Donal K. Fellows <[email protected]>
* generic/tclTest.c (TestNumUtfCharsCmd): Command to allow finer
access to Tcl_NumUtfChars for testing.
* generic/tclUtf.c (Tcl_NumUtfChars): Corrected string length
determining when the length parameter is negative; the terminator is a
zero byte, not (necessarily) a \u0000 character. [Bug 769812]
2003-10-07 Don Porter <[email protected]>
* tests/cmdAH.test:
* tests/exec.test: Corrected temporary file management
* tests/fileSystem.test: issues uncovered by -debug 1 test
* tests/io.test: operations. Also backported some
* tests/ioCmd.test: other fixes from the HEAD.
* tests/main.test:
* tests/pid.test: [Bugs 675605, 675655, 675659]
* tests/socket.test:
* tests/source.test:
* tests/fCmd.test: Run tests with the [temporaryDirectory] as the
current directory, so that tests can depend on ability to write files.
[Bug 575837]
* doc/OpenFileChnl.3: Updated Tcl_Tell and Tcl_Seek documentation to
reflect that they now return Tcl_WideInt (TIP 72). [Bug 787537]
* tests/io.test: Corrected several tests that failed when paths
* tests/ioCmd.test: included regexp-special chars. [Bug 775394]
2003-10-06 Jeff Hobbs <[email protected]>
* win/configure:
* win/tcl.m4: removed incorrect checks for existence of optimization.
TCL_CFG_OPTIMIZED is now defined whenever the user does not build with
--enable-symbols.
2003-10-06 Don Porter <[email protected]>
* tests/regexp.test: Matched [makeFile] with [removeFile].
* tests/regexpComp.test: [Bug 675652]
* tests/fCmd.test (fCmd-8.2): Test only that tilde-substitution
happens, not for any particular result. [Bug 685991]
* unix/tcl.m4 (SC_PATH_TCLCONFIG): Corrected search path so that
alpha and beta releases of Tcl are not favored. [Bug 608698]
* tests/reg.test: Corrected duplicate test names.
* tests/resource.test: [Bugs 710370, 710358]
* tests/dict.test:
* tests/dict.test: Updated [package require tcltest] lines to
* tests/fileSystem.test: indiciate that these test files
* tests/lrepeat.test: use features of tcltest 2. [Bug 706114]
* tests/notify.test:
* tests/parseExpr.test:
* tests/unixNotfy.test:
* tests/winDde.test:
2003-10-04 Miguel Sofer <[email protected]>
* generic/tclExecute.c (TEBC):
* tests/execute.test (execute-8.2): fix for [Bug 816641] - faulty
execution and catch stack management.
2003-10-03 Don Porter <[email protected]>
* generic/tclBasic.c: Fixed error in ref count management of command
* generic/tclCmdMZ.c: and execution traces that caused access to
freed memory in trace-32.1. [Bug 811483]
2003-10-02 Don Porter <[email protected]>
* generic/tclTrace.c: Corrected comingling of introspection results of
[trace info command] and [trace info execution]. [Bug 807243]
Thanks to Mark Saye.
2003-10-01 Daniel Steffen <[email protected]>
* macosx/Makefile: fixed redo prebinding bug when DESTDIR="".
* mac/tclMacResource.c: fixed possible NULL dereference (bdesgraupes).
2003-09-29 Vince Darley <[email protected]>
* generic/tclPathObj.c:
* tests/fileName.test: fix to inconsistent handling of backslash
path separators on Windows in 'file join' [Bug 813273]
2003-09-29 Donal K. Fellows <[email protected]>
* generic/tclPathObj.c (TclNativePathInFilesystem,TclFSGetPathType):
* generic/tclIOUtil.c (TclNativeDupInternalRep,TclGetPathType): Rename
to make sure function names won't interfere with other non-Tcl code
(reported by George Staplin)
TIP#121 IMPLEMENTATION FROM JOE MISTACHKIN
* generic/tclEvent.c (Tcl_SetExitProc,Tcl_Exit): Implementation of
application exit handler scheme.
* generic/tcl.decls (Tcl_SetExitProc): Public declaration.
* doc/Exit.3: Documentation of new API function.
TIP#112 IMPLEMENTATION
* generic/tclNamesp.c: Core of implementation.
* generic/tclInt.h (Namespace,TclInvalidateNsCmdLookup): Add command
list epoch counter and list of ensembles to namespace structure, and
define a macro to ease update of the epoch counter.
* generic/tclBasic.c (Tcl_CreateObjCommand,etc.): Update epoch counter
when list of commands in a namespace changes.
* generic/tclObj.c (TclInitObjSubsystem): Register ensemble subcommand
type.
* tests/namespace.test (42.1-47.6): Tests.
* doc/namespace.n: Documentation.
* library/http/http.tcl (geturl): Correctly check the type of
boolean-valued options. [Bug 811170]
* unix/tcl.m4 (SC_ENABLE_FRAMEWORK): Added note to make it clearer
that this is an OSX feature, not a general Unix feature. [Bug 619440]
2003-09-28 David Gravereaux <[email protected]>
* win/tclWinPipe.c: The windows port of expect can call
TclWinAddProcess before any of the other pipe functions. Added a
missing PipeInit() call to make sure the initialization happens.
2003-09-25 Daniel Steffen <[email protected]>
* macosx/Makefile: ensure SYMROOT exists if OBJROOT is overridden on
command line. Replaced explict use of /usr/bin by ${BINDIR}.
2003-09-24 Vince Darley <[email protected]>
* library/package.tcl (tcl::MacPkgUnknown, tcl::MacOSXPkgUnknown):
Minor performance tweaks to reduce the number of [file] invocations.
Meant to improve startup times, at least a little bit. (The generic
equivalent patch was applied on 2003-02-21).
2003-09-24 Vince Darley <[email protected]>
* trace.test: removed 'knownBug' from a test which doesn't illustrate
a bug, just a bad test.
2003-09-23 Miguel Sofer <[email protected]>
* generic/tclExecute.c:
* generic/tclInt.h: changed the evaluation-stack addressing mode, from
array-style to pointer-style; the catch stack and evaluation stack are
now contiguous in memory. [Patch 457449]
2003-09-23 Don Porter <[email protected]>
* tests/trace.test (trace-31,32-*): Added tests for [Bug 807243] and
[Bug 811483].
* library/init.tcl (auto_load, auto_import): Expanded Eric Melski's
2000-01-28 fix for [Bug 218871] to all potentially troubled uses of
[info commands] on input data, where glob-special characters could
cause problems.
2003-09-20 Donal K. Fellows <[email protected]>
* tests/expr.test (expr-23.4): Prevented accidental wrapping round of
exponential operation; it isn't portable, and not what I intended to
test either. [Bug 808244]
2003-09-19 Miguel Sofer <[email protected]>
* generic/tclExecute.c: adding (DE)CACHE_STACK_INFO() pairs to protect
all calls that may cause traces on ::errorInfo or ::errorCode to
corrupt the stack. [Bug 804681]
2003-09-17 Vince Darley <[email protected]>
* tclPathObj.c: fix to test-suite problem introduced by the bug fix
below. No problem in ordinary code, just test suite code which
manually adjusts tclPlatform. [Bug 808247]
2003-09-16 Vince Darley <[email protected]>
* doc/filename.n: documentation of Windows-specific feature as
discussed in [Bug 541989]
* generic/tclPathObj.c: fix for normalization of volume-relative paths
[Bug 767834]
* tests/winFCmd.test: new tests for both of the above.
* tests/cmdAH.test: fix for AFS problem in test suite [Bug 748960]
2003-09-13 Donal K. Fellows <[email protected]>
TIP#123 IMPLEMENTATION BASED ON WORK BY ARJEN MARKUS
* generic/tclCompile.h (INST_EXPON): Implementation of
* generic/tclCompile.c (tclInstructionTable): exponential operator.
* generic/tclCompExpr.c (operatorTable):
* generic/tclParseExpr.c (ParseExponentialExpr, GetLexeme):
* generic/tclExecute.c (TclExecuteByteCode, ExponWide, ExponLong):
(IllegalExprOperandType):
* tests/expr.test:
* tests/compExpr-old.test:
* doc/expr.n:
2003-09-10 Don Porter <[email protected]>
* library/opt/optparse.tcl: Latest revisions caused [OptGuessType]
to guess "int" instead of "string" for empty strings. Missed the
required "-strict" option to [string is]. Thanks to Revar Desmera.
[Bug 803968]
2003-09-08 David Gravereaux <[email protected]>
* win/tclWinLoad.c (TclpDlopen): Changed the error message for
ERROR_PROC_NOT_FOUND to be a bit more helpful in giving us clues.
"can't find specified procedure" means a function in the import table,
for implicit loading, couldn't be resolved and that's why the load
failed.
2003-09-04 Don Porter <[email protected]>
* doc/Tcl_Main.3:
* doc/FileSystem.3: Implementation of
* doc/source.n: TIPs 137/151. Adds a
* doc/tclsh.1: -encoding option to
* generic/tcl.decls: the [source] command
* generic/tclCmdMZ.c (Tcl_SourceObjCmd): and a new C routine,
* generic/tclIOUtil.c (Tcl_FSEvalFileEx): Tcl_FSEvalFileEx(),
* generic/tclMain.c (Tcl_Main): that provides C access
* mac/tclMacResource.c (Tcl_MacSourceObjCmd): to the same function.
* tests/cmdMZ.test: Also adds command line
* tests/main.test: option handling in Tcl_Main() so that tclsh
* tests/source.test: and other apps built on Tcl_Main() respect a
-encoding command line option before a script filename. Docs and tests
updated as well. [Patch 742683]
This is a ***POTENTIAL INCOMPATIBILITY*** only for those C programs
that embed Tcl, build on Tcl_Main(), and make use of Tcl_Main's former
ability to pass a leading "-encoding" option to interactive shell
operations.
* generic/tclInt.decls: Added internal stub
* generic/tclMain.c (Tcl*StartupScript*): table entries for two
new functions Tcl_SetStartupScript() and Tcl_GetStartupScript() that
set/get the path and encoding for the startup script to be evaluated
by either Tcl_Main() or Tk_Main(). Given public names in anticipation
of their exposure by a followup TIP.
* generic/tclDecls.h: make genstubs
* generic/tclIntDecls.h:
* generic/tclStubInit.c:
2003-09-04 Don Porter <[email protected]>
* doc/SplitList.3: Implementation of TIP 148. Fixes [Bug 489537].
* generic/tcl.h: Updated Tcl_ConvertCountedElement() to quote
* generic/tclUtil.c: the leading "#" character of all list elements
unless the TCL_DONT_QUOTE_HASH flag is passed in.
* generic/tclDictObj.c: Updated Tcl_ConvertCountedElement() callers
* generic/tclListObj.c: to pass in the TCL_DONT_QUOTE_HASH flags
* generic/tclResult.c: when appropriate.
2003-08-31 Don Porter <[email protected]>
* doc/return.n: Updated [return] docs to cover new TIP 90 features.
* doc/break.n: Added SEE ALSO references to return.n
* doc/continue.n:
2003-09-01 Donal K. Fellows <[email protected]>
* doc/Namespace.3: Basic documentation for the TIP#139 functions. This
will need improving, but the basic bits are there at least.
2003-08-31 Don Porter <[email protected]>
* doc/catch.n: Updated [catch] docs to cover new TIP 90 features.
2003-08-29 Don Porter <[email protected]>
* generic/tclCmdAH.c: Corrected bug in TIP 90 implementation where
* tests/cmdMZ.test: the default -errorcode NONE value was not
copied into the return options dictionary. This correction modified
one test result.
2003-08-27 David Gravereaux <[email protected]>
* compat/strftime.c (_fmt): Removed syst array intializer that
couldn't take variables within it under the watcom compiler:
'Initializers must be constant'. I believe Borland has this strictness
as well. VC++ must be non-standard about this.
Changed Win32 platform #ifdef from 'WIN32' to '__WIN32__' as this is
the correct one to use across the Tcl sources. Even though we do force
it in tcl.h, the true parent one is __WIN32__.
Added missing CONST'ification usage to match prototype listed in
tclInt.decls.
* win/tclWinPort.h: Added a block for OpenWatcom adjustments that
fixes 1) the same issue Mo did for MinGW lack of missing LPFN_*
typedefs in their WINE derived <winsock2.h> and 2) The need to be
strict about how the char type needs to be signed by default.
* win/tclWinSock.c: Added OpenWatcom to the commentary about the
#ifdef HAVE_NO_LPFN_DECLS block.
* win/tclWinTime.c: Changed use of '_timezone' to 'timezone' as this
difference is already adjusted for in tclWinPort.h. Removed
unreferenced posixEpoch file-scope global.
* win/tclWinFile.c (WinReadLinkDirectory): Fix for 'Initializers must
be constant' with the driveSpec array using OpenWatcom.
2003-08-27 Don Porter <[email protected]>
* generic/tclUtil.c: Corrected [Bug 411825] and other bugs in
TclNeedSpace() where non-breaking space (\u00A0) and backslash-escaped
spaces were handled incorrectly.
* tests/util.test: Added new tests util-8.[2-6].
2003-08-26 David Gravereaux <[email protected]>
* generic/tcl.h: Added some support for the LCC-Win32 compiler.
Unfortunetly, this compiler has a bug in its preprocessor and can't
build Tcl even with this minor patch. Also added some support for the
OpenWatcom compiler. A new win/makefile.wc to follow soon.
2003-08-25 Donal K. Fellows <[email protected]>
* tools/genStubs.tcl (genStubs::makeDecl): A more subtle way of
generating stubbed declarations allows us to have declarations of a
function in multiple interfaces simultaneously.
* generic/tcl.decls: Duplicated some namespace declarations from
tclInt.decls here, as mandated by TIP #139. This is OK since the
declarations match and will end up using the declarations in the
public code from now on because of #include ordering. Keeping the old
declarations in tclInt.decls; there's no need to gratuitously break
compatibility for those extensions which are already clients of the
namespace code.
2003-08-23 Zoran Vasiljevic <[email protected]>
* generic/tclIOUtil.c: merged fixes for thread-unsafe handling of
filesystem records [Bug 753315]. This also fixed the [Bug 788780]
* generic/tclPathObj.c: merged fixes for thread-unsafe handling of
filesystem records. [Bug 753315]
* generic/tclFileSystem.h: merged fixes for thread-unsafe handling of
filesystem records. [Bug 753315]
2003-08-19 Pat Thoyts <[email protected]>
* win/tclWinSerial.c (SerialErrorStr): Fixed a syntax error created in
the previous code cleanup.
2003-08-19 Donal K. Fellows <[email protected]>
* win/tclWinSerial.c: Adjusted commenting and spacing usage to follow
the principles of the Style Guide better.
2003-08-18 Mo DeJong <[email protected]>
* win/configure: Regen.
* win/tcl.m4 (SC_ENABLE_SYMBOLS): Use test instead of -eq, which does
not work. [Bug 781109]
2003-08-13 Chengye Mao <[email protected]>
* win/tclWinPipe.c: fixed a bug in BuildCommandLine. This bug built a
command line with a missing space between tclpipe.dll and the
following arguments. It caused error in Windows 98 when exec
command.com (e.g. dir). [Bug 789040]
2003-08-11 Donal K. Fellows <[email protected]>
TIP #136 IMPLEMENTATION from Simon Geard <[email protected]>
* generic/tclCmdIL.c (Tcl_LrepeatObjCmd): Adapted version of Simon's
* doc/lrepeat.n: patch, updated to the HEAD
* tests/lrepeat.test: and matching the core style.
* generic/tclBasic.c (buildIntCmds): Splice into core.
* generic/tclInt.h:
* doc/list.n: Cross-reference.
2003-08-06 Jeff Hobbs <[email protected]>
* win/tclWinInit.c: recognize amd64 and ia32_on_win64 cpus.
2003-08-06 Don Porter <[email protected]>