apnadkarni
d87f07df98
Merge main
2023-08-24 15:37:21 +00:00
griffin
4a4195dde8
Replace test data with something more acceptable.
2023-08-24 01:45:05 +00:00
jan.nijtmans
0290bc2e58
Merge 8.7
2023-08-23 20:18:27 +00:00
jan.nijtmans
4408536018
Merge 8.6
2023-08-23 16:56:24 +00:00
jan.nijtmans
813e29b286
Fix [84a5355235] (not visible in 8.6, but meant to be forwared to 8.7)
2023-08-23 16:13:58 +00:00
jan.nijtmans
ea37e7d256
Backport [bae0d30c7f5047a4]. Don't suggest that TCL_UTF_MAX=1 might work any more. See: [457523]
2023-08-23 15:31:20 +00:00
bch
264cdba5ac
Tcl_Read(), Tcl_ReadChars() return Tcl_Size
2023-08-21 03:00:12 +00:00
apnadkarni
bc67254346
Back out [2a01c62b1a55a] - causes tcllib failures.
2023-08-20 13:26:21 +00:00
apnadkarni
df59030308
Merge 8.7 - Fix UtfToUtf16Proc
2023-08-18 07:08:55 +00:00
apnadkarni
8f08010332
Fix UtfToUtf16Proc and UtfToUCS2Proc to not assume sizeof(Tcl_UniChar) is size of UTF16 / UCS2 code unit"
2023-08-18 06:57:08 +00:00
griffin
cbaacc8765
Fix bug: Performance regression in 9.0 accessing dicts as lists [f4c01e42a7]
2023-08-17 21:03:54 +00:00
griffin
8b2e668afd
Remove ineffective index operation. Shimmering is already optimal.
2023-08-17 17:37:58 +00:00
griffin
ac90f7932a
Working index operation, but terrible performance. (not surprising)
2023-08-17 17:16:40 +00:00
griffin
90743534a8
Fix llength function for dict types.
2023-08-16 21:36:18 +00:00
griffin
c3237c427f
merge bug-bc7ddc7944 (revert use of TclDuplicatePureObj)
2023-08-14 15:46:21 +00:00
apnadkarni
d8efa035d1
Bug [457523]. Trivial comment edit just to close the bug
2023-08-14 12:55:16 +00:00
griffin
08461f8e8f
merge trunk
2023-08-14 05:07:19 +00:00
apnadkarni
ed918cb027
Bug [bc076f4f0e]. Fix large indexing broken by commit [0b05b5c750df]. Also preserves Tk bug fix [a9929f112a]
2023-08-14 03:42:58 +00:00
apnadkarni
37289addc2
Fix up tests for modified Tcl_GetIntForIndex semantics
2023-08-13 13:37:23 +00:00
apnadkarni
e2d5a2cd60
Merge in fix for end+1 indices.
2023-08-13 11:56:12 +00:00
apnadkarni
5860a89267
Fix for Tk [a9929f112a]
2023-08-13 10:35:29 +00:00
apnadkarni
aa0e1c2bd9
Revert [0b05b5c750df] that broke bigdata tests and lseq-1.13
2023-08-13 06:22:28 +00:00
griffin
558680d5e5
merge trunk
2023-08-13 04:29:59 +00:00
griffin
baa91f87ba
Rename Tcl_BumpObj() to Tcl_BounceRefCount().
...
After the presentation on Abstract Lists at the 2023 OpenACS/Tcl
Conference, there was a strong opinion that this function should be
renamed. The results of an informal poll had a tie between
Tcl_DoneWithObj() and Tcl_BounceRefCount(). Having seen a reference to
"Bounce" in a research paper on Ref Counting, I chose to use
Tcl_BounceRefCount().
2023-08-12 23:14:43 +00:00
griffin
c29c4e023f
More replacements of DuplicateObj with ListObjCopy.
2023-08-12 17:56:23 +00:00
griffin
997617cd7d
Replace more DuplicateObj with ListObjCopy.
2023-08-12 04:07:57 +00:00
griffin
0a0ba9e309
Replace DuplicateObj with ListObjCopy where appropriate.
2023-08-11 17:55:27 +00:00
dgp
073b0f729a
Tcl_DuplicateObj() does not need DECACHE/CACHE protections.
2023-08-11 15:09:31 +00:00
griffin
bf8b4d6d18
Revert more bits.
2023-08-10 21:12:05 +00:00
griffin
45a4664dc2
Revert DupolicatePureObj back to DuplicateObj.
2023-08-10 17:48:37 +00:00
dgp
946847b4b9
silence compiler warning
2023-08-10 14:09:55 +00:00
griffin
5b6a975221
Proposed fix for bug-bc7ddc7944
2023-08-10 01:47:42 +00:00
griffin
96b27040f7
Fix uninitialized variable.
2023-08-09 22:55:25 +00:00
griffin
7dc2ed805f
Corrections and additions for ObjectType Abstract List descriptions. Part of bug [30e4e9102f]
2023-08-08 22:55:50 +00:00
griffin
0d106bd729
Fix bug [30e4e9102f] - Abstract List ListIndex should return NULL when index out of range.
2023-08-08 17:10:20 +00:00
griffin
4eef7b0ff0
Implement in,ni operator for abstract lists
2023-08-08 15:21:47 +00:00
apnadkarni
59462a578f
Bug [f5c01e42a7]. Disable DictAsListIndex for the time being.
2023-08-08 06:02:32 +00:00
dgp
67a433cc8e
quiet test noise
2023-08-04 14:06:34 +00:00
dgp
b87eac8cd9
Add DECACHE/CACHE_STACK_INFO() protections to calls out of the bytecode
...
execution engine to avoid panics from corrupted execution stack.
2023-08-03 20:00:01 +00:00
jan.nijtmans
89cc07aa34
Merge 8.7
2023-08-03 13:04:33 +00:00
jan.nijtmans
aeaba6971a
Merge 8.7
2023-08-03 11:26:37 +00:00
jan.nijtmans
a53c12b3b5
Implement TCL_LIB_FLAG/TCL_BUILD_LIB_SPEC for Windows (which - aparently - has always been just empty)
2023-08-03 10:59:49 +00:00
jan.nijtmans
b29ad5dcf2
DOn't use --out-implib on Cygwin any more, no longer needed
2023-08-03 10:15:41 +00:00
jan.nijtmans
a6714c6778
Merge 8.7
2023-08-02 20:51:52 +00:00
jan.nijtmans
0472854629
Merge 8.6
2023-08-02 19:34:00 +00:00
jan.nijtmans
cca28f5ef3
deprecate TCL_EXPORT_FILE_SUFFIX: no longer needed. Fix some path handling containing spaces
2023-08-02 19:13:20 +00:00
jan.nijtmans
e97b71f139
Merge 8.7
2023-08-01 16:12:15 +00:00
jan.nijtmans
47f462c33c
Make sure that zdll.lib and tommath.lib are installed in windows, for possible use by extensions.
2023-08-01 16:09:48 +00:00
jan.nijtmans
66027ff8e6
Merge 8.7
2023-08-01 15:52:03 +00:00
jan.nijtmans
2e364fd375
Merge 8.6
2023-08-01 15:42:36 +00:00
jan.nijtmans
cb7eb97a8d
Add TCL_ZLIB_LIB_NAME to tclConfig.sh (for Windows)
2023-08-01 15:27:33 +00:00
jan.nijtmans
911d6f8e5e
Merge 8.7
2023-08-01 13:57:28 +00:00
jan.nijtmans
09e16559af
testcase cleanup
2023-08-01 13:19:26 +00:00
apnadkarni
c94d0732e0
Bug [76d45ec836] - mingw - tommath not copied on install
2023-08-01 13:01:25 +00:00
jan.nijtmans
2618ae962a
merge-mark
2023-08-01 06:53:46 +00:00
jan.nijtmans
82703fea0a
merge-mark
2023-08-01 06:52:30 +00:00
jan.nijtmans
3b99720301
Prevent Tcl 8.6 header-file to be usable for Tcl 9 compiles. (see [6f22c7a1fc])
2023-08-01 06:46:56 +00:00
jan.nijtmans
f70182e63c
Some more int -> Tcl_Size (backported from 9.0)
2023-08-01 06:39:33 +00:00
jan.nijtmans
1625f9f678
Fix [e58d7e19e9]: Upwards compatibility of TclObjTypeHasProc()
2023-07-31 15:58:14 +00:00
jan.nijtmans
fddaf810d4
Add (hopefully confincing) testcase for bug [e58d7e19e9]
2023-07-31 15:45:13 +00:00
jan.nijtmans
fc19cf036c
Merge bug-e58d7e19e9-demo branch: Show that everything works fine here.
2023-07-29 20:35:16 +00:00
jan.nijtmans
e7cef5d811
Demo bug [e58d7e19e9]
2023-07-29 18:11:26 +00:00
apnadkarni
848c57d596
Merge 8.7 - Tcl_ListObjIndex tests
2023-07-29 06:46:16 +00:00
apnadkarni
a0cee2b681
Add tests for out of bounds Tcl_ListObjIndex
2023-07-29 05:56:10 +00:00
apnadkarni
ae7471ec7e
A bunch of 64 bit fixes (int->Tcl_Size) and the like.
2023-07-28 15:51:02 +00:00
jan.nijtmans
861b69164d
Merge 8.7
2023-07-28 08:04:01 +00:00
jan.nijtmans
c94fa5b242
"utf-8" is the new "identity": make it available always
2023-07-28 07:50:18 +00:00
apnadkarni
dc033db224
Merge 8.7 Encoding doc fix
2023-07-28 05:04:44 +00:00
apnadkarni
5c12e53355
Fix transposing of TCL_OK, TCL_ERROR in Encoding docs
2023-07-28 05:02:37 +00:00
jan.nijtmans
d74efff177
Add some implicit "-profile tcl8" to testcases
2023-07-27 16:27:21 +00:00
apnadkarni
e253c3eed9
Merge trunk
2023-07-27 16:26:38 +00:00
apnadkarni
35a47e7051
Merge trunk
2023-07-27 15:32:11 +00:00
jan.nijtmans
78c6a505b7
Demonstration how to add TCL_OBJTYPE_V3, while keeping upwards compatibility: all other TCL_OBJTYPE_V? macro's continue to work
2023-07-27 13:19:48 +00:00
jan.nijtmans
503165d9c2
Proposed fix for [e58d7e19e9]: Upwards compatibility of TclObjTypeHasProc()
2023-07-27 13:10:40 +00:00
jan.nijtmans
e4971bdffc
Proposed fix for [e58d7e19e9]: Upwards compatibility of TclObjTypeHasProc()
2023-07-27 12:57:27 +00:00
jan.nijtmans
af64c95042
merge-mark
2023-07-27 07:56:27 +00:00
jan.nijtmans
90034cb557
Merge 8.7
2023-07-27 07:52:44 +00:00
jan.nijtmans
d49a7f9c8d
int -> Tcl_Size in Tcl_MacOSXOpen*BundleResources
2023-07-27 07:22:56 +00:00
jan.nijtmans
3f7d896efb
merge-mark
2023-07-26 15:18:53 +00:00
jan.nijtmans
60c1d787b1
Simplify tenviron2utfdstr(), since 2nd argument is always -1.
2023-07-26 15:15:22 +00:00
jan.nijtmans
df1e155f68
Merge 8.7
2023-07-26 08:06:52 +00:00
jan.nijtmans
862ae1266c
Merge 8.6
2023-07-26 08:03:45 +00:00
jan.nijtmans
b985fb8965
Fix [c54e4a1aeb] (again): High Tcl latencies with fork() in larger systems.
...
vfork() is now prefered, if available
2023-07-26 07:15:26 +00:00
jan.nijtmans
004d2e654f
Close fork. Prefer vfork over posix_spawnp
2023-07-25 15:57:02 +00:00
neumann
323f750af8
Regenerated configure file
2023-07-25 15:07:31 +00:00
jan.nijtmans
8733687efc
Add (back) check for vfork()
2023-07-25 10:35:22 +00:00
neumann
d880550d56
Prefer vfork() over posix_spawnp()
...
In essence, older versions of the posix_spawn(p) implementation under
glibc have the problem not returning the correct error number in case
the spawn call fails. This is e.g. a problem with CentOS 7, which uses
GNU libc 2.17, which was released 2012-12-25. This has the consequence
that on such systems, Tcl is not error message compliant to versions
without posix_spawn.
The versions of vfork() do not face this problem and show similar
performance characteristics like with posix_spawnp() (spawn time in
essence independent of memory footprint size).
This change was tested with macOS 13.4, Ubuntu 20.04, CentOS 7.9 and
OpenBSD 7.2.
2023-07-25 09:01:51 +00:00
jan.nijtmans
c1e69b2d6b
Make use_spawn static
2023-07-25 07:54:42 +00:00
jan.nijtmans
ecc60b1256
Re-generate configure and tclConfig.h.in
2023-07-25 07:44:01 +00:00
jan.nijtmans
b7f335b27d
attempt to fix posix_spawn on linux
2023-07-25 07:36:19 +00:00
jan.nijtmans
50944b9abf
merge-mark
2023-07-24 15:18:50 +00:00
jan.nijtmans
4dd445404b
Merge 8.7
2023-07-24 15:14:46 +00:00
jan.nijtmans
ffe298076d
Merge 8.6
2023-07-24 15:13:51 +00:00
jan.nijtmans
4f7e149fb6
For now, disable posix_spawnp, until we have a better solution for [407b70361c148773]
2023-07-24 15:12:04 +00:00
jan.nijtmans
545fe029f6
Merge 8.7
2023-07-24 13:32:43 +00:00
jan.nijtmans
399309020d
Merge 8.6
2023-07-24 11:13:58 +00:00
jan.nijtmans
30816932df
Keeping open [c54e4a1aeb]: Can the exec-17.1 test-failure on MaxOS be fixed?
2023-07-24 10:34:59 +00:00
jan.nijtmans
03b881a299
Fix [c54e4a1aeb]: High Tcl latencies with fork() in larger systems
2023-07-24 10:19:52 +00:00
apnadkarni
a3581baf86
Docs - tilde substitution and unsigned int->size_t in Tcl_Alloc
2023-07-24 05:40:38 +00:00
apnadkarni
7e80d62929
Merge trunk
2023-07-22 13:54:46 +00:00
jan.nijtmans
72fef9d4d0
Merge 8.7
2023-07-21 12:00:42 +00:00
jan.nijtmans
7caf2af1db
simplify tenviron2utfdstr/utf2tenvirondstr macro's, since 2nd argument is always -1
...
Improve error-handling related to environment variables
All 'stolen' from TIP #571 branch
2023-07-21 11:37:21 +00:00
jan.nijtmans
a22f4cc167
Check for _LARGEFILE64_SOURCE after _FILE_OFFSET_BITS=64, since the latter is prefered
2023-07-21 07:11:25 +00:00
jan.nijtmans
d357339eb6
Merge 8.7
2023-07-20 21:01:03 +00:00
jan.nijtmans
9195d0b1bc
Fix handling of pre-built libtommath.dll on win64-arm
2023-07-20 20:52:03 +00:00
jan.nijtmans
041458aca6
Add comment to cmdAH-24.20.[12]
2023-07-20 13:32:47 +00:00
jan.nijtmans
6a7b44b23c
.... forgot to re-generate tclConfig.h.in
2023-07-20 13:07:41 +00:00
jan.nijtmans
c45f83b3db
Fix [d40b9c8503]: Enforcing 64-bit time_t?
2023-07-20 12:45:01 +00:00
jan.nijtmans
72db4a5deb
Don't bail out when no 64-bit time is available
2023-07-20 12:41:32 +00:00
jan.nijtmans
73a790977d
Rebase to 9.0
2023-07-19 16:00:31 +00:00
jan.nijtmans
c510082005
Merge 8.7
2023-07-19 14:49:55 +00:00
jan.nijtmans
515bd7c0e7
Improve error-reporting possibilities for Tcl_ExternalToUtfDStringEx/Tcl_UtfToExternalDStringEx in case no interpreter is available, by setting "errno".
2023-07-19 14:23:31 +00:00
jan.nijtmans
50eeabb101
Bugfix for escape-encoding, 'stolen' from TIP #671 branch
2023-07-19 13:04:51 +00:00
apnadkarni
2e4dede387
Merge 8.7 - install tommath.lib
2023-07-17 16:48:17 +00:00
apnadkarni
0a3cfc7902
Fix: tommath.lib needs to be installed to permit extensions to link when using the tommath C API
2023-07-17 16:36:51 +00:00
apnadkarni
53f75ee8c8
Merge 8.7 - update for missing TIP 548 function docs
2023-07-17 06:31:17 +00:00
apnadkarni
fc0c89372c
Fix missing TIP 548 function docs. Some copy editing of doc prototypes for clarity (sez he).
2023-07-17 06:19:41 +00:00
apnadkarni
7791d13f5c
Merge 8.7 - Bug [a366c6efee]
2023-07-16 07:23:13 +00:00
apnadkarni
ccf857a3db
Bug [a366c6efee]
2023-07-16 06:15:36 +00:00
griffin
56ca2a64d7
Fix bug [c25d2cd3e6], as well as memory leaks in lsearch and concat.
...
Add cleanup to some tests.
Fix bug and leak in tclTestABSList.c
Correct comment in tclArithSeries.c
2023-07-16 00:24:54 +00:00
dgp
e10b5cb8b9
Same fix in chanio.test
2023-07-14 15:59:12 +00:00
dgp
88dd8c1911
Move channel close commands to -cleanup so that when the (expected) error
...
occurs in [fcopy] we do not leave open channels lurking to interfere with
later tests.
2023-07-14 15:36:05 +00:00
dgp
20188493af
dup test name
2023-07-14 14:18:18 +00:00
jan.nijtmans
d08eb4bc7d
Merge 8.7
2023-07-14 06:28:38 +00:00
oehhar
3fb975f30d
Correct wording in Comment
2023-07-13 17:19:06 +00:00
jan.nijtmans
1e54e0ba13
Merge 8.7
2023-07-13 16:23:10 +00:00
jan.nijtmans
55d08599b5
Backport changes in tclListObj.c from Tcl 9.0
2023-07-13 15:42:07 +00:00
pooryorick
0900f426bd
Remove incorrect lines that were added to SetDuplicatePureObj().
...
SetDuplicatePureObj() is specifically not about preserving immutable string
value semantics from the orginal object to the new object.
2023-07-13 12:06:14 +00:00
apnadkarni
5ef0c1ab2d
NewStringObj more efficient than NewUnicodeObj
2023-07-13 03:33:34 +00:00
jan.nijtmans
7709859190
Eliminate another compiler-warning, with -DTCL_NO_DEPRECATED=1
2023-07-12 20:02:39 +00:00
jan.nijtmans
aeb6cd1eb9
One more unresolved reference (see prev commit)
2023-07-12 19:56:27 +00:00
jan.nijtmans
ca2928e660
More fixes related to [c1691dc608]: 32-bit Linux regressions, like ".... undefined reference to `TclGetUnicodeFromObj'"
2023-07-12 19:36:00 +00:00
jan.nijtmans
99e286f193
Merge 8.7
2023-07-12 19:13:25 +00:00
jan.nijtmans
a123c440eb
(partial) fix for [c1691dc608]: 32-bit Linux regressions. Eliminate compiler warning
2023-07-12 19:11:46 +00:00
jan.nijtmans
6b299f271e
Merge 8.7
2023-07-12 15:12:20 +00:00
jan.nijtmans
74ba5e4336
Fix special-case in SetDuplicatePureObj(): Since typePtr is always &tclListType (ALL current calls to TclDuplicatePureObj() have &tclListType as last argument), this constructions can never work.
...
(I'm not sure this code is usefull at all, but that's for another day)
2023-07-12 15:09:52 +00:00
jan.nijtmans
6535d19542
Merge 8.7
2023-07-12 14:43:13 +00:00
jan.nijtmans
56aabaf032
Consider 3 more types as special in TclDuplicatePureObj(). Updated comment for the reason why.
2023-07-12 11:38:08 +00:00
apnadkarni
d26b9d5751
Merge trunk
2023-07-12 08:33:31 +00:00
apnadkarni
03e22c83db
Merge mark
2023-07-12 06:42:39 +00:00
apnadkarni
38d334f8f2
Fix [54329e39c7]
2023-07-12 06:39:22 +00:00
griffin
62f180300b
Fix foreach bug [a34733451b].
...
Other code cleanup discovered by code review.
2023-07-12 03:06:54 +00:00
apnadkarni
6c4636e94b
Fix [54329e39c7]
2023-07-12 02:51:50 +00:00
apnadkarni
4ee94e4f67
Add test
2023-07-12 02:31:54 +00:00
apnadkarni
5073e2599b
Abstract list type for strings
2023-07-11 16:48:14 +00:00
apnadkarni
04328bc720
Tweak last for performance in case of traditional lists.
2023-07-11 16:43:13 +00:00
apnadkarni
d852753be2
Wrap DECACHE_STACK_INFO around Tcl_ListObjIndex call from bytecode engine.
2023-07-11 12:59:13 +00:00
apnadkarni
f7429e3230
Prevent foreach memory bloat iterating within a proc
2023-07-11 11:35:01 +00:00
jan.nijtmans
cd97018033
Merge 8.7
2023-07-11 09:23:33 +00:00
jan.nijtmans
531cd741e0
Fix [5916e48806]: tcl.pc: hardcoded depedencies, missing build flags
2023-07-11 09:20:52 +00:00
jan.nijtmans
7aa511f93b
Merge 8.7
2023-07-10 16:07:08 +00:00
jan.nijtmans
bc24a1ca5a
Code cleanup for arithSeries, all backported from 9.0
2023-07-10 15:57:51 +00:00
apnadkarni
481f6f184e
Create new branch named "apn-string-split"
2023-07-10 11:49:25 +00:00
apnadkarni
7f10145e49
Permit large scripts > INT_MAX. Not complete because compiler source line tracking still limited.
2023-07-09 14:47:22 +00:00
apnadkarni
3edb9b4175
Create new branch named "apn-fix-scripts64"
2023-07-09 13:51:12 +00:00
jan.nijtmans
0f0bd5de07
Unbreak Windows build (broken by [765c9c37a2] due to TIP #628 )
2023-07-08 20:36:56 +00:00
jan.nijtmans
35baa585da
Merge-mark
2023-07-08 20:28:06 +00:00
jan.nijtmans
6cc4425966
Fix [c5bcbf3494]: Output of surrogates seems to repeat following character
2023-07-08 20:25:28 +00:00
griffin
14cb83639f
Cleanup abstract list ObjType function definitions.
2023-07-07 21:06:45 +00:00
jan.nijtmans
68d6146f53
Make TIP #636 work together with TIP #628 : Shared 8.7/9.0 build environment
2023-07-07 14:57:17 +00:00
jan.nijtmans
ad7e9fe625
TIP #636 cleanup: Eliminate the use of Tcl_ObjTypeLength() et al, which look public but are internal and not documented anywhere.
2023-07-07 14:23:37 +00:00
neumann
5452282a91
- reduced error of posix_spawnp() cases for macOS to 1 (exec-17.1).
...
The problem seems related to a different I/O setup for cases,
when stdout is closed and to be replaced by a different stream
- deactivated posix_spawnp() for macOS for the time being
2023-07-07 13:30:19 +00:00
griffin
1858192725
merge TIP #636 (tip-636-tcl9-644)
2023-07-07 02:56:48 +00:00
griffin
e7d7e2db67
merge trunk
2023-07-06 21:37:23 +00:00
griffin
024c0aa13a
merge trunk
2023-07-06 19:12:14 +00:00
jan.nijtmans
5e662840fb
off-by-one. Minor optimization
2023-07-06 16:13:13 +00:00
jan.nijtmans
6ad38477e3
Proposed fix for [c5bcbf3494]: Output of surrogates seems to repeat following character. Also use more ***_SURROGATE() macro's
2023-07-06 15:07:48 +00:00
jan.nijtmans
7ef194a7d1
Merge 8.7
2023-07-05 15:10:20 +00:00
jan.nijtmans
a2e7501d74
Merge 8.6
2023-07-05 15:08:38 +00:00
jan.nijtmans
575f580d51
Backport [66ffafd309]: Truncated encoding for DBCS results in infinite loop and running out of memory
2023-07-05 14:55:51 +00:00
apnadkarni
3106ce90c0
Merge 8.7 - Bug [5be203d6ca] - io-7.3 failure
2023-07-05 05:52:58 +00:00
apnadkarni
0109dc8279
Bug [5be203d6ca] - io-7.3 failure
2023-07-05 05:08:56 +00:00
apnadkarni
b49afc700b
Bug [5be203d6ca] - better fix and add test
2023-07-05 03:23:43 +00:00
griffin
70ca2e60fd
merge trunk
2023-07-04 18:13:54 +00:00
jan.nijtmans
3135d809f5
Merge 8.7
2023-07-04 15:13:50 +00:00
jan.nijtmans
6bf04853ec
Use more uppercase hex in documentation and test-cases (for consistancy)
2023-07-04 14:52:30 +00:00
jan.nijtmans
a2c7cc0d23
Use "tcltest::Asciify" in stead of "printable"
2023-07-04 11:18:44 +00:00
apnadkarni
3d2de6ed07
Correctly compute consumed bytes in case of truncated byte sequence at end.
2023-07-04 06:47:13 +00:00
griffin
7e59780763
merge trunk
2023-07-03 17:07:04 +00:00
jan.nijtmans
a071f9c13b
Remove useless section in tclUnixPort.h
2023-07-03 15:29:37 +00:00
jan.nijtmans
edd3934b32
Merge 8.6. Put vfork check a little bit earlier in unix/tcl.m4. Re-generate unix/configure with (modified) autoconf-2.59
2023-07-03 15:07:05 +00:00
jan.nijtmans
f24bab84df
Branch meant for bug-fixing [5be203d6ca]: io-7.3 and chanio-7.3 fail in debug mode
2023-07-03 14:16:37 +00:00
jan.nijtmans
3d98702f45
Merge 8.7
2023-07-03 14:10:34 +00:00
jan.nijtmans
6416a20fd8
Adapt tcltest::Asciify, so it's usable for Tcl 8.5 and 8.6 too
2023-07-03 14:09:23 +00:00
jan.nijtmans
77c8868be4
Fix testcase (broken by previous commit)
2023-07-03 14:08:41 +00:00
jan.nijtmans
ee7499c2e3
Fix comment (missing ticket ID)
2023-07-03 13:51:28 +00:00
jan.nijtmans
3bfb46688d
Temporary disable tests io-7.3 and chanio-7.3, which fail in debug mode. Ticket [5be203d6ca] created.
2023-07-03 13:46:54 +00:00
jan.nijtmans
78c9978aa1
Fix [a5901fc953]: Version control should ignore unix/dltest/embtest
2023-07-03 08:03:03 +00:00
griffin
7968fff465
Add tests for scalar numeric values.
2023-07-03 00:33:16 +00:00
jan.nijtmans
67dfc6e7e3
Merge 8.7
2023-07-02 12:07:35 +00:00
jan.nijtmans
690c5c2c9e
Merge 8.6
2023-07-02 12:02:51 +00:00
jan.nijtmans
0070215933
No need for function prototypes in unix/dltest/*.c
2023-07-02 11:53:38 +00:00
fvogel
e668c10036
merge core-8-branch (no change)
2023-07-02 09:26:53 +00:00
fvogel
4773d1dadd
merge core-8-6-branch (no change)
2023-07-02 09:26:29 +00:00
fvogel
bf2b5846b0
Unbreak the 8.6 build.
2023-07-02 09:25:57 +00:00
fvogel
32bd9fd0d2
We definitely need to build core-8-6-branch of Tcl IMHO.
2023-07-02 08:21:04 +00:00
fvogel
5162de4fec
We definitely need to build core-8-6-branch of Tcl IMHO.
2023-07-02 08:20:53 +00:00
fvogel
6b4a453621
We definitely need to build core-8-6-branch of Tcl IMHO.
2023-07-02 08:20:36 +00:00
apnadkarni
6a1f856c63
8.7 merge mark
2023-07-02 04:57:10 +00:00
apnadkarni
5dab0fa5de
Backport fix [66ffafd309]. DBCS infinite loop on invalid encoding
2023-07-02 04:55:47 +00:00
apnadkarni
f368137ec5
8.7 merge mark (lseq tests)
2023-07-02 04:54:33 +00:00
apnadkarni
b863e0d57a
Tests for [66ffafd309]
2023-07-02 03:03:30 +00:00
apnadkarni
01785b73fb
Fix [66ffafd309]. DBCS infinite loop on invalid encoding
2023-07-02 02:41:59 +00:00
apnadkarni
cfc103c6b8
Bug [66ffafd309]
2023-07-01 18:02:07 +00:00
griffin
7de69aeb41
merge trunk
2023-06-30 22:16:55 +00:00
griffin
a55934d712
Test update for bug [63530267aa].
2023-06-30 20:34:09 +00:00
griffin
04249bbcd7
Test update for bug [63530267aa]. Fix 32-bit embtest build issue.
2023-06-30 19:02:34 +00:00
griffin
eb1f9c9989
merge trunk
2023-06-30 14:34:09 +00:00
jan.nijtmans
da8010ca5c
Merge 8.7. Remove unused TclArithSeriesObjLength()
2023-06-30 13:40:48 +00:00
jan.nijtmans
6c5be5280f
Merge 8.6
2023-06-30 13:28:56 +00:00
jan.nijtmans
24f3e6199d
Use more strict compilation-flags (but not -DTCL_MEM_DEBUG) in unix/dltest/Makefile
2023-06-30 13:10:36 +00:00
jan.nijtmans
81da6c1a9a
Since TCL_MAJOR_VERSION is always "8", don't check for it. Add C++-compatible typecasts.
2023-06-30 13:08:30 +00:00
neumann
f4a4df7a48
Updated configure script to ease testing with this branch
2023-06-30 09:56:01 +00:00
neumann
c59dfa5e83
Removed automated setting of USE_VFORK for macOS
...
The automatic setting of USE_VFORK in unix/configure.in is useless,
confusing, and deprecated.
Background: configure.in had a section, where it sets
automatically USE_VFORK for macOS.
if test "`uname -s`" = "Darwin" ; then
...
AC_DEFINE(USE_VFORK, 1, [Should we use vfork() instead of fork()?])
...
However, Daniel Steffen has added the following section 17 years ago
which effectively deactivated USE_VFORK for the x86_64 platform, when
it is set, due to a bug report in RDAR (Apple's bug tracking
system). 16 years ago a section was added to deactivate USE_VFORK for
all platforms with llvm-gcc-4.2 or newer.
/*
*---------------------------------------------------------------------------
* At present, using vfork() instead of fork() causes execve() to fail
* intermittently on Darwin x86_64. rdar://4685553
*---------------------------------------------------------------------------
*/
/* Workaround problems with vfork() when building with llvm-gcc-4.2 */
(__GNUC__ > 4 || (__GNUC__ == 4 && (__GNUC_MINOR__ > 2 || \
(__GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ > 0))))
This means, that the last 17 years, USE_VFORK was not doing anything
on macOS. Furthermore, macOS 12 (Monterey, released 2021) deprecated
vfork() officially.
Therefore, it is safe to remove the setting of USE_VFORK from the
default configuration for macOS.
It is still possible to set USE_VFORK manually for certain platform if
needed.
2023-06-30 09:49:08 +00:00
neumann
3f68e9f64f
Added auto-configuration of posix_spawnp()
...
Removed the manual setting of USE_POSIX_SPAWN and
replaced it by HAVE_POSIX_SPAWNP.
2023-06-30 09:12:02 +00:00
jan.nijtmans
801ae4d914
Revert 'fix' for [ac874937c5], committed as part of a "Merge 8.7" commit. It's wrong, since "embtest" is expected to be an executable, not a shared library
2023-06-30 07:40:19 +00:00
griffin
cd82527608
merge 8.7
2023-06-29 18:30:13 +00:00
griffin
6f98b30d5b
Fix uninitialized variable.
2023-06-29 15:42:14 +00:00
dkf
4b6859f9dc
Add timeouts to github workflows to catch runaway scripts
2023-06-29 15:13:57 +00:00
apnadkarni
13b2522d41
Merge 8.7 - Bug [6a3e2cb0f0] - invalid bytes in escape encodings
2023-06-29 11:30:51 +00:00
apnadkarni
6ae93efff0
Bug [6a3e2cb0f0] - invalid bytes in escape encodings
2023-06-29 11:09:29 +00:00
jan.nijtmans
3a1e74ddc5
Merge-mark
2023-06-29 07:24:20 +00:00
griffin
b95bc2b4ce
Fix ticket [63530267aa] by implementing ticket [e5f06285de] and making additional corrections.
2023-06-28 19:36:41 +00:00
jan.nijtmans
324c39d51c
Merge 8.7
2023-06-28 07:27:17 +00:00
jan.nijtmans
26aa7dd453
Fix [26960060d7]: lseq-3.14 triggers use-after-free
2023-06-28 07:20:18 +00:00
jan.nijtmans
bc27046551
Fix [78b9b6860c]: Please sync tclOOScript.h
2023-06-28 07:15:59 +00:00
jan.nijtmans
e30e67e0cd
Fix [ https://core.tcl-lang.org/tk/tktview/a9929f112a |a9929f112a]: Bugs in the implementation of TIP #577 ('Enhanced index values for Tk')
2023-06-28 07:10:49 +00:00
jan.nijtmans
e5d7a4afce
Merge 9.0
2023-06-27 15:31:05 +00:00
jan.nijtmans
d273c052a5
Fix [24a8c16dbd]: bigdata.test: invalid command name "testbigdata" on 32-bit
2023-06-27 12:57:13 +00:00
pooryorick
53cfe378b3
Fix previous errors in encoding.test
2023-06-27 10:07:19 +00:00
jan.nijtmans
7f18f499d0
Merge 8.7
2023-06-27 06:55:41 +00:00
jan.nijtmans
04d66a2571
Remove compat/dirent*.h and some other compat/*.c files: Modern C-compilers all have those now
2023-06-27 06:42:06 +00:00
jan.nijtmans
e8d619b292
Merge 8.7
2023-06-26 10:12:17 +00:00
jan.nijtmans
1b53ef3bbd
Remove compat/stdint.h and compat/stdlib.h: All C-compilers nowadays have it.
2023-06-26 09:52:00 +00:00
jan.nijtmans
07ea9d3df5
Merge 9.0
2023-06-23 23:18:41 +00:00
griffin
bd64729686
merge trunk
2023-06-23 17:48:07 +00:00
griffin
4fdc66665f
Fix build issue with no_deprecated.
2023-06-23 17:32:43 +00:00
jan.nijtmans
be1a8384ef
Merge 8.7
2023-06-22 20:07:18 +00:00
jan.nijtmans
e37db31205
Fix [44452e2c55]: indexObj.test failures on i386
2023-06-22 19:00:59 +00:00
jan.nijtmans
823a3f2b2b
Merge-mark
2023-06-22 13:40:35 +00:00
jan.nijtmans
9df01df02c
Since Tcl 8.6 doesn't know about Tcl_Size, don't use it, not even in test comments
2023-06-22 13:39:14 +00:00
jan.nijtmans
f35db8a093
Proposed fix for [44452e2c55]: indexObj.test failures on i386
2023-06-22 11:59:58 +00:00
jan.nijtmans
b8c47674a4
WIP for fixing [ https://core.tcl-lang.org/tk/tktview/a9929f112a |a9929f112a]
2023-06-22 10:12:42 +00:00
jan.nijtmans
9a18abc855
merge-mark
2023-06-21 22:44:08 +00:00
jan.nijtmans
22c9ba1a27
(partial) fix for [ https://core.tcl-lang.org/tk/tktview/a9929f112a |a9929f112a]: Bugs in the implementation of TIP 577 ("Enhanced index values for Tk" )
2023-06-21 22:38:58 +00:00
jan.nijtmans
bc87d9a2bc
Fix 3 "lset" testcases
2023-06-21 21:30:53 +00:00
jan.nijtmans
7c2d72933f
(partial) fix for [ https://core.tcl-lang.org/tk/tktview/a9929f112a |a9929f112a]. Tk needs some changes too
2023-06-21 14:52:44 +00:00
jan.nijtmans
eb09d3860d
Merge 8.7
2023-06-21 07:18:34 +00:00
jan.nijtmans
09c0f68355
"trace variable" -> "trace add variable" in testcases (and documentation)
2023-06-21 07:13:48 +00:00
griffin
172063cace
Fix bug in TEBC foreach with abstractlists
2023-06-20 22:16:54 +00:00
jan.nijtmans
e26ccd75b1
Merge 8.7
2023-06-20 07:11:30 +00:00
jan.nijtmans
104527a107
Move VarHashGetKey() to tclInt.h. More int -> Tcl_Size
2023-06-20 06:51:49 +00:00
griffin
2e4b97b87f
merge trunk
2023-06-20 01:47:47 +00:00
griffin
be39d74ee7
Fix crash in BC execution when str concat and abstract list lindex operations have recursive BC execution.
...
Add testcase for this bug.
2023-06-20 01:28:25 +00:00
apnadkarni
ded49faad5
Merge 8.7 - fix tests - hardcoded port and wsl.
2023-06-19 13:39:31 +00:00
apnadkarni
73a582c685
Merge 8.6 - fix tests - hardcoded port and wsl.
2023-06-19 13:21:46 +00:00
apnadkarni
c2f255fe84
Fix hardcoded port numbers causing Windows failures with hyperv. Disable
...
file perm test for WSL.
2023-06-19 12:49:29 +00:00
jan.nijtmans
2ebe7012db
Merge 8.7
2023-06-19 12:42:00 +00:00
jan.nijtmans
ec8dfd57db
Some more Tcl_Size usage
2023-06-19 11:47:58 +00:00
griffin
d8ce1ffde8
merge trunk
2023-06-19 04:29:28 +00:00
jan.nijtmans
7f8e25f907
Fix [c13819225e]: Problem with lsort|lsearch -stride on 32-bit linux
2023-06-18 11:04:22 +00:00
griffin
06465624ac
Clarification.
2023-06-18 01:51:10 +00:00
jan.nijtmans
cf84dd6daf
Proposed fix for [c13819225e]: Problem with lsort|lsearch -stride on 32-bit linux. Also fix some compiler warnings
2023-06-16 12:21:21 +00:00
oehhar
954457baf9
tip-636-tcl9-644: doc/Object.3: remove double "the"
2023-06-16 10:49:41 +00:00
griffin
f1b8cb6289
Add Tcl_ObjType changes to the appropriate docs.
2023-06-15 20:45:55 +00:00
neumann
414a984d04
Made variant using USE_POSIX_SPAWN error message compatible
...
This change makes Tcl compiled with USE_POSIX_SPAWN activated error
message compatible with previous versions (using fork). Now, the Tcl
regression test succeeds without errors.
2023-06-15 16:56:35 +00:00
griffin
2e79331ac0
merge trunk
2023-06-13 16:59:57 +00:00
griffin
7d37ba8e63
Remove getdbl abstraction.
2023-06-13 16:47:25 +00:00
jan.nijtmans
478601a07b
Merge 8.7
2023-06-13 09:12:25 +00:00
jan.nijtmans
3c8ac03074
Specify implicit "-profile tcl8" in encoding-24.4 testcase
2023-06-13 06:05:02 +00:00
pooryorick
d07e50e54a
Revert unwarranted change in Tcl_CreateChannel() from [1776327edd].
2023-06-12 04:10:52 +00:00
apnadkarni
9cf727affb
Tests for invalidly encoded file names and env (TIP 671 motivation)
2023-06-11 02:34:35 +00:00
jan.nijtmans
7ab30f565b
Merge 8.6
2023-06-08 12:39:44 +00:00
oehhar
4314e8e438
ticket [c54e4a1aeb] patch: Use vfork instead fork.
2023-06-08 12:01:40 +00:00
jan.nijtmans
96c8069270
(cherry-pick): Added note about how some commands are mainly for Tk
2023-06-08 11:59:30 +00:00
griffin
dde4e1b094
merge trunk
2023-06-06 20:26:59 +00:00
griffin
ac52dca2ba
Clean up logic to detect failures.
2023-06-06 16:04:41 +00:00
dkf
a9377a35b7
Added note about how some commands are mainly for Tk
2023-06-05 11:12:08 +00:00
pointsman
5140d2419c
Merge 8.7
2023-06-04 22:58:07 +00:00
pointsman
d716e3bd57
Merge 8.6
2023-06-04 22:56:45 +00:00
pointsman
02f302c8cf
Fixed a new test added by [72f78b60851]. The test as it was repeated just the previous one. Now it shows what was fixed. Removed development comment.
2023-06-04 22:54:59 +00:00
jan.nijtmans
9ef860c58c
Merge 8.7
2023-06-03 20:03:28 +00:00
jan.nijtmans
702bb9ab89
Merge 8.6
2023-06-03 19:59:48 +00:00
jan.nijtmans
a7e21b7c56
Fix [af3ebc5fafe0097c]: clock scan and clock add bugs in error cases / with abbreviated options
2023-06-03 19:51:21 +00:00
jan.nijtmans
6b77d746e1
Merge 8.7
2023-06-02 22:12:10 +00:00
jan.nijtmans
7e152743be
In TclAttemptInitStringRep(): Don't do a memcpy if attemptckalloc() fails
2023-06-02 22:05:03 +00:00
dkf
0513ad381a
More library(n) docs
2023-06-02 15:12:26 +00:00
jan.nijtmans
b37dff78c1
Merge 8.7
2023-06-02 14:02:19 +00:00
jan.nijtmans
103eb015c0
Merge 8.7
2023-06-02 13:59:26 +00:00
dgp
73519e9804
silence compiler warning
2023-06-02 13:46:50 +00:00
jan.nijtmans
2867ac2637
New (internal) macro TclAttemptInitStringRep()
2023-06-02 12:00:02 +00:00
jan.nijtmans
3d0413417d
Merge 8.7
2023-06-01 21:04:48 +00:00
jan.nijtmans
56d50aec7c
Fix [9921778646]: something is wrong in core-8-branch
2023-06-01 20:58:00 +00:00
dkf
b1ee2de573
Added some examples to library(n)
2023-06-01 14:37:44 +00:00
jan.nijtmans
5d5b5a4242
merge-mark
2023-05-31 14:13:19 +00:00
jan.nijtmans
c8ff4cae81
Use TclDuplicatePureObj() in stead of TclListObjCopy() where appropriate. Backported from 9.0
2023-05-31 14:12:12 +00:00
jan.nijtmans
6104a20928
Merge 8.7
2023-05-31 07:49:17 +00:00
jan.nijtmans
b87d0095dc
Document hoe Tcl_ReadChars() behaves in "-profile strict" mode when an encoding error happens.
2023-05-31 07:45:52 +00:00
jan.nijtmans
4632c037e3
Merge 8.7
2023-05-31 07:20:18 +00:00
jan.nijtmans
28c9edc49b
Fix [c243e7a85e]: TIP #603 implementation broken on Windows
2023-05-31 07:16:04 +00:00
jan.nijtmans
614c8b3360
Let's see if this helps
2023-05-30 21:31:11 +00:00
dkf
a4f289d5b5
More typo fixes
2023-05-30 13:57:09 +00:00
jan.nijtmans
75bdb75689
Merge 8.7
2023-05-30 12:22:20 +00:00
jan.nijtmans
13f6f72bb7
Backport IO-related changes from Tcl 9.0. Needed for preparation of TIP #653
2023-05-30 11:25:13 +00:00
jan.nijtmans
af838a5d52
Merge 8.7
2023-05-29 19:41:08 +00:00
jan.nijtmans
8091425c93
int -> Tcl_Size, for full Tcl 9 support
2023-05-29 16:27:28 +00:00
dkf
4c03aeaadd
Fix typo and outdated comment
2023-05-29 10:49:45 +00:00
fvogel
69ae2a0f03
merge 8.7
2023-05-28 10:39:40 +00:00
fvogel
7988b3f1b6
Fix errors when building the html man page for configurable.n (TIP #558 )
2023-05-28 10:38:13 +00:00
fvogel
827a1d3802
Fix errors when building the html man page for configurable.n
2023-05-28 10:37:31 +00:00
griffin
d4e8db78c9
Function name cleanup.
2023-05-26 17:15:12 +00:00
griffin
22306f855b
merge trunk, fix leak.
2023-05-25 20:55:52 +00:00
jan.nijtmans
0657f97bc5
Eliminate some clang warnings. Only use "testbigdata" if sizeof(Tcl_Size) == sizeof(Tcl_WideInt)
2023-05-25 15:10:55 +00:00
griffin
09bc3f7033
Remove old cruft.
2023-05-25 04:38:32 +00:00
griffin
ba261e8e87
merge trunk
2023-05-24 23:17:17 +00:00
griffin
c3f8318a3f
Cleanup abstract list definitions.
2023-05-24 20:13:20 +00:00
dkf
6598d2eeae
TIP 603: Get 'stat' Information of Open Files
2023-05-24 16:04:46 +00:00
dkf
29225e440c
merge core-8-branch
2023-05-24 16:02:24 +00:00
jan.nijtmans
231fd112f9
Merge 8.7
2023-05-24 15:29:11 +00:00
jan.nijtmans
70a3d08fc4
Fix regular expression in previous commit
2023-05-24 15:22:00 +00:00
jan.nijtmans
c7771a763e
Enhance html generation, so it can handle the "©" copy-sign as well
2023-05-24 15:18:05 +00:00
jan.nijtmans
6c1bdd15d6
More size protection for winDde
2023-05-24 15:16:14 +00:00
jan.nijtmans
9a6a7030e8
Remove TCL_SIZE_SMAX, not used anywhere. Some more variable which should have been Tcl_Size
2023-05-24 10:31:56 +00:00
griffin
e91f967003
Merge trunk
2023-05-23 21:36:46 +00:00
jan.nijtmans
633171eda9
Merge 8.7
2023-05-23 16:15:10 +00:00
jan.nijtmans
2acd355f8d
Give Tcl_CreateThread a TCL_HASH_TYPE (unsigned) stackSize parameter
2023-05-23 16:03:29 +00:00
pointsman
73ff912a1f
Proposed fix for [af3ebc5fafe0].
2023-05-22 12:17:44 +00:00
jan.nijtmans
b9722ec356
Merge 8.7
2023-05-22 10:13:42 +00:00
dkf
f3f254e8ba
Small documentation corrections
2023-05-22 07:48:43 +00:00
jan.nijtmans
f1e62884ba
Merge 8.7
2023-05-21 23:00:20 +00:00
jan.nijtmans
e18d096bd7
Unbreak windows symbols build. More int -> Tcl_Size backported from 9.0
2023-05-21 21:19:22 +00:00
griffin
54a1d7e517
Fix test to be stable.
2023-05-21 20:42:14 +00:00
griffin
c6cce703b5
Add cleanup to lseq tests. Fix assertion.
2023-05-20 23:24:54 +00:00
apnadkarni
f19e2665d3
Fix [c9663296fd]. Also refactor memory reallocation.
2023-05-20 16:39:50 +00:00
apnadkarni
96d441c29a
Minor refactor to combine alloc/realloc
2023-05-20 15:40:17 +00:00
jan.nijtmans
72dfeb60e2
merge-mark
2023-05-20 10:34:14 +00:00
jan.nijtmans
b27acbe84f
More int/Tcl_Size backport
2023-05-20 10:07:19 +00:00
apnadkarni
1b8701ee3d
Merge trunk
2023-05-19 23:07:13 +00:00
apnadkarni
83d22bd1f6
Fix int/Tcl_Size pointer errors
2023-05-19 22:18:51 +00:00
apnadkarni
861c6c226a
Fix build - ckalloc/ckfree not in Tcl 9
2023-05-19 21:31:18 +00:00
jan.nijtmans
b0bd6fc251
Merge 8.7
2023-05-19 19:50:31 +00:00
jan.nijtmans
6643ceb141
int -> Tcl_Size and other (internal) signature improvements. Most of them backported from 9.0
2023-05-19 19:47:18 +00:00
apnadkarni
16a75f3cbf
More refactoring into common code
2023-05-19 16:47:58 +00:00
dkf
ed8816500e
Improve the synopsis of the transchan manpage so it helps users a bit
2023-05-19 14:15:18 +00:00
dkf
5ef48eba53
Improve the synopsis of the refchan manpage so it helps users a bit
2023-05-19 13:35:19 +00:00
dkf
ee48919fcc
Merge 8.7
2023-05-19 12:56:28 +00:00
dkf
d6a3425ec6
TIP 558: Basic Configure Support for TclOO
2023-05-19 12:06:05 +00:00
dkf
b0f19e41f2
merge core-8-branch
2023-05-19 12:02:49 +00:00
griffin
fa313109d6
Merge trunk
2023-05-17 16:12:25 +00:00
pooryorick
00dd4a5b56
Improve TclDuplicatePureObj(), remove unnecessary increment/decrement pairs, and add more error checking.
2023-05-17 12:44:46 +00:00
pooryorick
ac555b905c
New functions: TclUndoRefCount() and TclDictGetSize().
2023-05-17 12:26:11 +00:00
pooryorick
5990382222
Fix for [5ee01098824881b5], lseq list conversion results in attempt to access
...
freed memory.
2023-05-17 12:09:27 +00:00
jan.nijtmans
c7e670b85f
Merge 8.7
2023-05-17 07:33:33 +00:00
jan.nijtmans
86e88cf233
Remove dead code
2023-05-17 07:30:54 +00:00
griffin
6781fbdf4b
Add Tcl_BumpObj() used to prevent leaks from Abstract List elements.
...
Add Abstract List (ArithSeries) support in Tcl_ListObjIndex().
Fix obj leaks in lsearch operatations on ArithSeries.
Fix obj leaks in concat operations on ArithSeries.
Add concat and lsearch tests using lseq lists.
2023-05-17 05:09:01 +00:00
jan.nijtmans
e47cbdc798
Merge 8.6
2023-05-16 16:31:53 +00:00
jan.nijtmans
a5297cf7c3
Some more nmakehlp.c tweaks
2023-05-16 16:30:07 +00:00
jan.nijtmans
32ffe00c48
Merge 8.6
2023-05-16 10:26:48 +00:00
jan.nijtmans
8f8a3bc1c0
Only use _snprintf on older MSVC compilers. ZeroMemory -> memset
2023-05-16 10:19:41 +00:00
pooryorick
a038d4aad3
Fix memory leaks and remove unnecessary reference count bounce.
2023-05-16 09:33:12 +00:00
jan.nijtmans
17c92b0a7a
Merge 8.7
2023-05-16 06:25:19 +00:00
jan.nijtmans
4eb91b8e5b
Remove some more references to removed ChangeLog
2023-05-16 06:07:51 +00:00
jan.nijtmans
ebcc04616c
More int -> Tcl_Size (in tclInt.h)
2023-05-16 06:05:22 +00:00
pooryorick
50dde26caf
New function, TclDuplicatePureObj(), doesn't duplicate the string
...
representation when duplicating an object, unless necessary. Remove
TclListObjCopy() in favor of TclDuplicatePureObj(), allowing internal
representation to change after the copy rather than before.
2023-05-16 05:25:31 +00:00
apnadkarni
6fa73194d5
Refactor couple more reallocations
2023-05-15 23:08:17 +00:00
pooryorick
49c4458a25
Add Tcl_DecrRefCount() missing from [4b1a20629e].
2023-05-15 20:49:43 +00:00
apnadkarni
02563b1911
Refactor allocation in Tcl_DStringAppendElement
2023-05-15 20:23:05 +00:00
dgp
54e89ec231
merge 8.7
2023-05-15 17:37:21 +00:00
dgp
8074bcec5e
TIP 663 implementation
2023-05-15 17:17:43 +00:00
jan.nijtmans
4db805463e
Backport test improvements from 9.0
2023-05-15 15:45:57 +00:00
jan.nijtmans
45dd8baf76
No need to init string rep, if we throw away the object immediately
2023-05-15 15:44:34 +00:00
jan.nijtmans
f6f92fd671
Merge 8.7
2023-05-15 11:52:39 +00:00
jan.nijtmans
f2f41b4b85
Merge 8.6
2023-05-15 11:45:42 +00:00
jan.nijtmans
db43c8cbed
One more ckalloc -> attemptckalloc (in compat/waitpid.c), since we can handle the error.
2023-05-15 11:43:15 +00:00
jan.nijtmans
062f4d0529
ckalloc -> attemptckalloc (since return-value is checked). Fix bug in unix/dltest/pkgooa.c, where last NULL-argument was missing
2023-05-15 11:15:28 +00:00
pooryorick
48d6b3d84c
Rename TclRelaxRefCount() to TclUndoRefCount().
2023-05-14 08:21:50 +00:00
pooryorick
aafa141509
Add TclRelaxRefCount, and also try to take the fast path more often in byte-compiled [lindex].
2023-05-13 10:59:32 +00:00
pooryorick
d6ed36f134
In tclExecute.c call DECACHE_STACK_INFO() before calling TclLindexList().
2023-05-12 23:20:26 +00:00
jan.nijtmans
14d2bc5415
Merge 8.7
2023-05-12 08:57:00 +00:00
jan.nijtmans
36cebb89fe
Use 'attempt'-functions for libtommath, when built into Tcl
2023-05-11 22:20:17 +00:00
pooryorick
4fa1fa29ae
Fix failing valgrind suppression for load.test
2023-05-11 17:17:18 +00:00
pooryorick
6fbc88e2a0
Silence valgrind "still reachable" report in cmdAH.test
2023-05-11 17:07:39 +00:00
jan.nijtmans
87ff0e4ee2
put back pragma voor MSVC warning, accidently removed in previous commit
2023-05-11 15:39:30 +00:00
jan.nijtmans
847fdd28f7
Restore warning-free compilation with C++ compiler
2023-05-11 15:30:18 +00:00
pooryorick
01e71bb26c
Fix Valgind report of still reachable blocks in aaa_exit.test and other test
...
files.
2023-05-11 13:08:59 +00:00
jan.nijtmans
ce00b07d6b
disable on-purpose compiler warning (MSVC) for testcase
2023-05-11 06:31:49 +00:00
apnadkarni
363a6cc4cd
Refactor allocation strategy in Tcl_DStringAppend
2023-05-10 21:32:16 +00:00
jan.nijtmans
180af1f9a5
Merge 8.7
2023-05-10 20:53:49 +00:00
jan.nijtmans
c03808607b
Backport various changes from 9.0 branch
2023-05-10 19:39:20 +00:00
dgp
6c604517d7
TIP 663 implementation
2023-05-10 18:28:30 +00:00
apnadkarni
6802927d5c
Merge trunk
2023-05-10 17:25:47 +00:00
jan.nijtmans
c0c0164a71
Merge 8.6
2023-05-10 12:28:06 +00:00
jan.nijtmans
284a501487
Backport: docs: function does not "return an error", it returns TCL_ERROR, indicating an error occured
2023-05-10 12:09:07 +00:00
bch
909827f9ee
docs: function does not "return an error", it returns TCL_ERROR, indicating an error occured
2023-05-09 22:36:38 +00:00
jan.nijtmans
293c1ff559
Left-over TCL_ENCODING_STRICT, not used any more.
...
Add "-profile tcl8" for testcases which don't work in strict profile
2023-05-09 16:11:58 +00:00
griffin
7b647d920a
merge trunk
2023-05-09 15:58:53 +00:00
jan.nijtmans
e95d2eea7f
Merge 8.7
2023-05-09 13:16:25 +00:00
jan.nijtmans
2e02e1affd
Remove useless type-casts. Backport some changes from 9.0
2023-05-09 13:06:02 +00:00
jan.nijtmans
77b454d1b2
size_t -> Tcl_Size (twice)
2023-05-09 09:51:47 +00:00
jan.nijtmans
8f15f09491
Fix [96551aca55]: Avoid pointer arithmetic with NULL in FOREACH_STRUCT(). Some typo's
2023-05-08 14:19:04 +00:00
pooryorick
8d076e6525
Make TclLindexFlat() a litle more straightforward.
2023-05-08 14:08:44 +00:00
jan.nijtmans
133b43a521
Better version, keeping the (undocumented) behavior of 'i' initialization
2023-05-08 13:43:56 +00:00
pooryorick
af5bfc68cc
Use Tcl_Size instead of size_t in two places in TclIndexEncode.
2023-05-08 11:35:45 +00:00
jan.nijtmans
0d8a08dbf1
Proposed fix for [96551aca55]: Avoid pointer arithmetic with NULL in FOREACH_STRUCT()
2023-05-08 09:35:57 +00:00
jan.nijtmans
1a4e52416f
Merge 8.7. Restore Tcl_DStringSetLength() behavior, as suggested in [3837178c25]
2023-05-07 20:34:18 +00:00
jan.nijtmans
4dcdd51adb
Merge 8.7
2023-05-07 20:10:58 +00:00
jan.nijtmans
73dbbaaa23
New testcase, contributed by @chrstphrchvz. Many thanks! See [3837178c25]
2023-05-07 20:06:50 +00:00
jan.nijtmans
d162c9a16d
Merge 8.7
2023-05-05 21:22:29 +00:00
jan.nijtmans
ce9f04ddd1
Merge 8.6
2023-05-05 21:16:27 +00:00
jan.nijtmans
8f269fcad1
Update .github files
2023-05-05 21:07:47 +00:00
jan.nijtmans
67b780c161
Remove .github and .travis-related stuff: No need to build this branch any more
2023-05-05 20:55:31 +00:00
pooryorick
f4cd60dbb4
A few corrections in comments.
2023-05-05 14:57:38 +00:00
apnadkarni
d0ba759e2c
Merge trunk
2023-05-05 12:36:45 +00:00
apnadkarni
3f84674ae3
Merge 8.7 - list performance tests
2023-05-05 12:35:21 +00:00
apnadkarni
4e92d998eb
Minor fixes for perf tests
2023-05-05 12:34:18 +00:00
pooryorick
3e05a7babe
Remove TclArithSeriesObjCopy() and use Tcl_DuplicateObj() instead.
2023-05-05 09:40:38 +00:00
apnadkarni
5940356ced
Change reallocation growth to 1.5.
2023-05-05 09:17:17 +00:00
pooryorick
cc71607cb8
Make some tests select an encoding profile instead of relying on the default.
2023-05-04 20:26:19 +00:00
dgp
405a099384
merge 8.7
2023-05-04 18:22:37 +00:00
dgp
1ea2b16a8d
merge 8.6
2023-05-04 18:21:49 +00:00
dgp
f976a32c62
Remove mention of Tcl_GlobalEval() from comment.
2023-05-04 18:21:01 +00:00
apnadkarni
92dd14e77c
Refactor reallocation in preparation for experimentation with different growth factors
2023-05-04 17:52:06 +00:00
jan.nijtmans
3f2bb8a029
Merge 8.7
2023-05-04 13:06:15 +00:00
jan.nijtmans
e51f7da2ee
Backport: Do not build every branch. Too expensive.
2023-05-04 12:58:41 +00:00
jan.nijtmans
af320fb41e
Fix [9c397da4a9]: AppendPrintfToObjVA(): support 64-bit pointers
2023-05-04 12:53:45 +00:00
dkf
e2f55284cf
Do not build every branch. Too expensive.
2023-05-04 08:24:01 +00:00
apnadkarni
8a45e47c4c
Merge trunk
2023-05-04 05:12:11 +00:00
apnadkarni
4dd7110019
Better fallback on list reallocation failure
2023-05-04 04:48:31 +00:00
jan.nijtmans
881b147ab5
Merge 8.7
2023-05-03 15:59:09 +00:00
jan.nijtmans
b583ea7360
Backport "Comments only. Fix blatantly obsolete ones". And a few more improvements from the same files.
2023-05-03 15:51:10 +00:00
pointsman
d40bb9d13a
Removed the bug specific test constraint from the tests related to [0306a5563c] because the bug is fixed.
2023-05-03 15:18:17 +00:00
apnadkarni
688c125ec3
Fix bug-c9663296fd (in progress)
2023-05-03 13:18:05 +00:00
apnadkarni
06cc962945
Comments only. Fix blatantly obsolete ones
2023-05-03 10:01:50 +00:00
pooryorick
88760a8a81
Use Tcl_Size instead of ptrdiff_t in Tcl_ObjCmdProc2(), Tcl_CmdObjTraceProc2, and Tcl_MethodCallProc2().
2023-05-03 09:31:08 +00:00
apnadkarni
aa4247d47b
Merge mark 8.7
2023-05-03 04:06:28 +00:00
apnadkarni
81b4fa2fbd
Changed CHANNEL_PROFILE_* to ENCODING_PROFILE_* and moved out of tclIO.h. See below.
...
For whatever reason, these macros were renamed and moved to tclIO.h post-660. This is
inappropriate as those macros deal with *encoding* flags, not *channel* flags and have
relevance outside of I/O making their renaming inappropriate. Further putting them in tclIO.h
forces inclusion of that header in modules that do not otherwise need that header.
2023-05-03 04:03:36 +00:00
apnadkarni
7b688527d7
Changed CHANNEL_PROFILE_* to ENCODING_PROFILE_* and moved out of tclIO.h. See below.
...
For whatever reason, these macros were renamed and moved to tclIO.h post-660.
This is inappropriate as those macros deal with *encoding* flags, not *channel*
flags and have relevance outside of I/O making their renaming inappropriate. Further
putting them in tclIO.h forces inclusion of that header in modules that do not
otherwise need that header.
2023-05-03 03:31:49 +00:00
griffin
9aac3677ed
merge trunk
2023-05-03 02:01:11 +00:00
pointsman
41aa17e389
Fix for [0306a5563c].
2023-05-02 22:11:28 +00:00
pointsman
84d939b69a
Fix for [0306a5563c].
2023-05-02 21:50:48 +00:00
apnadkarni
60ba166da0
Merge 8.7 fix [784befb0ba] - tailcall crash
2023-05-02 17:06:38 +00:00
apnadkarni
2dccd2a567
Merge 8.6 - [ab123cfd3d] and [784befb0ba]
2023-05-02 16:48:57 +00:00
apnadkarni
df75b91956
Fix [ab123cfd3d] - scan ubsan. Tx chrstphrchvz for patch
2023-05-02 16:33:39 +00:00
apnadkarni
43b5729ddf
Fix [784befb0ba] - tailcall crash
2023-05-02 16:08:30 +00:00
apnadkarni
1f5d09b497
Fix LISTREP_ASSERT
2023-05-02 11:50:03 +00:00
apnadkarni
eb23b011d0
Merge trunk
2023-05-02 11:28:55 +00:00
apnadkarni
03d0f99e6c
Fix [bb69c8d17e] compiled string last
2023-05-02 08:42:21 +00:00
apnadkarni
694c4505cd
Change realloc strategy on fail, optimize for empty string
2023-05-02 05:38:04 +00:00
jan.nijtmans
28e5ec7db6
Add missing "deprecated" constraint
2023-05-01 15:50:02 +00:00
dkf
fea912c676
Remove IDE guff
2023-05-01 15:08:08 +00:00
dkf
7555420166
Add doc comments, fix a typo in a manpage
2023-05-01 14:07:59 +00:00
dkf
10c71dc8b9
Use modern copyright symbol, in line with rest of code
2023-05-01 13:31:30 +00:00
dkf
530e4b3bb9
Merge 8.7
2023-05-01 13:22:24 +00:00
apnadkarni
b6bc736eee
Tests for [dcac54a685]
2023-05-01 12:39:43 +00:00
apnadkarni
fe84f70800
Tests for [ad9361fd20]
2023-05-01 12:16:44 +00:00
apnadkarni
c77055a803
Fix [d07f42998d] - argument list truncation
2023-05-01 11:41:48 +00:00
apnadkarni
3b426fffa1
Fix [ab123cfd3d] - ubsan warning in ValidateFormat
2023-05-01 10:38:12 +00:00
apnadkarni
782009ca67
Fix [ab123cfd3d] - ubsan scan warning.
2023-05-01 06:51:51 +00:00
apnadkarni
e1f2905dbc
Added missing bigdata constraint
2023-05-01 06:41:25 +00:00
griffin
ca58c3ae9a
Partial sync-up with trunk.
2023-04-30 23:09:13 +00:00
jan.nijtmans
dd6950d635
Merge 8.7
2023-04-30 19:21:50 +00:00
jan.nijtmans
c3cb435cf4
Fix OPTS=utf16 build for Tcl 9.0
2023-04-30 19:03:12 +00:00
jan.nijtmans
6c4b78cfa8
Eliminate ListSizeT_MAX, since it's the same as TCL_SIZE_MAX
2023-04-30 17:32:25 +00:00
jan.nijtmans
75eea66ef7
Add testcase for TclGetBytesFromObj()
2023-04-30 12:32:20 +00:00
jan.nijtmans
251211e714
Don't test compatibility macro's when TCL_NO_DEPRECATED is defined: this is expected to fail
2023-04-30 12:02:38 +00:00
apnadkarni
e313582726
Fix [27b3ce2997] - check INT_MAX limit on script length
2023-04-30 10:20:19 +00:00
apnadkarni
a06189323f
Fix one more error message for max arg limit
2023-04-30 09:54:16 +00:00
apnadkarni
93f06f4469
Working on [d07f42998d]
2023-04-30 08:08:24 +00:00
apnadkarni
6c973cf9a2
Add tests. Panic on bytecode length limit
2023-04-29 16:16:58 +00:00
jan.nijtmans
e393e2694c
Add experimental testcase for TclGetBytesFromObj()
2023-04-29 16:10:56 +00:00
jan.nijtmans
1645895629
Eliminate ListSizeT_MAX, since it's the same as TCL_SIZE_MAX
2023-04-29 15:20:12 +00:00
jan.nijtmans
ef51b5aacd
Resolve a TODO
2023-04-29 14:56:13 +00:00
jan.nijtmans
905633199c
Merge 8.7
2023-04-29 14:50:50 +00:00
pointsman
4d289b8084
Updated from trunk. Simplified bug specific tests.
2023-04-29 14:11:36 +00:00
apnadkarni
85a2a91729
Fix [7cddd2845c] - crash with >= INT_MAX operands
2023-04-29 03:15:11 +00:00
apnadkarni
947e3f8405
Limit scripts to INT_MAX-1 bytes
2023-04-29 02:11:48 +00:00
jan.nijtmans
ad7deae634
Remove some (void *) typecasts, which are no longer necessary
2023-04-28 15:02:09 +00:00
pooryorick
a6d654980e
Limit memset() to "TCL_UTF_MAX=3' builds.
2023-04-28 06:43:49 +00:00
pooryorick
2fae9f1746
Add bytearray checking to TclCheckEmptyString(), and then use
...
TclCheckEmptyString() in Tcl_AppendObjToObj and TclStringCat() to reduce string
generation.
2023-04-27 20:54:21 +00:00
pooryorick
5eb2064b63
Fix for [f5eadcbf9a6b1b4c], passing pointer to uninitialized memory leads
...
Tcl_UniCharToUtf() to corrupt data.
2023-04-27 20:42:04 +00:00
pooryorick
7f433932f6
memset(0xff) instead of memset(0) to accomodate tests that fill buffer with
...
0xff.
2023-04-27 20:34:22 +00:00
jan.nijtmans
2e9301202d
More size_t -> Tcl_Size, missed by earlier updates
2023-04-27 14:01:37 +00:00
jan.nijtmans
8bfaaa8337
Simplify Tcl 9 compatibility macro's. No change in functionality.
2023-04-27 13:52:42 +00:00
apnadkarni
175931c905
Merge trunk
2023-04-27 13:34:55 +00:00
apnadkarni
18f61eeeeb
More checks for exceeding max words
2023-04-27 12:47:08 +00:00
jan.nijtmans
54b8f46097
RingSizeT -> Tcl_Size
2023-04-26 20:24:01 +00:00
jan.nijtmans
372bf74334
Reduce number of needed type-casts. No change in functionality
2023-04-26 19:29:44 +00:00
griffin
f9f1724b36
Fix index descrepencies (bug-fa00fbbbabe).
...
Fix inconsistent rounding (bug-e5f06285de).
2023-04-26 16:18:04 +00:00
jan.nijtmans
cd51753d86
More size_t -> Tcl_Size changes, which were missed before. Also (experimental) make the wrapper macro's produce compiler warnings is Tcl_Size is not used.
2023-04-26 15:53:40 +00:00
apnadkarni
f227a5d1ff
Test fix for [0f98bce669]
2023-04-26 15:45:12 +00:00
apnadkarni
5ddcd8fea9
Fix for [7cddd2845c] (in progress)
2023-04-26 14:56:21 +00:00
jan.nijtmans
fe4e51b427
Merge 8.7
2023-04-26 06:51:52 +00:00
jan.nijtmans
bd259695f1
Merge 8.6
2023-04-26 06:49:22 +00:00
jan.nijtmans
e5eeaadf3c
Don't refer to CVS any more
2023-04-26 06:40:14 +00:00
griffin
3aaf8c0544
merge trunk, address some 32-bit issues.
2023-04-26 03:41:57 +00:00
pooryorick
76130df460
Fix for issue [f5eadcbf9a], passing pointer to uninitialized memory leads
...
Tcl_UniCharToUtf() to corrupt data.
2023-04-25 20:34:03 +00:00
griffin
da6df4adde
Add fix inconsistent rounding (bug-e5f06285de).
...
Compute and use the "precision" for sequences of doubles: determine the number of significant digits in the fractional part of the given arguments, and round the results to that limit.
Fix copy bug in DupArithSeriesInternalRep.
2023-04-25 00:36:30 +00:00
pointsman
1ddccee9d3
Added a test for the initial problem and another for the known remaining problem.
2023-04-24 20:21:42 +00:00
pointsman
48570b93a6
Merge trunk.
2023-04-24 20:09:40 +00:00
apnadkarni
025b74f7c7
Fix [2e3fed53ba] - binary encode uuencode
2023-04-24 17:46:14 +00:00
apnadkarni
51043c29db
Fix [c719fa8716] - binary encode base64 assertion failure
2023-04-24 17:16:58 +00:00
apnadkarni
553caf0d2c
Fix [9369f83649] - binary format/scan for big data
2023-04-24 16:49:34 +00:00
apnadkarni
87e417c1a1
Fix [a814ee5bbd] - string compare/equal -length for long strings
2023-04-24 16:28:21 +00:00
dgp
e95eb57666
Adapt signature of TclCompileScript() to fit better after TIP 660.
2023-04-24 15:51:00 +00:00
apnadkarni
3a9a817f67
Fix [d4ede611a7] - scan bigdata
2023-04-24 14:51:20 +00:00
dgp
277effbc04
TIP 422 eliminated va_list arguments from the API of Tcl 9.
...
However, some of the documentation lingered on. No more.
2023-04-24 14:22:07 +00:00
apnadkarni
9f102b5b85
Minor change to length limit checks
2023-04-24 13:54:33 +00:00
apnadkarni
642792b1c2
Fix [a550f9710b] (format bigdata)
2023-04-24 12:55:35 +00:00
apnadkarni
ef5af05366
Fix for bug [d4ede611a7] (scan)
2023-04-24 10:02:23 +00:00
pointsman
439a4360b3
Fixes the examples given in [0306a5563c]. Still more to do for a full fix.
2023-04-24 09:41:04 +00:00
pooryorick
321bff2cd5
Add bytearray checking to TclCheckEmptyString(), and then use
...
TclCheckEmptyString() in Tcl_AppendObjToObj and TclStringCat() to reduce string
generation.
2023-04-23 23:57:17 +00:00
jan.nijtmans
d252076f75
Missing !defined(TCL_NO_DEPRECATED) around TIP #616 macro's. Thanks Rolf for noticing!
2023-04-23 21:59:34 +00:00
pooryorick
eb3390224b
Add bytearray checking to TclCheckEmptyString(), and then use
...
TclCheckEmptyString() in Tcl_AppendObjToObj and TclStringCat() to reduce string
generation.
jn: See discussion on mailing list "On the changing the sourcing of scripts to using strict profiles by default" for explanation why this commit is wrong, just as [e6fe76ae6b] and [4a7b807856] (which are similar commits, disguised as different ones).
2023-04-23 11:28:19 +00:00
jan.nijtmans
adab48a862
Support combination TCL_UTF_MAX=3 with TCL_NO_DEPRECATED=1
2023-04-23 10:41:40 +00:00
jan.nijtmans
11048e958a
Remove TCL_8_COMPAT. No longer necessesary, because of TIP #660
2023-04-23 10:31:18 +00:00
jan.nijtmans
f87dbfe42e
Backout [3016169b6f], since TIP #657 (Make "-profile strict" the default in Tcl 9.0) is not accepted yet. And when it's accepted, this change won't be necessary any more.
2023-04-23 08:56:48 +00:00
jan.nijtmans
dd36d764b7
Backout [e6fe76ae6b]. See build failure with -DTCL_UTF_MAX=3 [ https://github.com/tcltk/tcl/actions/runs/4777092335/jobs/8492557766 ]
2023-04-23 08:53:23 +00:00
apnadkarni
2b41b2d12b
Fix gcc type mismatch warnings exposed by disabling casts using disabletcl8api
2023-04-23 08:13:11 +00:00
apnadkarni
6f566fc406
Merge trunk
2023-04-23 07:24:49 +00:00
apnadkarni
9cd23041f3
Merge 8.7 - [d90fee06d0] (lassign) and [203792a48c] (Utf32ToUtf)
2023-04-23 05:23:01 +00:00
apnadkarni
00afea1c26
Bug [d90fee06d0] - lassign performance
2023-04-23 04:18:20 +00:00
apnadkarni
f5125db22b
Bug [d4ede611a7] (scan) - in progress
2023-04-23 03:25:33 +00:00
pooryorick
08d2d4c09b
Make Tcl_AppendObjToObj avoid string generation in a couple more circumstances,
...
and edit some documentation and comments.
2023-04-22 22:49:50 +00:00
jan.nijtmans
f14ee8d1bb
Fix [203792a48c]: Avoid signed integer overflow in Utf32ToUtfProc()
2023-04-22 17:55:36 +00:00
jan.nijtmans
d425f04462
Merge 8.7
2023-04-22 17:34:11 +00:00
jan.nijtmans
c90b84b116
Fill in URL in previous commit
2023-04-22 17:32:52 +00:00
jan.nijtmans
8da10bea0f
Register "utf32string" for Python
2023-04-22 17:31:50 +00:00
jan.nijtmans
9ec33349d5
Fix tclTomMath.h (from prev commit)
2023-04-22 17:29:49 +00:00
jan.nijtmans
556c3fc35b
Fix [2a5cb49733ff]: Make TCL_NO_TOMMATH_H sufficient for tclTomMathDecls.h
2023-04-22 16:34:56 +00:00
jan.nijtmans
39180cad0e
Backout [4a7b807856], It breaks the build. See: [ https://github.com/tcltk/tcl/actions/runs/4771586851/jobs/8483606969 ]
2023-04-22 16:29:07 +00:00
apnadkarni
4402cae446
Use TclListObjRange in lassign for performance reasons
2023-04-22 10:04:53 +00:00
jan.nijtmans
79af33ce68
Merge 8.7
2023-04-21 20:39:19 +00:00
pooryorick
a3380d8151
Make Tcl_AppendObjToObj more efficient and avoid unnecessarily generating a
...
string representation when the object to append to is the empty string.
2023-04-21 20:32:38 +00:00
jan.nijtmans
b58023ffa1
Since Tcl_GetSizeIntFromObj is the same as Tcl_GetIntFromObj (in 8.7), it's not worth to spend a stub entry for it
2023-04-21 20:32:26 +00:00
jan.nijtmans
e3e6c33969
Add testcases
2023-04-21 20:26:08 +00:00
jan.nijtmans
1fe7d754ed
Reduce diff between 8.7 and 9.0. Add some testcases
2023-04-21 20:18:54 +00:00
apnadkarni
d39298874a
Fix gcc warning about format specifier in error message
2023-04-21 10:07:08 +00:00
pooryorick
b794cb03e1
Set the encoding profile to strict in Tcl_FSEvalFileEx().
2023-04-21 09:19:51 +00:00
apnadkarni
c7f27e3c87
Fix warnings generated on disable8api builds
2023-04-21 06:16:53 +00:00
apnadkarni
e86259d193
Create new branch named "apn-disabletcl8api-warnings"
2023-04-21 04:56:16 +00:00
griffin
6ca1315df1
merge trunk
2023-04-21 00:35:20 +00:00
griffin
b807564e68
sync with trunk. Fix lseq size bugs.
2023-04-20 18:13:36 +00:00
apnadkarni
c091b78af6
Bugs [4ce858a049] (lrepeat), [f4d15772f1] (foreach), [6926a21840] (lmap).
2023-04-20 16:44:49 +00:00
dgp
e359627a36
TIP 660 changes to stop warnings in --enable-symbols=mem build.
2023-04-19 19:36:40 +00:00
apnadkarni
f22a5b57f7
Fix [a4617c8e90] - lsearch index truncation
2023-04-19 15:49:13 +00:00
apnadkarni
883924f1e8
Minor doc corrections
2023-04-19 14:33:40 +00:00
apnadkarni
11b8f6eb00
Fix [3c04fcdd1a] - join truncates large lists
2023-04-19 13:21:56 +00:00
apnadkarni
f6830a72ec
Merge apn-bigdata-tests
2023-04-19 09:49:01 +00:00
apnadkarni
ae3ae231d0
Merge trunk
2023-04-19 09:18:32 +00:00
apnadkarni
d4dd40b364
Merge mark with 8.7 TIP 660 manpages
2023-04-19 05:50:25 +00:00
apnadkarni
4c6600039e
Fix a few function signatures in manpages for TIP 660.
2023-04-19 05:49:37 +00:00
apnadkarni
f3d3725e39
Merge mark with 8.7 TIP 660 changes
2023-04-19 05:21:45 +00:00
apnadkarni
21d90d4f4a
TIP 660 accepted
2023-04-19 05:18:04 +00:00
apnadkarni
2f2003c490
Merge 8.7
2023-04-19 04:45:14 +00:00
apnadkarni
b98b8f9181
Fix dltest on Unix
2023-04-19 04:20:19 +00:00
apnadkarni
aab1aa08f0
Fix missing stddef.h include
2023-04-19 04:00:00 +00:00
apnadkarni
e90011ea91
TIP 660 accepted.
2023-04-19 03:36:43 +00:00
apnadkarni
f42b2cef2a
Pick up lreplace.test and lseq.test from tip-660-with-trunk-testcases
2023-04-19 02:32:33 +00:00
apnadkarni
ddefa6b172
Merge trunk
2023-04-19 02:00:26 +00:00
pooryorick
9a3cd17eb7
In DoReadChars() reset CHANNEL_ENCODING_ERROR instead of CHANNEL_BLOCKED.
2023-04-18 22:35:58 +00:00
pooryorick
df0ddd7b9b
Fix for [25cdcb7e8fb381fb]: Incomplete utf-8 sequence followed by eofchar
...
results in failed assertion.
2023-04-18 22:00:10 +00:00
pooryorick
fdaffbc402
Eliminate unnecessary clearance of CHANNEL_STICKY_EOF flag.
2023-04-18 21:16:24 +00:00
jan.nijtmans
5cb63f12bd
Almost a merge-mark, just remove one (size_t) cast.
2023-04-18 19:43:37 +00:00
jan.nijtmans
49cfc0317e
Adapt TIP's #494/#481/#537/#544/#568/#616/#623/#627/#630 to TIP #660 changes
2023-04-18 19:42:02 +00:00
apnadkarni
d87bc3c2f0
Merge trunk
2023-04-18 16:47:40 +00:00
jan.nijtmans
b30e837f58
Merge 8.7
2023-04-18 15:46:15 +00:00
jan.nijtmans
db8e59ed80
Add TCL_T_MODIFIER (from TIP #660 ). Some header-file clean-up.
2023-04-18 15:23:33 +00:00
pooryorick
870ad938f7
Correct CHANNEL_BLOCKED to CHANNEL_ENCODING_ERROR in Tcl_GetsObj().
2023-04-18 10:47:46 +00:00
apnadkarni
c37a94290c
Fix io-75.1{4,5} on Windows. Ticket [a7a89d422a]
2023-04-18 05:18:52 +00:00
apnadkarni
60c1da90cc
Merge trunk
2023-04-18 02:55:05 +00:00
pooryorick
6f003899fe
Make encoding profile explicit in some tests.
2023-04-17 22:01:17 +00:00
jan.nijtmans
75f7e5328a
Plug memory leak caused by [46e7091a77b71ed7|this] commit
2023-04-17 20:03:38 +00:00
pooryorick
e08e6f2733
Correct some test descriptions in encoding.test.
2023-04-17 12:12:42 +00:00
pooryorick
87df69042c
Fix for [eabcbd08274f2d22], [read] error persists on channel with strict
...
encoding after encoding is changed to binary.
2023-04-16 23:10:16 +00:00
griffin
2aed8b1bdf
Fix bug-fa00fbbbabe - seq / lindex discrepancies
...
Replace macros with static inline functions.
Limit ArithSeries list size to LIST_MAX. This way, shimmering less likely to fail if it happens.
Speed up UpdateStringOfArithSeries.
Fixed issues around indexing into vary large lseq lists.
2023-04-16 18:36:18 +00:00
jan.nijtmans
0ceb73f34c
Merge 8.7
2023-04-16 18:08:08 +00:00
jan.nijtmans
61722ce13d
Remove unneeded ENCODING_UTF flags
2023-04-16 18:07:22 +00:00
jan.nijtmans
249b57ef37
some spelling corrections
2023-04-16 17:58:44 +00:00
apnadkarni
a9974c36d0
size_t -> ptrdiff_t to match Tcl 9 unsigned->signed change
2023-04-16 17:31:58 +00:00
apnadkarni
e645e12652
Update manpages for TIP 660. Also one size_t -> Tcl_Size change in public API
2023-04-16 17:05:07 +00:00
pooryorick
898f354492
Remove unneeded ENCODING_UTF flags.
2023-04-16 14:16:51 +00:00
pooryorick
4655526dd7
Fix mistake in test io-75.14 and make some spelling corrections.
2023-04-16 12:58:24 +00:00
apnadkarni
cceb3ebdde
Merge core-8-branch
2023-04-16 10:55:42 +00:00
apnadkarni
c899e77701
Merge trunk
2023-04-16 08:01:49 +00:00
apnadkarni
ad32d6ed76
Merge trunk
2023-04-16 07:55:08 +00:00
apnadkarni
713ccc8bb6
Fix VC++ unused variable warning, lappend and join.
2023-04-16 05:44:19 +00:00
jan.nijtmans
b37682866b
Fix indenting
2023-04-15 22:11:48 +00:00
jan.nijtmans
9224a1a6c2
Fix SetResult doc
2023-04-15 19:50:28 +00:00
jan.nijtmans
8248b84e17
Merge 8.7
2023-04-15 19:13:01 +00:00
jan.nijtmans
f64db5dae2
Merge 8.6
2023-04-15 19:11:35 +00:00
jan.nijtmans
52425dcf5d
Add one more unused stub entry
2023-04-15 19:09:41 +00:00
jan.nijtmans
7882365428
Backout fix for [718de2132f487cf2]: It breaks on MacOS and other systems which don't support the --strip-unneeded option
2023-04-15 19:02:44 +00:00
pooryorick
7962f209ac
Extend test io-75.15 to read invalid bytes in binary mode and then use [gets]
...
to retrieve last two lines.
2023-04-15 13:25:28 +00:00
pooryorick
afacee3f07
Fix for [a7a89d422a4f5dd3], Under strict encoding, [gets] returns an error instead of returning the second line.
...
Also, ensure that position in file does not change if [gets] return an error.
2023-04-15 11:54:27 +00:00
apnadkarni
e8326222de
Add missing constraint to string-equal/compare test
2023-04-15 02:10:23 +00:00
jan.nijtmans
b52ee10fc7
Merge 8.7
2023-04-14 21:42:54 +00:00
jan.nijtmans
f82e6059dc
int -> Tcl_Size where appropriate in tcl.decls (reducing the diff against Tcl 9.0)
2023-04-14 21:40:50 +00:00
apnadkarni
aff6cc9141
Fixed bug-a498006438
2023-04-14 15:07:27 +00:00
apnadkarni
0db2f11f15
Merge trunk
2023-04-14 15:01:18 +00:00
pooryorick
810eabe0ef
Fix for issue [718de2132f487cf2], "review use of strip on the stubs library".
2023-04-14 11:49:36 +00:00
pooryorick
3ecc8df3dc
Fix for issue [718de2132f487cf2], "review use of strip on the stubs library".
2023-04-14 11:46:27 +00:00
pooryorick
0000e98387
Fix for issue [718de2132f487cf2], "review use of strip on the stubs library".
2023-04-14 11:40:11 +00:00
pooryorick
c8259f4fec
New test for [gets] with strict encoding. Also add "\" in io-76.9, missing in
...
last commit.
2023-04-14 09:19:32 +00:00
pooryorick
d3bb4906d1
Fix for [0cd1ae596e709259], under strict encoding, [gets] returns an error even
...
though a complete line is available.
2023-04-14 07:21:48 +00:00
apnadkarni
ec63738e5c
Merge trunk
2023-04-14 03:24:42 +00:00
apnadkarni
dcd5ea5b91
Finish up list tests. Add testbigdata dict command for generating dicts
2023-04-14 03:06:44 +00:00
apnadkarni
d8c2bafa2c
Few more bigdata tests
2023-04-13 18:05:00 +00:00
jan.nijtmans
f7c3a98827
Re-generate unix/configure
2023-04-13 16:58:03 +00:00
jan.nijtmans
ee84d52e39
Re-generate unix/configure
2023-04-13 16:56:57 +00:00
jan.nijtmans
50f141d888
re-generate unix/configure
2023-04-13 16:55:51 +00:00
pooryorick
d5619e30fe
Rewrite documentation file SetResult.3
2023-04-13 14:31:49 +00:00
jan.nijtmans
4307d0a739
Follow-up to previous commit: Let's not break TIP #627 either. Also adapt documentation (will be needed to be done anyway)
2023-04-13 14:02:23 +00:00
jan.nijtmans
12b3b1ee00
Allow Tcl build without the Tcl 8 compat API. Derived from "disabletcl8api" branch (thanks, Rolf), but using the already existing -DTCL_NO_DEPRECATED (in Makefile) or CHECKS=nodep (makefile.vc)
...
Since there are Github Action builds with -DTCL_NO_DEPRECATED/CHECKS=nodep, we cannot use the Tcl 8 compat API in the core code itself any more.
2023-04-13 13:13:13 +00:00
pooryorick
e40a0e13a8
Clean up Tcl_SetObjResult().
2023-04-13 10:20:21 +00:00
pooryorick
a1021c091c
Remove unnecessary reference count bump in Tcl_ReadObjCmd().
2023-04-13 09:18:53 +00:00
pooryorick
a6754db559
Remove last reference to -nocomplainencoding and fix some spelling errors.
2023-04-13 07:16:20 +00:00
jan.nijtmans
c3cfa1176e
Merge 8.7
2023-04-13 06:18:24 +00:00
jan.nijtmans
023ceb178d
cherry-pick from trunk: Remove one unnecesary call to Tcl_SetErrno() in DoReadChars().
2023-04-13 06:16:05 +00:00
apnadkarni
bce26daa76
Fix compilation on macos, test loading on mingw
2023-04-13 02:40:00 +00:00
pooryorick
ca227dbb84
Remove one unnecesary call to Tcl_SetErrno() in DoReadChars().
2023-04-13 00:12:08 +00:00
pooryorick
54ad113891
Correct the documentation of Tcl_SetObjLength.
2023-04-12 20:39:38 +00:00
pooryorick
7d767c4cb9
Remove unnecessary generation of string representation in DoReadChars.
2023-04-12 20:39:00 +00:00
jan.nijtmans
f3ea1d46e1
merge-mark
2023-04-12 20:06:23 +00:00
jan.nijtmans
4518ee9a6d
Cherry-pick: Rearrange code blocks in DoReadChars to do less work when returning early
2023-04-12 19:52:38 +00:00
pooryorick
786549398b
Rearrange code blocks in DoReadChars to do less work when returning early.
2023-04-12 18:37:24 +00:00
jan.nijtmans
ae5de56339
merge-mark
2023-04-12 18:19:37 +00:00
jan.nijtmans
e4749b5f32
Some more int -> Tcl_Size (which is actually the same in 8.7). Backported from 9.0
2023-04-12 18:17:43 +00:00
apnadkarni
b4542dd058
Test cases for more failures
2023-04-12 17:08:02 +00:00
pooryorick
b77f43bb11
Correct spelling errors in comments and documentation, but also a non-comment corrections in history.tcl and tcltest.test.
2023-04-12 14:25:41 +00:00
jan.nijtmans
83677a47e7
merge-mark
2023-04-12 13:54:15 +00:00
jan.nijtmans
3d91df2489
More int -> Tcl_Size, so (theoretically) longer lists could be handled. Thanks, Rolf!
2023-04-12 13:51:33 +00:00
pooryorick
2456020044
Undo spelling corrections in compat/zlib.
2023-04-12 13:36:17 +00:00
pooryorick
cf6c56c88d
Correct spelling errors in comments and documentation, but also a non-comment
...
corrections in history.tcl and tcltest.test.
2023-04-12 13:30:39 +00:00
jan.nijtmans
55375d0dfe
2 more spelling fixes, but undo fixes in compat/zlib: Please report them upstream, otherwise they will re-appear here every time zlib is updated to a newer version.
2023-04-12 12:48:12 +00:00
pooryorick
3b742b785e
Correct spelling errors in comments and documentation, but also non-comment
...
corrections in history.tcl and tcltest.test.
2023-04-12 09:35:08 +00:00
jan.nijtmans
a0d8d381c1
Merge 8.7
2023-04-12 09:11:21 +00:00
jan.nijtmans
b571892e4f
int -> Tcl_Size for tclWinDde.c/tclWinReg.c, so it could (theoretically) handle larger lists in Tcl 9.
2023-04-12 09:10:26 +00:00
jan.nijtmans
9c0541d0e4
Fix [0b9200888e]: TIP #660 breaks TIP #628/#630
2023-04-12 08:58:03 +00:00
jan.nijtmans
bee240eab0
Proposed fix for [0b9200888e]: TIP #660 breaks TIP #628/#630
2023-04-11 22:50:40 +00:00
pointsman
4d067d1cdf
Merged disabletcl8api-win in. Which adds optional Tcl 9 API only to the windows build with native tools. And fixed the error with Tcl_GetIndexFromObjStruct(). Simplified the mess in tclDecl a bit. All problems with API calls of the core itself up to now hidden by the Tcl 8 compatibility macros are fixed. Thanks, apnadkarni.
2023-04-11 22:03:23 +00:00
apnadkarni
4acb728d29
Add tests for binary command. Add testlutil command for speeding up list tests.
2023-04-11 16:52:49 +00:00
apnadkarni
7b249ac174
scan, reg*, subst tests
2023-04-10 14:52:44 +00:00
apnadkarni
06e049afdf
Fix compiler warnings and crashes. Builds and passes test suite on Windows and Ubuntu for 64-bit
2023-04-10 13:21:02 +00:00
apnadkarni
b223689153
Add notcl8api to OPTS to mirror --disable-tcl8api in configure
2023-04-10 13:19:22 +00:00
apnadkarni
d90b82d5ce
Sloooow progress on testing bigdata
2023-04-09 16:28:02 +00:00
pointsman
7bfc449085
Experimental branch which adds configure option --disable-tcl8api which builds without the Tcl 8 compatibility API. Atm unix only.
2023-04-09 00:09:50 +00:00
apnadkarni
f350cdd7cc
A few more bigdata tests for strings
2023-04-08 17:19:10 +00:00
apnadkarni
3643909840
Merge 9.0
2023-04-08 08:22:20 +00:00
pointsman
9365f75b61
Editorial fix in Tcl_Panic() message.
2023-04-07 23:14:20 +00:00
pooryorick
4d73d1039b
Merge bug-[fa3d9fd818fa0072].
2023-04-06 12:24:28 +00:00
pooryorick
edb446d267
Update the documentation for [chan] with regard to binary data.
2023-04-06 12:10:56 +00:00
pooryorick
20d27150a6
Remove obsolete comments.
2023-04-06 10:28:19 +00:00
pooryorick
1c1cbe4444
Further fix for [fa3d9fd818fa0072]. In ChannelState.encoding, NULL no longer
...
represents the binary encoding.
2023-04-06 10:03:49 +00:00
pooryorick
3749d89fa6
Merge trunk.
2023-04-06 09:41:35 +00:00
apnadkarni
9deff281ee
TIP 602 - update manpages
2023-04-05 17:04:05 +00:00
jan.nijtmans
3d9106c78b
Merge 8.7
2023-04-05 16:06:52 +00:00
jan.nijtmans
fc9cd641eb
Make sure that infoPtr->validMask only contains TCL_READABLE|TCL_WRITABLE|TCL_EXCEPTION, no other flags
2023-04-05 16:05:36 +00:00
apnadkarni
e49e2ac11d
Merge trunk
2023-04-05 15:49:19 +00:00
jan.nijtmans
1c6c9f56e9
Merge 8.7
2023-04-05 15:12:52 +00:00
jan.nijtmans
4df4a598eb
Use Tcl_GetIntForIndex() in testcases (tclTestObj.c) in stead of Tcl_GetWideIntFromObj().
...
Meant for Ashok, to show that we already have Tcl_GetSizeIntFromObj(). (I already planned this conversion for a long time, thanks, Ashok for reminding me)
Also some other cleanups
2023-04-05 14:19:45 +00:00
apnadkarni
0fb466009e
Fix tclStubInit gcc warnings with TCL_UTF_MAX=3
2023-04-05 11:44:02 +00:00
apnadkarni
3c2a7e1741
Add TCL_SIZE_MAX and TCL_SIZE_MODIFIER
2023-04-05 11:03:35 +00:00
apnadkarni
a066019d75
Export Tcl_GetSizeFromObj in stubs
2023-04-05 10:45:44 +00:00
apnadkarni
1ab82013f2
Tcl_GetSizeIntFromObj
2023-04-05 06:40:43 +00:00
apnadkarni
543bde3f26
Merge 9.0
2023-04-05 04:47:52 +00:00
jan.nijtmans
096c6ef84f
Fix [6390566ecd]: Testcase cmdAH-4.3.13.00DC0000.tail.utf-32.tcl8.a fails sometimes
2023-04-04 22:47:27 +00:00
jan.nijtmans
2948220674
Accidental rename from TCL_8_COMPAT to TCL_SIGNED_SIZE in previous commit, so undo that
2023-04-04 21:58:38 +00:00
jan.nijtmans
e5aed17b9d
Merge 8.7
2023-04-04 21:55:41 +00:00
jan.nijtmans
d206ee3c75
Starting with [51d813943bcaf835], chan-io-52.10 and io-52.10 are failing on the Windows (with Visual Studio) environment. For now, disable the testcases.
2023-04-04 21:54:35 +00:00
jan.nijtmans
ef765324c9
TIP #628 addendum (various fixes to improve handling of 8.7 <-> 9.0 header differences)
2023-04-04 21:49:30 +00:00
apnadkarni
eea17e30ab
Some very initial tests for large data
2023-04-04 17:16:51 +00:00
apnadkarni
556b19bf28
Start on tests for large data
2023-04-04 17:14:44 +00:00
pooryorick
8528cc5323
Fix for [9ca87e6286262a62], sync fcopy buffers input in ReadChars().
2023-04-04 16:26:18 +00:00
pooryorick
e1420101e1
Fix for [fa3d9fd818fa0072], [fcopy $chan1 $chan2 -size $size] is not [puts
...
-nonewline $chan2 [read $chan1 -size $size].
2023-04-03 21:20:28 +00:00
pooryorick
5d3ba90d87
Fix for [fa3d9fd818fa0072], [fcopy $chan1 $chan2 -size $size] is not [puts
...
-nonewline $chan2 [read $chan1 -size $size].
2023-04-03 20:58:46 +00:00
pooryorick
530c3b8f01
Fix typo in test io-53.12.1.
2023-04-03 19:58:42 +00:00
pooryorick
1203f8d384
Fix typo in previous commit.
2023-04-03 19:56:56 +00:00
pooryorick
1215212601
Fix for [9ca87e6286262a62], sync fcopy buffers input in ReadChars().
2023-04-03 17:13:19 +00:00
pooryorick
3e6eaa5776
Fix for [9ca87e6286262a62], sync fcopy buffers input in ReadChars().
2023-04-03 17:12:11 +00:00
pooryorick
465fa239eb
Failing test for [9ca87e6286262a62f], Sync fcopy buffers input in ReadChars().
2023-04-03 16:37:27 +00:00
apnadkarni
5e5a852fe0
Bug [7e3f26c748] - TCL_MEM_DEBUG false positive
2023-04-02 13:23:33 +00:00
jan.nijtmans
17d857c579
Merge 8.7
2023-04-01 14:55:36 +00:00
jan.nijtmans
81999e0554
Add -Wall -Wextra -Wc++-compat -Wconversion -Werror to CFLAGS in unix/dltest/Makefile.in, and minimal changes to make it work warning-free. Fix indenting
2023-04-01 14:52:08 +00:00
apnadkarni
d9bef75f08
Fix gcc warnings from prior 9.0 merge
2023-04-01 11:35:49 +00:00
jan.nijtmans
baa549af6a
Merge 9.0
2023-04-01 10:27:54 +00:00
jan.nijtmans
ce04b407d9
Merge 8.7. Code cleanup in dltest packages
2023-04-01 08:16:03 +00:00
jan.nijtmans
0726ae90db
New "pkgt" for testing TIP #627
2023-04-01 07:45:22 +00:00
jan.nijtmans
7d1613ac75
Improve tcltest package: Don't use 'scan' for printable characters, and don't print lf as \x0A any more (as in Tcl 8.6)
2023-04-01 07:27:28 +00:00
jan.nijtmans
b6a444f634
merge-mark
2023-03-31 21:41:58 +00:00
jan.nijtmans
21c787abd0
Restore iogt-2.3 expectation expectation to what it was in Tcl 8.6 (due to previous bug-fix)
2023-03-31 21:41:03 +00:00
jan.nijtmans
efc68f3008
adapt iogt-2.3 expectation
2023-03-31 21:25:26 +00:00
jan.nijtmans
9a89f0e222
merge-mark
2023-03-31 19:25:52 +00:00
jan.nijtmans
fc78297f13
Backport CHANNEL_PROFILE_GET() usage fix from 9.0
2023-03-31 19:24:35 +00:00
jan.nijtmans
c5d4ce7c51
Correct other CHANNEL_PROFILE_GET() usage as well, which had the same error. Further on: 1) profile in inputEncodingFlags is always equal to profile in outputEncodingFlags, so we only have to test one of them
...
2) We copy from inputchannel to outputchannel, so we - really - only have to test inStatePtr->inputEncodingFlags and outStatePtr->outputEncodingFlags. 3) In Tcl 9 we only want to set sameencoding when both channels are in tcl8 mode
2023-03-31 19:14:05 +00:00
pooryorick
90f77cbdf1
Fix TclCopyChannel() incorrect use of CHANNEL_PROFILE_GET().
2023-03-31 18:56:33 +00:00
jan.nijtmans
3eb5ddf1da
Merge 8.7
2023-03-31 11:16:20 +00:00
apnadkarni
a30f4dce67
Fix macos Tcl_MacOSXOpenVersionedBundleResources to use Tcl_Size
2023-03-31 11:09:05 +00:00
jan.nijtmans
cc936d0713
Merge 8.6
2023-03-31 11:06:35 +00:00
jan.nijtmans
6bdd668a7c
Update to tzdata 2023c (which is identical to 2023a, due to the summertime situation in Libanon)
2023-03-31 07:57:12 +00:00
jan.nijtmans
726c679083
Rename TclWinOpenFileChannel to OpenFileChannel, because it's static now.
2023-03-31 07:49:39 +00:00
jan.nijtmans
feac96c8b3
Merge 8.7
2023-03-30 22:22:32 +00:00
jan.nijtmans
ed24f448c7
One more snprintf
2023-03-30 22:06:00 +00:00
jan.nijtmans
dc5930bc81
Merge 8.6
2023-03-30 22:02:55 +00:00
jan.nijtmans
1861455786
Fix [0cb3554903]: macOS 13 SDK deprecates sprintf()
2023-03-30 21:20:30 +00:00
apnadkarni
5a1359a5e8
TIP 660. No compiler warnings. Tests suite pass on Win and Ubuntu
2023-03-30 18:01:48 +00:00
apnadkarni
edb3e7b8d2
Create new branch named "tip-660"
2023-03-30 17:55:39 +00:00
jan.nijtmans
191fecdc87
Fix [0cb3554903]: macOS 13 SDK deprecates sprintf(). But better not use it on other platforms either.
2023-03-30 15:19:44 +00:00
max
67ced52076
Merge 8.7: Allow empty mode list in [chan create].
2023-03-30 09:23:44 +00:00
max
f8b9e919c9
Merge 8.6: Allow empty mode list in [chan create].
2023-03-30 09:13:22 +00:00
max
784535a35c
Allow empty mode list in [chan create], so that refchans are able to mimic the behavior of channels created by [socket -server].
2023-03-30 08:46:27 +00:00
dgp
5b6755494d
test hygiene. Match [removeFile] arguments to [makeFile] to fix debug alerts.
2023-03-29 15:06:48 +00:00
jan.nijtmans
7d527f91fd
Merge 8.7. Some size_t -> Tcl_Size in internal header files
2023-03-29 08:54:52 +00:00
jan.nijtmans
ef16c107bf
typo
2023-03-29 08:32:52 +00:00
pooryorick
24d6b91453
Replace bit twiddling with clear expression.
2023-03-29 06:16:03 +00:00
pooryorick
ef52a3851a
Remove the last occurrences of TCL_ENCODING_NOCOMPLAIN.
2023-03-28 19:30:58 +00:00
pooryorick
9576a35d02
Combine two branches in write().
2023-03-28 19:29:21 +00:00
jan.nijtmans
4d14a84353
Minor fix in winConsole.test
2023-03-28 16:03:42 +00:00
jan.nijtmans
7854b03fa2
Fix iocmd-12.11 testcase
2023-03-28 15:50:31 +00:00
jan.nijtmans
2445b5d59b
Merge 8.7
2023-03-28 07:15:41 +00:00
jan.nijtmans
dca79c0aca
Fix [fa128568a5]: EOVERFLOW does not necessarily mean "file too big". Synchronize many error-messages with what Linux gives nowadays.
2023-03-28 07:14:35 +00:00
apnadkarni
9d87e5b616
Merge 8.7. POSIX errors update and minizip fix
2023-03-28 05:13:26 +00:00
apnadkarni
02ed0444e9
Merge 8.6. POSIX errors update and minizip fix
2023-03-28 05:02:08 +00:00
apnadkarni
2616ef0ef1
Fix irritating gcc warning for minizip
2023-03-28 04:47:00 +00:00
jan.nijtmans
82098d2dca
Fix some typo's in POSIX error-messages, and add missing ones (ESTRPIPE, ERESTART, ENOSHARE, ENOMEDIUM, ENMFILE, EMEDIUMTYPE, EFTYPE, ECASECLASH)
2023-03-27 20:56:28 +00:00
jan.nijtmans
91fa419271
More text fixes
2023-03-27 20:24:09 +00:00
pooryorick
0899e9d020
Remove unneeded parts from test in fileName.test.
2023-03-27 20:08:21 +00:00
pooryorick
bc060f980c
Remove unneeded parts from test in fileName.test.
2023-03-27 19:56:36 +00:00
dgp
7f39dac888
test hygiene cleaning up created files.
2023-03-27 17:23:48 +00:00
jan.nijtmans
f3e40e67d4
Merge 8.7
2023-03-27 14:44:28 +00:00
jan.nijtmans
ac324e9b0b
spacing
2023-03-27 14:42:18 +00:00
pooryorick
5ffb8a5035
Make the documentation of [encoding] more concise and readable.
2023-03-27 12:16:36 +00:00
pooryorick
3faf228237
Make the documentation of [encoding] more concise and readable.
2023-03-27 12:14:03 +00:00
jan.nijtmans
e0df4408c7
Merge 8.7
2023-03-27 11:49:53 +00:00
jan.nijtmans
d531e7af51
Merge 8.7
2023-03-27 11:43:02 +00:00
jan.nijtmans
2524a62bb6
More (internal) usage of TclGetString() and TclGetStringFromObj() macro's
2023-03-27 11:35:58 +00:00
pooryorick
587c1ebdba
Avoid msvc "illegal indirection" error.
2023-03-27 11:14:50 +00:00
pooryorick
b026d900d3
Avoid msvc "illegal indirection" error.
2023-03-27 11:13:17 +00:00
jan.nijtmans
e1fdad425a
Merge 8.7. Go back to lowercase for POSIX err-messages
2023-03-27 09:59:14 +00:00
pooryorick
49b6ecfb4e
Fix some formatting errors.
2023-03-26 22:29:05 +00:00
pooryorick
38a87927cf
Update reference-counting advice for Tcl_ObjSetVar2 and friends.
2023-03-26 22:18:05 +00:00
jan.nijtmans
1df3dc0ae2
Merge 8.7
2023-03-26 21:46:40 +00:00
pooryorick
cc28ac83dd
Mark: Valgrind reports no leaks.
2023-03-26 20:04:26 +00:00
pooryorick
7a84646588
Fix memory leak in Tcl_JoinObjCmd().
2023-03-26 19:14:36 +00:00
jan.nijtmans
d2fc2aa765
Sync all error-messages with modern Linux
2023-03-26 18:41:13 +00:00
jan.nijtmans
83740bf7d7
Merge 8.7
2023-03-26 17:22:02 +00:00
jan.nijtmans
ad4011e1c8
Merge 8.6
2023-03-26 17:18:32 +00:00
jan.nijtmans
e18f327808
Update to tzdata 2023b
2023-03-26 17:13:55 +00:00
pooryorick
30428a50c8
Merge-mark: Valgrind reports no memory leaks.
2023-03-26 16:42:41 +00:00
jan.nijtmans
84a0e08557
Patch from chrstphrchvz, fixing [d40b9c8503]. Many thanks!
2023-03-26 15:51:21 +00:00
pooryorick
1df48c6782
Fix for [6d4e9d1af5bf5b7d]: Memory leak: SetFsPathFromAny, assisted by the
...
global literal table, causes a Tcl_Obj to reference itself.
2023-03-26 15:35:10 +00:00
pooryorick
0fd20aeeaa
Fix for [6d4e9d1af5bf5b7d]: Memory leak: SetFsPathFromAny, assisted by the global
...
literal table, causes a Tcl_Obj to reference itself.
2023-03-26 15:07:56 +00:00
pooryorick
2002e0f0f0
Fix for [6d4e9d1af5bf5b7d]: Memory leak: SetFsPathFromAny, assisted by the
...
global literal table, causes a Tcl_Obj to reference itself.
2023-03-26 15:02:55 +00:00
pooryorick
2122f0eb09
Failing test for [6d4e9d1af5bf5b7d].
2023-03-26 14:55:23 +00:00
jan.nijtmans
5c40bd9a6c
Experimental fix for [fa128568a5]: EOVERFLOW does not necessarily mean "file too big"
...
Let's synchronize the POSIX error-messages with what Linux gives nowadays.
2023-03-25 20:00:58 +00:00
griffin
879e7b7112
Merge trunk
2023-03-25 00:29:59 +00:00
jan.nijtmans
fc30e5e704
Merge 8.7
2023-03-24 21:09:33 +00:00
jan.nijtmans
414896d31f
Fix [68417a8bb3]: No result/LF printed for 64-bit integer type check
2023-03-24 21:08:11 +00:00
jan.nijtmans
f49e4099fe
Merge 8.7
2023-03-24 20:58:04 +00:00
jan.nijtmans
220282500b
Merge 8.6
2023-03-24 20:47:40 +00:00
jan.nijtmans
e27c66d81a
Fix [15e74a2fe6]: Fix various typos
2023-03-24 20:19:49 +00:00
dgp
de08e1a143
duplicate test name
2023-03-24 16:49:17 +00:00
jan.nijtmans
b0a23df7d6
Merge "unchained" branch, since all it does is add a little valgrind stuff to Makefile.in.
...
Hopefully this will stop Nathan's useless single-commit merges (his way there would be 32 more merges left to go)
2023-03-23 16:02:33 +00:00
jan.nijtmans
ae9ebe2176
Merge 8.7
2023-03-23 15:55:22 +00:00
jan.nijtmans
b726273bbe
Merge 8.6
2023-03-23 15:54:27 +00:00
jan.nijtmans
5e0c34678e
Resolve C warnings on 32-bit platforms. More code cleanup.
2023-03-23 15:48:54 +00:00
Konrad Schwarz
3985945f96
Merge-mark
2023-03-23 07:28:41 +00:00
jan.nijtmans
ed66664f84
fix for [f3cb2a32d6] Add initialization to allocation of string rep buffer to resolve valgrind reports on use of uninitialized memory
2023-03-23 07:27:28 +00:00
pooryorick
a51afb0e46
Merge trunk 4dca8eb033: Make "tcltest" package use "-profile tcl8" internally,
...
irrespective of what the default profile is.
2023-03-22 21:39:54 +00:00
pooryorick
da0251a1f4
Merge trunk b10e2b66a9: Manpage fixes.
2023-03-22 21:38:41 +00:00
pooryorick
4576880f96
Merge trunk 9aa2b65a57: TIP 656 manpages.
2023-03-22 21:37:45 +00:00
pooryorick
10423ea0ca
Merge trunk 49a4c8f8fb: TIP 656 implementation.
2023-03-22 21:36:46 +00:00
pooryorick
25a166a77a
Merge trunk 31788d9a4b: arm64e -> arm64, since arm64e is not available yet on
...
MacOS (Thanks to Stefan Sobernig).
2023-03-22 21:24:16 +00:00
pooryorick
99a897fb41
Merge trunk 5ecd70c8ce: Unbreak build, and minor cleanup.
2023-03-22 21:21:46 +00:00
pooryorick
40a90d5fce
Merge trunk 43584b2ac9: If TCL_UTF_MAX=4, don't set 'exact' to 1.
2023-03-22 21:19:31 +00:00
jan.nijtmans
e66310792a
Merge 9.0
2023-03-22 21:15:16 +00:00
pooryorick
9837f0e993
Merge trunk 9e266d00f2: Empty
2023-03-22 21:14:38 +00:00
pooryorick
3f624f6af0
Merge core-8-branch 7f5879e9cb: Fix (minor) warning on 32-bit platforms.
2023-03-22 21:13:13 +00:00
jan.nijtmans
4dcd70c967
Remove knownProfileBug constraint: this is already fixed
2023-03-22 21:11:12 +00:00
pooryorick
9d432523a6
Merge core-8-branch 3082cb9e80: Make valgrind_foreach target in Makefile.in
...
properly handle interrupted tests.
2023-03-22 20:26:05 +00:00
pooryorick
7f3849495a
Merge core-8-branch 7fde86610c: New script used in the "valgrind_each" target
...
in Makefile.in.
2023-03-22 20:15:47 +00:00
jan.nijtmans
d984134999
Merge 9.0
2023-03-22 20:13:09 +00:00
jan.nijtmans
17937238e2
One missing int -> Tcl_Size change
2023-03-22 20:09:09 +00:00
jan.nijtmans
f4a64c89a2
Forgot one line in previous commit, and indenting
2023-03-22 19:30:02 +00:00
jan.nijtmans
6fec8f2b6c
Let's get in the 'readability' changes from the 'unchained' branch, without the need for all those partial merges.
2023-03-22 18:13:29 +00:00
jan.nijtmans
1451fc7537
Merge 8.7
2023-03-22 18:00:15 +00:00
jan.nijtmans
c103cb5d10
Merge 8.6
2023-03-22 17:57:39 +00:00
pooryorick
178c9d17be
Merge trunk 6ef2153f20: Minor cleanup (Thanks, Gustaf!).
2023-03-22 17:54:26 +00:00
pooryorick
a4b2c694ce
Merge trunk c1e45151b3: Remove _LARGEFILE_SOURCE64 usage. See [d690400d07].
2023-03-22 17:53:28 +00:00
pooryorick
ff8b3d5c27
Merge trunk d04c1efe83: Merge in constraint spelling fix. Keep it in case the knownBug constraint is ever removed.
2023-03-22 17:51:31 +00:00
jan.nijtmans
dedbaf0009
Fix [0265750233]: invalid read in cmdAH-4.3.13.C1.solo.utf-8.tcl8
2023-03-22 17:50:05 +00:00
pooryorick
511ae7efcb
Merge trunk a76dee9eb4: Further fix for issue [ea69b0258a9833cb], crash when
...
using a channel transformation on TCP client socket.
2023-03-22 17:24:22 +00:00
pooryorick
5aedb72b9c
Merge trunk a19e2f0c0b: ckfree -> Tcl_Free
2023-03-22 17:17:47 +00:00
pooryorick
364b4e65bf
Merge trunk 30ba320f81: Since "unicode" is deprecated, use "utf-16" in
...
testcases. Otherwise -DTCL_NO_DEPRECATED build fails.
2023-03-22 17:16:42 +00:00
pooryorick
e038969b66
Merge trunk 62058cafe0: Fix for issue [ea69b0258a9833cb], crash when using a
...
channel transformation on TCP client socket.
2023-03-22 17:15:26 +00:00
pooryorick
46d59bb7db
Merge trunk 5c6fa768fe: Merge 8.6: Bug [183a1adcc0]. Buffer overflow in
...
Tcl_UtfToExternal.
2023-03-22 17:13:41 +00:00
pooryorick
30cce986ca
Merge trunk 9db02d187b: 2 more testcases, proving utf-32 handling of surrogates
...
(actually: not handling!) is OK.
2023-03-22 17:11:37 +00:00
pooryorick
4fdc61a1f6
Merge trunk 6fb14ee3e: Minor bug-fix for utf-32: Only throw exception for
...
codepoints > +U10FFFF if "-strict" is specified. Otherwise replace with 0xFFF.
2023-03-22 17:10:54 +00:00
pooryorick
120806ee03
Merge trunk 286d6e9ab0: Fix [db7a085bd9]: encoding convertfrom -strict utf-16
...
accepts partial surrogates.
2023-03-22 17:09:51 +00:00
pooryorick
bc309ba006
Merge trunk 8e467866ef: Forgot that \x00 is not printable anyway.
2023-03-22 17:08:35 +00:00
pooryorick
629aea4b6a
Merge trunk 1bf875b575: Always output 2 hex characters in "unexpected byte sequence" exception message.
...
make testcases io-38.3/chan-io-38.3 independant from system encoding.
Bump version of tcltest to 2.5.6
2023-03-22 17:07:18 +00:00
pooryorick
5df2af1808
Merge trunk a0abb8bdc5: Make test less fragile to changing set of options.
2023-03-22 17:02:17 +00:00
pooryorick
f8a7412ae3
Merge trunk bb76745df2: Fix cmdAH-4.3.13.00D80000.solo.utf-32le.tcl8.a testcase
...
from tip-656-tcl9 branch, when TCL_UTF_MAX=3.
2023-03-22 17:01:25 +00:00
pooryorick
eaad662c18
Merge trunk 64c58db9fc: Adapt 2 testcases (io-39.16/io-39.16a), showing that
...
"-encoding" can be shortened to "-en", but not to "-e" (because there is
-eofchar too).
2023-03-22 16:58:45 +00:00
pooryorick
ccf567f6a8
Merge trunk a52ac1d5fa: winFCmd-1.24 differs in error code on Win 11.
2023-03-22 16:57:08 +00:00
pooryorick
796370fa55
Merge trunk 13b04d4d60: Add "notWsl" test constraints. Clean up many testcases.
2023-03-22 16:56:08 +00:00
pooryorick
96b80a42ae
Merge trunk 837dbec7cc: More -Wconversion warning fixes.
2023-03-22 16:55:24 +00:00
pooryorick
479247a5f0
Merge trunk 82bf22dad8: Add "teststringobj newunicode". Not used in testcases yet.
2023-03-22 16:53:56 +00:00
pooryorick
e882c87033
Merge trunk 1997f71246: Fix [b4af93cd9f]: uninitialized bytes in http11-1.13.0.
2023-03-22 16:51:17 +00:00
pooryorick
2239eb3a90
Merge trunk fe9c231f48: Fix a few -Wconversion warnings.
2023-03-22 16:50:06 +00:00
pooryorick
ce1b091802
Merge trunk 24072d92fc: testchmod fix.
2023-03-22 16:48:11 +00:00
jan.nijtmans
636a6d0ea9
Proposed fix for [0265750233]: invalid read in cmdAH-4.3.13.C1.solo.utf-8.tcl8.
2023-03-22 16:36:22 +00:00
pooryorick
ce9c1b59e5
Merge trunk 04077c7b2e: Fix [95e287b956]: uninit value use in stringObj-4.2.
2023-03-22 14:11:19 +00:00
pooryorick
d462ed2dd9
Merge trunk 2c4994d39e: ckfree() -> Tcl_Free().
2023-03-22 14:09:11 +00:00
pooryorick
2a7d240b80
Merge trunk 37fc768d3: Tcl_WinTCharToUtf() is deprecated, so use Tcl_WCharToUtfDString() instead.
2023-03-22 14:08:41 +00:00
pooryorick
ec7356be4c
Merge trunk 9e195dccd7: Add new valgrind suppression items.
2023-03-22 14:07:38 +00:00
pooryorick
631b9cae2e
Merge trunk 6b8ecafc24: A better fix for Valgrind "still reachable" report in TestcmdtokenCmd().
2023-03-22 14:07:00 +00:00
pooryorick
88caedc3ce
Merge trunk 1ad5d08ee8: Another round of -1 -> TCL_INDEX_NONE.
2023-03-22 13:59:58 +00:00
pooryorick
dc7946e162
Merge trunk 7a2fc29ce0: More -1 -> TCL_INDEX_NONE.
2023-03-22 13:57:13 +00:00
pooryorick
e21761aab7
Merge trunk adb38c336f: Make dltest/pkg*.c simple example how to use Tcl_Size
...
with Tcl_GetStringFromObj().
2023-03-22 13:55:33 +00:00
pooryorick
a19bc41c3a
Merge trunk aceb89781d: Protect zlib errors with check for null interp.
2023-03-22 13:54:50 +00:00
pooryorick
a78ce452f2
Merge trunk: Test constraint notInCIenv no longer necessary (due to previous
...
fix).
2023-03-22 13:53:41 +00:00
pooryorick
438dbba007
Merge trunk: Fix [1b8df10110]: Tcl_GetTime returns wrong usec value on Windows.
2023-03-22 13:52:53 +00:00
pooryorick
6c33026c8c
Merge trunk 91247f5ef8: Adapt type-casts to Tcl 9.0 signature of
...
Tcl_Free/Tcl_Realloc/Tcl_AttemptRealloc.
2023-03-22 13:51:45 +00:00
pooryorick
0fc4d3ef81
Merge trunk c1e87a7fe5: ckfree() shouldn't be used in Tcl 9 core code any more.
2023-03-22 13:50:49 +00:00
pooryorick
bb933cb954
Merge trunk: Fix Valgrind "still reachable" report in TestcmdtokenCmd().
2023-03-22 13:50:02 +00:00
pooryorick
b523637e3b
Merge trunk: Fix bug [9a978f8323], large reads > 2GB.
2023-03-22 13:48:45 +00:00
pooryorick
ae0f696f21
Merge trunk: Disable more file permissions tests for WSL (not supported in
...
WSL/NTFS).
2023-03-22 13:46:42 +00:00
pooryorick
e1e66d9209
Disable file permission tests under WSL as WSL does not support Unix file attrs
...
without special config.
2023-03-22 13:45:16 +00:00
pooryorick
84ad8e1eae
Fix msvc build (with OPTS=symbols)
2023-03-22 13:44:15 +00:00
pooryorick
8602bafbb8
Merge trunk: Fix [f8ef6b3670] crash. TclpSysAlloc macro was truncating size
...
request to 32 bits on Windows.
2023-03-22 13:33:18 +00:00
pooryorick
b12a433518
Merge trunk: Put back testcase io-52.20, and re-fix [4a7397e0b3].
2023-03-22 13:31:32 +00:00
pooryorick
8f8776b56b
Merge trunk: Add missing ')'.
2023-03-22 13:30:32 +00:00
pooryorick
12fbbf9df9
Merge trunk: Restore previous behavior for non-blocking mode, as for this mode
...
the semantics of [read]/[gets] were not broken. This was the 'some agreement'.
The change in line 8286 is necessary for both blocking and non-blocking mode:
Whenver the encoding change we need to reset the CHANNEL_ENCODING_ERROR flag.
2023-03-22 13:22:17 +00:00
pooryorick
7a69ce0ac4
Reverted [d156af9fb76dd2f4] and removed tests io-52.20 io-75.6 io-75.7, as this
...
commit, intended to fix issue [b8f575aa2398b0e4], breaks the semantics of
[read] and [gets]. Such a change would require an accepted TIP. See
[b8f575aa2398b0e4] for further discussion.
2023-03-22 13:16:33 +00:00
pooryorick
7b07b1df54
Merge 8.7. And fix Tcl_UtfToExternal()/Tcl_ExternalToUtf() (at least - suffucient for tclZlib.c), such that it now returns an error when src and dst *both* exceed INT_MAX. To be discussed further.
2023-03-22 13:14:39 +00:00
pooryorick
a182a5bf20
Merge bug-fb368527ae. Bug [fb368527ae] Large string truncation
2023-03-22 13:13:13 +00:00
pooryorick
097fff3b0d
Merge trunk: Make the descriptions in doc/Tcl.n more concise and intuitive.
2023-03-22 13:10:21 +00:00
pooryorick
574c6392d0
Merge trunk: Fix formatting issue in Tcl.n
2023-03-22 13:09:34 +00:00
pooryorick
b14bccc65d
Merge trunk: In case of combining TIP #494 (TCL_8_COMPAT) and #628 (building for Tcl 8.7
...
with 9.0 headers), ignore TCL_8_COMPAT macro. More Tcl_Size usage.
2023-03-22 13:07:50 +00:00
pooryorick
ac8cf85039
Merge trunk: Fix [3d01d51bc4]: Tcl 9: Cannot write large strings to file. Also
...
some size_t -> Tcl_Size changes.
2023-03-22 13:06:58 +00:00
pooryorick
85461b74b3
Merge trunk: Fix [46dda6fc29] - trace crash caused by TclScanElement
2023-03-22 13:05:49 +00:00
pooryorick
30e195d456
Merge trunk: Fix [1d074b177a]. Failure to read .tclshrc
2023-03-22 13:04:46 +00:00
pooryorick
a23d9c4dac
Merge trunk: int -> Tcl_Size in tclEncoding.c
2023-03-22 13:03:21 +00:00
pooryorick
965d3fae6a
Merge trunk: Fix [4bea02e811]: encoding convertfrom -strict ascii \x7f
...
generates exception Many other encodings had the same problem, and also the
reverse happened: encodings which should throw an exception with -strict but
didn't (within range 0x80-0x9F).
2023-03-22 13:01:17 +00:00
pooryorick
8088657ecc
Merge trunk: Fix [d19fe0a5b]: Handling incomplete byte sequences for
...
utf-16/utf-32.
2023-03-22 12:35:24 +00:00
pooryorick
b2f6161a18
Merge trunk: -strict for ucs-2.
2023-03-22 12:28:43 +00:00
pooryorick
c258128087
Merge trunk: Fix for [885c86a9a0]: convertfrom utf8 breaks for 4 byte utf encodings.
2023-03-22 12:26:41 +00:00
pooryorick
1a13ddd24b
Merge trunk: Final part of [10c2c17c32]: UTF-LE32 encoder mapping of
...
surrogates. Problem was in testcase, not in actual code.
2023-03-22 12:25:33 +00:00
pooryorick
aeafdad0a9
Merge trunk 6ca5a8a9cd: encoding convertfrom -failindex, -strict for cesu-8.
2023-03-22 12:24:39 +00:00
pooryorick
ae0658c370
Merge trunk e90924bb13: Test-case only.
2023-03-22 12:20:42 +00:00
pooryorick
3c37f824cc
Merge trunk de933019a1: Fix for [bd1a60eb9c]: convertfrom utf-8 strict mode
...
allows surrogates in input sequence.
2023-03-22 12:19:26 +00:00
pooryorick
cb4d5ce631
Merge trunk a155df4adc: (new) testcase encoding-16.15 as "knownBug": still needs a fix.
2023-03-22 12:12:14 +00:00
pooryorick
167878d3af
Merge Trunk 2d036d968c: Proposed fix (and testcases) for [4a7397e0b3]: Tcl 9: fcopy with -strictencoding 1 UTF-8 channels
2023-03-22 12:02:44 +00:00
jan.nijtmans
32860a2742
Merge 8.7
2023-03-22 12:02:09 +00:00
jan.nijtmans
f1fafe7c16
Move (TCL_ENCODING_PROFILE_MASK|GET|SET) from tcl.h to tclIO.h, since those are not public. Some formatting.
2023-03-22 11:44:33 +00:00
jan.nijtmans
c9bc915417
Merge 8.7
2023-03-22 10:02:28 +00:00
pooryorick
79bc1e0416
Merge trunk e851055acb: Fix documentation on "encoding" command.
2023-03-22 09:50:03 +00:00
jan.nijtmans
44357a2534
code cleanup: use more *SURROGATE() macro's
2023-03-22 09:41:00 +00:00
jan.nijtmans
1e95b894cf
merge-mark
2023-03-22 08:34:09 +00:00
jan.nijtmans
133af7524b
Since TCL_ENCODING_PROFILE_DEFAULT == TCL_ENCODING_PROFILE_TCL8 (on Tcl 8), we can simplify.
2023-03-22 08:32:10 +00:00
pooryorick
e0d5199463
Merge trunk c093f8b044: Renumber testscase.
2023-03-22 06:43:19 +00:00
apnadkarni
e7c416995e
Fix longIs64Bit->has64BitLengths else test will not run on 64-bit Wind
2023-03-22 02:39:10 +00:00
pooryorick
ac8ac73e77
Remove unneeded Tcl_IncrRefCount and TclDecrRefCount. TclPtrSetVarIdx takes
...
ownership of newValuePtr if its refCount is 0, and either stores or frees it.
2023-03-21 23:55:12 +00:00
pooryorick
0fcb3ce5dc
Remove unneeded Tcl_IncrRefCount and TclDecrRefCount. TclPtrSetVarIdx takes
...
ownership of newValuePtr if its refCount is 0, and either stores or frees it.
2023-03-21 23:49:01 +00:00
jan.nijtmans
4f5ae9bf24
Merge 8.7
2023-03-21 16:54:19 +00:00
jan.nijtmans
9152d5eec0
Fix [1bedc53c8c]: synchronous [read] with -strictencoding does not produce an error on invalid input
2023-03-21 16:28:57 +00:00
jan.nijtmans
d63d524e1d
Fix indenting. More use of TCL_INDEX_NONE
2023-03-21 16:26:30 +00:00
jan.nijtmans
48dcbfcc5b
Some test-cases, which test for partial read without throwing EILSEQ immediately, only work with ""-blocking 0". That's expected.
2023-03-21 11:11:02 +00:00
jan.nijtmans
afdd59e358
Merge 8.7
2023-03-21 08:45:56 +00:00
jan.nijtmans
8f3fb2f85e
Fix [154ed7ce56]: Tcl 9: [gets] on -strictencoding 1 configured channel
2023-03-21 08:44:37 +00:00
jan.nijtmans
6ff9d841db
Missing backslashes in macro def
2023-03-21 08:40:08 +00:00
jan.nijtmans
f5c47e4402
Proposed fix for [1bedc53c8c]: synchronous [read] with -strictencoding does not produce an error on invalid input
2023-03-20 23:17:11 +00:00
jan.nijtmans
4ea926a40b
Proposed fix for [154ed7ce56]: Tcl 9: [gets] on -strictencoding 1 configured channel.
...
Extracted from TIP #657 branch (better keeping bug-fix separate from enhancements)
2023-03-20 22:53:33 +00:00
jan.nijtmans
28add0c150
More TclNewIndexObj() usages (for values between -1 and SIZE_MAX-1)
2023-03-20 21:06:09 +00:00
dgp
88f1825232
Candidate fix for [f3cb2a32d6]
...
Add initialization to allocation of string rep buffer to resolve valgrind
reports on use of uninitialized memory
2023-03-20 18:45:28 +00:00
dgp
8133df3b6d
Duplicate test name
2023-03-20 16:39:06 +00:00
jan.nijtmans
8b0dc386ba
Merge 8.7
2023-03-20 14:19:35 +00:00
jan.nijtmans
5319a7d93f
Fix [bdcb5126c0]: Failed assertion in test chan-io-7.3
2023-03-20 14:18:47 +00:00
jan.nijtmans
cc2747afa8
Add longIs64bit constraint to lseq-4.4 (because this isn't expected to work on 32-bit platforms). Remove some unused constraints.
2023-03-20 12:08:58 +00:00
jan.nijtmans
d103b73dba
Fix [5ae5ffc3f4]: Problem with -failindex on 32-bit platform
2023-03-20 11:42:19 +00:00
jan.nijtmans
b273a9c1d4
Use TclNewIndexObj() in stead of Tcl_NewWideIntObj(), which - actually - does the same but better for debugging.
2023-03-20 11:40:25 +00:00
jan.nijtmans
2475fa8cb8
Merge 8.7
2023-03-20 11:31:14 +00:00
jan.nijtmans
5d63902332
Fix [d7fd37ebd9]: handling leftover prefix in table encoding
2023-03-20 11:29:49 +00:00
apnadkarni
921b0dfdea
Merge 8.7 - Fix http11 test hang
2023-03-20 02:38:36 +00:00
apnadkarni
75664c655d
Fix http11 test hang caused by trailing brace in previous commit
2023-03-20 02:36:36 +00:00
jan.nijtmans
2d9a47cff1
Possible fix for [d7fd37ebd9]: handling leftover prefix in table encoding
2023-03-19 21:51:50 +00:00
jan.nijtmans
1876fe215d
Another fix: don't access (w) twice
2023-03-19 13:34:04 +00:00
jan.nijtmans
78c295898e
Doesn't look like a mem-leak: It appears that Tcl_ObjSetVar2() already handles that.
2023-03-19 13:32:46 +00:00
jan.nijtmans
449998d358
Proposed fix for [5ae5ffc3f4]: Problem with -failindex on 32-bit platform. This also fixes a memory-leak.
2023-03-19 13:23:03 +00:00
jan.nijtmans
203f1d691d
Merge 8.7
2023-03-19 11:58:07 +00:00
jan.nijtmans
800d78f04d
Don't let httpd11 depend on the system encoding any more: All text files are now stored in utf-8.
2023-03-19 11:56:58 +00:00
jan.nijtmans
8e6d7429e9
Merge 8.7
2023-03-19 11:45:22 +00:00
jan.nijtmans
291ff6db1b
Remove unneeded backslash
2023-03-19 11:44:38 +00:00
jan.nijtmans
d5ac687adb
Merge 8.7
2023-03-18 09:08:35 +00:00
jan.nijtmans
7834acd2e4
one too much "-profile tcl8"
2023-03-18 09:07:20 +00:00
jan.nijtmans
5e2a39d626
Make http package use "-profile tcl8", irrespective of the default profile in Tcl, until decided differently
2023-03-18 09:02:15 +00:00
jan.nijtmans
cb121886a4
Merge 8.7
2023-03-18 08:52:25 +00:00
jan.nijtmans
278b807336
Make "tcltest" package use "-profile tcl8" internally, irrespective of what the default profile is
2023-03-18 08:50:34 +00:00
jan.nijtmans
036b676c8b
Merge 8.7
2023-03-18 08:45:55 +00:00
jan.nijtmans
5fbaf44ecf
Manpage fixes
2023-03-18 08:42:39 +00:00
apnadkarni
43218725b3
Merge 8.7 - TIP 656 manpages
2023-03-18 04:28:49 +00:00
apnadkarni
c6b740609a
Update manpages for TIP 656
2023-03-18 04:10:47 +00:00
apnadkarni
64c45c10a9
Merge mark post-656
2023-03-18 03:37:24 +00:00
apnadkarni
1a75f270bd
TIP 656 accepted
2023-03-18 03:35:02 +00:00
apnadkarni
e89caee68c
TIP 656 accepted
2023-03-18 03:18:13 +00:00
apnadkarni
b90a2e051c
Merge trunk
2023-03-18 02:59:14 +00:00
apnadkarni
6134622b61
Merge 8.7
2023-03-18 02:36:42 +00:00
jan.nijtmans
4ce715f36a
Merge 8.7
2023-03-17 20:11:26 +00:00
jan.nijtmans
bdad96ab69
Few more arm64e -> arm64
2023-03-17 20:10:29 +00:00
jan.nijtmans
c0a02fd487
Merge 8.6
2023-03-17 20:09:18 +00:00
jan.nijtmans
453c27a88e
arm64e -> arm64, since arm64e is not available yet on MacOS (Thanks to Stefan Sobernig)
2023-03-17 20:04:48 +00:00
jan.nijtmans
ac93862047
Merge 8.7
2023-03-17 19:43:07 +00:00
jan.nijtmans
2d75729976
Merge 8.7
2023-03-17 16:15:16 +00:00
jan.nijtmans
e9ccf557eb
Fix [6390566ecd]: Testcase cmdAH-4.3.13.00DC0000.tail.utf-32.tcl8.a fails sometimes
2023-03-17 16:12:23 +00:00
dgp
5b8c37d24f
merge 8.6
2023-03-17 14:38:16 +00:00
dgp
13b1529c7b
Clean up after events to avoid errors in later tests that use an event loop.
2023-03-17 14:22:44 +00:00
dgp
1ee3af2d3d
merge mark
2023-03-17 12:40:12 +00:00
dgp
87b6456684
unbreak the build
2023-03-17 12:35:51 +00:00
jan.nijtmans
4f2de3dfc9
merge-mark
2023-03-17 08:25:56 +00:00
jan.nijtmans
4aa63fcc25
Don't return from a void function
2023-03-17 08:24:59 +00:00
pooryorick
72deb9db89
Merge-Mark.
2023-03-17 08:13:44 +00:00
jan.nijtmans
3d439d74da
Merge-mark
2023-03-17 08:06:13 +00:00
jan.nijtmans
9c8a1292c0
Don't introduce size_t in a header-file which didn't use it before. Make more clear that those are unsupported internal functions.
2023-03-17 07:57:14 +00:00
jan.nijtmans
d81f257f99
Merge 8.7
2023-03-16 20:16:08 +00:00
jan.nijtmans
3129864cc2
If TCL_UTF_MAX=4, don't set 'exact' to 1
2023-03-16 20:12:23 +00:00
apnadkarni
aa14feed8b
Missed two tests. Blast it :-(
2023-03-16 18:15:46 +00:00
apnadkarni
e7fc2e1e1d
Merge 9.0
2023-03-16 18:11:08 +00:00
apnadkarni
527e79c3a8
Fix passing of encoding state in testencoding Tcl_UtfToExternal
2023-03-16 17:54:12 +00:00
apnadkarni
5655318f50
Merge 8.7
2023-03-16 17:29:12 +00:00
apnadkarni
05262be331
Update manpages in anticipation of TIP 656
2023-03-16 16:24:04 +00:00
jan.nijtmans
88f9f54d4c
Merge 8.7
2023-03-16 15:38:40 +00:00
jan.nijtmans
ae0471127e
Prevent extensions compiled with TCL_UTF_MAX=4 (See [ https://core.tcl-lang.org/tips/doc/trunk/tip/542.md |TIP #542 ]) from running in Tcl 8.6.
2023-03-16 15:36:55 +00:00
jan.nijtmans
1a6f1d5c40
Add some undocumented stub functions. Those can prevent a crash like [ http://paste.tclers.tk/5763 |this] example, when compiled with 8.7 headers but running it in Tcl 8.6.
2023-03-16 15:12:17 +00:00
jan.nijtmans
1eefaec471
Minor cleanup (Thanks, Gustaf!)
2023-03-16 11:38:20 +00:00
jan.nijtmans
e019e5bd1d
Fix (minor) warning on 32-bit platforms
2023-03-16 11:29:14 +00:00
jan.nijtmans
93ce80a916
unicode -> utf-16. Remove some unneeded encodingProfileTodo constraints
2023-03-16 10:00:26 +00:00
pooryorick
5846b1666f
Make valgrind_foreach target in Makefile.in properly handle interrupted tests.
2023-03-16 08:15:03 +00:00
apnadkarni
4d978a00ed
Change -encodingprofile to -profile
2023-03-16 03:48:45 +00:00
apnadkarni
a3c59e320d
Change -encodingprofile to -profile
2023-03-16 03:08:12 +00:00
pooryorick
70cf69246f
New script used in the "valgrind_each" target in Makefile.in
2023-03-15 20:13:22 +00:00
jan.nijtmans
6f4eba042c
Merge 8.7
2023-03-15 16:24:16 +00:00
jan.nijtmans
7543a1313f
Merge 8.6
2023-03-15 16:23:22 +00:00
jan.nijtmans
e0e09638fe
Remove _LARGEFILE_SOURCE64 usage. See [d690400d07]
2023-03-15 16:21:53 +00:00
dgp
a0be72dbca
merge 8.7
2023-03-15 13:41:05 +00:00
dgp
6d3b66ad23
Merge in constraint spelling fix. Keep it in case the knownBug constraint is ever removed.
2023-03-15 13:28:55 +00:00
dgp
6bd8763c2d
Misspelled constraint created testing noise.
2023-03-15 12:53:03 +00:00
pooryorick
f378b48b06
Further fix for issue [ea69b0258a9833cb], crash when using a channel transformation on TCP client socket.
2023-03-15 11:37:13 +00:00
jan.nijtmans
23a421a9c1
Merge-mark. @nathan, please do forward merges from core-8-6-branch -> core-8-branch -> trunk. Fossil is not so intelligent, figuring out what's happening here.
2023-03-15 09:32:02 +00:00
pooryorick
ba737587a8
Further fix for issue [ea69b0258a9833cb], crash when using a channel transformation on TCP client socket.
2023-03-15 09:25:15 +00:00
jan.nijtmans
ea9a0277a2
ckfree -> Tcl_Free
2023-03-15 09:11:22 +00:00
pooryorick
6ded4b92be
Further fix for issue [ea69b0258a9833cb], crash when using a channel transformation on TCP client socket.
2023-03-15 08:42:11 +00:00
pooryorick
6cf4a0dea3
Merge core-8-branch.
2023-03-14 20:37:45 +00:00
pooryorick
fdcb9621bb
Further fix for issue [ea69b0258a9833cb], crash when using a channel
...
transformation on TCP client socket.
2023-03-14 20:30:34 +00:00
pooryorick
3aef0c58f9
Further fix for issue [ea69b0258a9833cb], crash when using a channel transformation on TCP client socket.
2023-03-14 20:27:04 +00:00
apnadkarni
c5d0535121
Merge 9.0. Also fix replace profile handling of orphan surrogates
2023-03-14 17:23:47 +00:00
apnadkarni
87b3bcc550
Merge 8.7
2023-03-14 15:34:42 +00:00
jan.nijtmans
76526242c0
Merge 8.7
2023-03-14 10:33:43 +00:00
jan.nijtmans
b05b4cf948
Since "unicode" is deprecated, use "utf-16" in testcases. Otherwise -DTCL_NO_DEPRECATED build fails.
2023-03-14 10:30:59 +00:00
jan.nijtmans
18a99f2522
Add "ucs-2" constraint to encoding-bug-183a1adcc0-5 testcase, otherwise it fails with TCL_UTF_MAX>3.
...
Broken by [47857515422b8519|this] commit
2023-03-14 10:05:24 +00:00
pooryorick
4c26d23f06
Fix for issue [ea69b0258a9833cb], crash when using a channel transformation
...
on TCP client socket.
2023-03-13 20:57:59 +00:00
pooryorick
953a44bc6e
Fix for issue [ea69b0258a9833cb], crash when using a channel transformation on
...
TCP client socket.
2023-03-13 19:19:32 +00:00
pooryorick
5094fb7825
Fix for issue [ea69b0258a9833cb], crash when using a channel transformation on
...
TCP client socket.
2023-03-13 19:07:25 +00:00
apnadkarni
95158a2d57
Fix passing of encoding state in testencoding Tcl_UtfToExternal
2023-03-13 16:32:55 +00:00
apnadkarni
5c3377f2e1
Merge 8.7: Bug [183a1adcc0]. Buffer overflow in Tcl_UtfToExternal
2023-03-13 15:59:11 +00:00
apnadkarni
d53dfb14c7
Merge 8.6: Bug [183a1adcc0]. Buffer overflow in Tcl_UtfToExternal
2023-03-13 15:34:22 +00:00
apnadkarni
6d74232282
Bug [183a1adcc0]. Buffer overflow in Tcl_UtfToExternal
2023-03-13 13:44:35 +00:00
pooryorick
df8a3a6ea4
Fix for issue [ea69b0258a9833cb], crash when using a channel transformation on
...
TCP client socket.
2023-03-13 13:36:52 +00:00
pooryorick
967e55306e
Fix for issue [ea69b0258a9833cb], crash when using a channel transformation on
...
TCP client socket.
2023-03-13 12:22:06 +00:00
apnadkarni
844792f3bb
Cherrypick yip-656. Start on Tcl_ExternalToUtf/Tcl_UtfToExternal tests
2023-03-12 17:10:51 +00:00
apnadkarni
22239fb7d2
Start on Tcl_ExternalToUtf/Tcl_UtfToExternal tests
2023-03-12 16:47:08 +00:00
jan.nijtmans
ab2c6de1ed
merge-mark
2023-03-12 16:38:13 +00:00
jan.nijtmans
131176ce2f
Backport [6fb14ee3e876978c]. Add testcases
2023-03-12 16:37:12 +00:00
jan.nijtmans
aee8588fbc
2 more testcases, proving utf-32 handling of surrogates (actually: not handling!) is OK
2023-03-12 16:23:33 +00:00
jan.nijtmans
eeee744ee2
Minor bug-fix for utf-32: Only throw exception for codepoints > +U10FFFF if "-strict" is specified. Otherwise replace with 0xFFFD
2023-03-12 16:10:52 +00:00
jan.nijtmans
63b29d841b
Merge 8.7
2023-03-12 12:59:28 +00:00
jan.nijtmans
77e951f2b8
Fix [db7a085bd9]: encoding convertfrom -strict utf-16 accepts partial surrogates
2023-03-12 12:37:29 +00:00
jan.nijtmans
9fb3d5754a
Merge 9.0. Also ckalloc -> Tcl_Alloc and ckfree -> Tcl_Free
2023-03-12 12:00:49 +00:00
jan.nijtmans
a16eb9ac30
Merge 8.7
2023-03-12 11:34:03 +00:00
jan.nijtmans
8bf2e2ace2
Forgot that \x00 is not printable anyway
2023-03-12 11:32:52 +00:00
jan.nijtmans
ed8932a4eb
Merge 8.7
2023-03-12 11:28:00 +00:00
jan.nijtmans
b7f151f126
Make test-output more readable when it contains non-printable characters (stolen from TIP #656 impl, thanks Ashok!)
...
tcltest -> 2.5.6
2023-03-12 11:24:24 +00:00
jan.nijtmans
8c5fc11b5a
Always output 2 hex characters in "unexpected byte sequence" exception message.
...
make testcases io-38.3/chan-io-38.3 independant from system encoding
2023-03-12 10:49:18 +00:00
jan.nijtmans
1889ded114
Proposed fix for [db7a085bd9]: encoding convertfrom -strict utf-16 accepts partial surrogates. TODO: testcases, and implement for 8.7 too
2023-03-11 22:00:29 +00:00
apnadkarni
5533596329
Add testencoding Tcl_ExternalToUtf/Tcl_UtfToExternal for raw testing of corresponding C functions
2023-03-11 16:47:42 +00:00
apnadkarni
6f85588bab
Add testencoding Tcl_ExternalToUtf/Tcl_UtfToExternal for raw testing of corresponding C functions
2023-03-11 16:43:36 +00:00
apnadkarni
93160df498
Merged 9.0. Note knownProfileBug constraint which mark questionable tests to be resolved later.
2023-03-10 15:29:36 +00:00
dgp
21388fa31e
merge 8.7
2023-03-10 13:45:01 +00:00
dgp
0951d3f692
merge 8.6
2023-03-10 13:33:19 +00:00
dgp
93bf87ed85
Make test less fragile to changing set of options.
2023-03-10 13:32:47 +00:00
apnadkarni
d06a38ae5d
Merge 8.7
2023-03-10 09:53:32 +00:00
apnadkarni
e9b9864f56
Fix parsing of fconfigure set -encoding* options
2023-03-10 07:37:55 +00:00
jan.nijtmans
494b4c8127
Fix cmdAH-4.3.13.00D80000.solo.utf-32le.tcl8.a testcase from tip-656-tcl9 branch, when TCL_UTF_MAX=3
2023-03-09 20:55:43 +00:00
apnadkarni
56f5c7751c
Fix SetChannelOption parsing of -encoding* to match GetChannelOption
2023-03-09 10:47:12 +00:00
jan.nijtmans
bd3a6be21b
Merge 8.7
2023-03-09 10:22:55 +00:00
jan.nijtmans
962d8aed89
Merge 8.6
2023-03-09 10:21:54 +00:00
jan.nijtmans
5b0be62536
Adapt 2 testcases (io-39.16/io-39.16a), showing that "-encoding" can be shortened to "-en", but not to "-e" (because there is -eofchar too)
2023-03-09 10:08:02 +00:00
jan.nijtmans
a1fb554585
Fix tests/tcltest.test testcases (missing "namespace import")
2023-03-09 09:39:59 +00:00
apnadkarni
552d2bb53f
Merge 8.7 - winFCmd-1.24 differs in error code on Win 11
2023-03-09 02:52:51 +00:00
apnadkarni
1b7f525ec7
Merge 8.6 - winFCmd-1.24 differs in error code on Win 11
2023-03-09 02:50:32 +00:00
apnadkarni
38555b60a2
winFCmd-1.24 has different error code on Win 11
2023-03-09 02:47:53 +00:00
jan.nijtmans
9f1cf8d5ef
Merge 8.7
2023-03-08 20:40:23 +00:00
jan.nijtmans
23becaa71a
Merge 9.0
2023-03-08 20:37:56 +00:00
jan.nijtmans
c3da6c8fed
Merge core-8-branch
2023-03-08 20:16:32 +00:00
jan.nijtmans
468e5148b3
Merge 8.6
2023-03-08 20:15:43 +00:00
jan.nijtmans
7ed7017d94
Add "notWsl" test constraints. Clean up many testcases
2023-03-08 19:58:08 +00:00
jan.nijtmans
10f4d4565d
More -Wconversion warning fixes
2023-03-08 15:01:20 +00:00
jan.nijtmans
fa28b1f243
Merge 8.7
2023-03-08 11:12:04 +00:00
jan.nijtmans
3203978c65
Add "teststringobj newunicode". Not used in testcases yet.
2023-03-08 11:02:27 +00:00
jan.nijtmans
ebfa9b6f2d
ckalloc -> Tcl_Alloc and ckfree -> Tcl_Free
2023-03-08 09:36:14 +00:00
jan.nijtmans
8dbd350305
Merge 8.7
2023-03-07 20:14:23 +00:00
jan.nijtmans
73229a7e53
Merge 9.0
2023-03-07 20:13:24 +00:00
jan.nijtmans
9aea48988c
Merge 8.7
2023-03-07 20:10:15 +00:00
jan.nijtmans
0e0d74624b
Fix [b4af93cd9f]: uninitialized bytes in http11-1.13.0
2023-03-07 20:09:30 +00:00
jan.nijtmans
fffb0bdce5
Merge 8.7
2023-03-07 18:23:15 +00:00
jan.nijtmans
82acd6a35a
Merge 8.6
2023-03-07 18:14:39 +00:00
jan.nijtmans
5cf1eed910
Fix a few -Wconversion warnings
2023-03-07 17:56:45 +00:00
apnadkarni
8c5476848a
Merge 8.7 - testchmod fixes
2023-03-07 12:53:58 +00:00
apnadkarni
4df874dd7f
Merge 8.6 - testchmod fixes
2023-03-07 12:28:40 +00:00
apnadkarni
906268caa7
Merge testchmod fix
2023-03-07 10:46:31 +00:00
jan.nijtmans
1ae5fd8198
Merge 8.7
2023-03-07 07:41:26 +00:00
jan.nijtmans
01d6e02666
Merge 8.6
2023-03-07 07:34:21 +00:00
jan.nijtmans
e10915b565
Fix [95e287b956]: uninit value use in stringObj-4.2
2023-03-07 07:23:10 +00:00
jan.nijtmans
03618f8c95
merge-mark
2023-03-07 07:06:51 +00:00
jan.nijtmans
071917e1b2
Fix [f3cb2a32d6]: uninitialized value in format-2.18. Also remove repeated call to Tcl_DStringInit()
2023-03-07 07:03:36 +00:00
apnadkarni
1f6cec5ff3
Fix testchmod and associated tests that always failed on Windows
2023-03-07 02:52:26 +00:00
apnadkarni
fe7ee54772
Create new branch named "bug-win-testchmod"
2023-03-07 02:27:43 +00:00
jan.nijtmans
f5ba8a8478
Proposed fix for [95e287b956]: uninit value use in stringObj-4.2
2023-03-06 21:01:45 +00:00
jan.nijtmans
f4450abcf9
Proposed fix for [f3cb2a32d6]: uninitialized value in format-2.18
2023-03-06 19:58:53 +00:00
dgp
5e095a3a4d
[b4af93cd9f] Proposed fix from apnadkarni. It works!
2023-03-06 18:17:19 +00:00
jan.nijtmans
3eb68691b8
ckfree() -> Tcl_Free()
2023-03-06 10:30:41 +00:00
jan.nijtmans
f0e415c1e1
Merge 8.7
2023-03-06 10:28:47 +00:00
jan.nijtmans
cfa443421b
Tcl_WinTCharToUtf() is deprecated, so use Tcl_WCharToUtfDString() in stead.
2023-03-06 10:24:15 +00:00
pooryorick
296e4767ea
Add new valgrind suppression items.
2023-03-06 07:00:48 +00:00
pooryorick
fa795b478a
Add new valgrind suppression items.
2023-03-06 06:59:52 +00:00
pooryorick
40e214cd76
Add new valgrind suppression items.
2023-03-06 06:58:13 +00:00
jan.nijtmans
7ec4501d37
Merge 8.7
2023-03-05 21:27:49 +00:00
jan.nijtmans
9e0cc9d630
Merge-mark (but also remove some lost spacing)
2023-03-05 21:16:33 +00:00
jan.nijtmans
9d2cc36a0e
Fix [57bfcf43dd]: Remove unreachable code in Tcl_SetWideIntObj()
2023-03-05 21:09:46 +00:00
jan.nijtmans
e4e1062338
Another round of -1 -> TCL_INDEX_NONE
2023-03-05 19:57:48 +00:00
apnadkarni
0968aa6de7
Merge 8.7: Bug [9c5a00c69d]. Fix ~user on Windows
2023-03-05 11:42:31 +00:00
pooryorick
f736bb9d86
A better fix for Valgrind "still reachable" report in TestcmdtokenCmd().
2023-03-05 11:39:36 +00:00
apnadkarni
6e7d72c158
Merge 8.6: Bug [9c5a00c69d]. Fix ~user on Windows
2023-03-05 11:09:10 +00:00
apnadkarni
1f7d2aae34
Bug [9c5a00c69d]. Fix ~user on Windows
2023-03-05 09:57:29 +00:00
pooryorick
76edd58c3e
A better fix for Valgrind "still reachable" report in TestcmdtokenCmd().
2023-03-05 07:11:15 +00:00
jan.nijtmans
923ff1e3ca
More -1 -> TCL_INDEX_NONE
2023-03-05 00:26:54 +00:00
jan.nijtmans
33d81b98be
Make dltest/pkg*.c simple example how to use Tcl_Size with Tcl_GetStringFromObj()
2023-03-04 18:12:49 +00:00
apnadkarni
234394e2df
Merge 8.7 - Protect zlib errors with check for null interp
2023-03-04 16:33:36 +00:00
apnadkarni
7b3ef36925
Protect zlib errors with check for null interp
2023-03-04 16:26:00 +00:00
apnadkarni
c862e57095
Add test for [9c5a00c69d], tilde expansion of ~user
2023-03-04 15:11:01 +00:00
apnadkarni
0229ba1283
Bug [9c5a00c69d]. Tilde expansion on Windows
2023-03-04 12:13:31 +00:00
jan.nijtmans
4e84e02684
Merge 8.7
2023-03-04 10:20:34 +00:00
jan.nijtmans
80b392ba8e
Merge 8.6
2023-03-04 10:19:44 +00:00
jan.nijtmans
e13edcba86
Test constraint notInCIenv no longer necessary (due to previous fix)
2023-03-04 10:18:41 +00:00
jan.nijtmans
e95b015990
Merge 8.7
2023-03-04 10:13:19 +00:00
jan.nijtmans
aebb7627f5
Merge 8.6
2023-03-04 10:09:21 +00:00
jan.nijtmans
6285c13367
Fix [1b8df10110]: Tcl_GetTime returns wrong usec value on Windows
2023-03-04 10:08:18 +00:00
jan.nijtmans
8f18e27691
Adapt type-casts to Tcl 9.0 signature of Tcl_Free/Tcl_Realloc/Tcl_AttemptRealloc
2023-03-03 13:04:11 +00:00
jan.nijtmans
7f3d1257ff
ckfree() shouldn't be used in Tcl 9 core code any more
2023-03-03 13:03:02 +00:00
pooryorick
e7b37f1737
Fix Valgrind "still reachable" report in TestcmdtokenCmd().
2023-03-03 12:39:09 +00:00
pooryorick
18385b8363
Fix Valgrind "still reachable" report in TestcmdtokenCmd().
2023-03-03 12:17:15 +00:00
pooryorick
d3aa6839f4
Fix Valgrind "still reachable" report in TestcmdtokenCmd().
2023-03-03 12:15:11 +00:00
apnadkarni
cb3d36ad5a
Bug [9a978f8323]: Fix large reads > 2GB
2023-03-03 10:47:51 +00:00
apnadkarni
f4618fc2d9
Merge 9.0 - disable file perms tests on wsl
2023-03-02 08:00:48 +00:00
apnadkarni
1ad16ea481
Merge 8.7 - disable tests on WSL
2023-03-02 07:46:17 +00:00
apnadkarni
b464703493
Merge 8.7: Disable more file permissions tests for WSL (not supported in WSL/NTFS)
2023-03-02 07:32:04 +00:00
apnadkarni
4d67456953
Disable more file permissions tests for WSL (not supported in WSL/NTFS)
2023-03-02 07:08:48 +00:00
apnadkarni
44fdf09f7b
Bug [e778e3f804]. Fix error message for invalid profile name.
2023-03-02 06:41:39 +00:00
apnadkarni
ad8dae7587
Bug [e778e3f804]. Fix error message for invalid profile name.
2023-03-02 06:29:10 +00:00
apnadkarni
806babb932
Add encoding test vector files
2023-03-02 04:48:00 +00:00
apnadkarni
f736321295
Cherrypick [13537afd1b] - eliminate TCL_ENCODING_MODIFIED
2023-03-02 04:35:44 +00:00
apnadkarni
b2cdedcec2
Eliminate TCL_ENCODING_MODIFIED flag
2023-03-02 04:16:44 +00:00
apnadkarni
a0beeb8a76
Fix Tcl_UtfToExternalDStringEx call in macos code
2023-03-01 15:39:06 +00:00
apnadkarni
1d9ebbc740
Merge mark with core-8-branch
2023-03-01 14:57:20 +00:00
apnadkarni
5a3e0c869e
Cherrypick [f1dd5f1cc7]: constrain tests not supported on WSL
2023-03-01 14:55:13 +00:00
apnadkarni
64e7f77040
Disable file permission tests under WSL as WSL does not support Unix file attrs without special config
2023-03-01 13:58:52 +00:00
apnadkarni
cc5dd09db3
Merge trunk
2023-03-01 13:41:44 +00:00
apnadkarni
30a9b333ba
Bug [9a978f8323]: crash reading large files
2023-03-01 13:18:17 +00:00
jan.nijtmans
261c174d97
Fix msvc build (with OPTS=symbols)
2023-03-01 11:06:17 +00:00
apnadkarni
0f06bb38e8
Merge 9.0. TclpSysalloc fix.
2023-03-01 08:01:51 +00:00
apnadkarni
a6b4ef3d29
Fix [f8ef6b3670] crash. TclpSysAlloc macro was truncating size request to 32 bits on Windows.
2023-03-01 07:56:03 +00:00
apnadkarni
9522e37880
Merge 9.0
2023-03-01 07:19:07 +00:00
apnadkarni
00e1068c03
Cherrypick [070225e33d]. Move setting of profile flags to lower level functions in case they are called directly
2023-02-28 17:16:25 +00:00
apnadkarni
74b7d6bc14
Merge 8.7
2023-02-28 15:39:09 +00:00
apnadkarni
3d177bd8b5
int -> Tcl_Size to match TIP
2023-02-28 14:08:19 +00:00
jan.nijtmans
62d9150ef5
Merge 8.7
2023-02-28 13:36:00 +00:00
jan.nijtmans
4227ef37bb
Put back testcase io-52.20, and re-fix [4a7397e0b3]
2023-02-28 13:33:04 +00:00
apnadkarni
1652c942d8
Merge 8.7
2023-02-28 13:25:34 +00:00
apnadkarni
5d56a5b435
Merge 8.7
2023-02-28 13:24:18 +00:00
jan.nijtmans
7c9fe49b51
Merge 8.7
2023-02-28 12:45:06 +00:00
jan.nijtmans
bb80189110
Missing ')'
2023-02-28 12:43:53 +00:00
apnadkarni
1eac8ab060
Move setting of profile in flags parameter to lower level functions in case they are called directly
2023-02-28 12:25:34 +00:00
jan.nijtmans
1923d22832
Merge 8.7
2023-02-28 12:20:34 +00:00
jan.nijtmans
70e40dd53d
Restore previous behavior for non-blocking mode, as for this mode the semantics of [read]/[gets] were not broken. This was the 'some agreement'.
...
The change in line 8286 is necessary for both blocking and non-blocking mode: Whenver the encoding change we need to reset the CHANNEL_ENCODING_ERROR flag.
2023-02-28 12:16:10 +00:00
pooryorick
7661972907
Reverted [d156af9fb76dd2f4] and removed tests io-52.20 io-75.6 io-75.7, as this
...
commit, intended to fix issue [b8f575aa2398b0e4], breaks the semantics of
[read] and [gets]. Such a change would require an accepted TIP. See [b8f575aa2398b0e4] for further discussion.
jn: @pouryorick See [b8f575aa2398b0e4] for the reason why this commit is not appropriate: It gets core-8-branch back in the buggy state it was, without even providing a real solution everyone agrees on. You shouldn't revert my patch just because I reverted yours.
pooryorick: As I explained, the reason for this reversion is that it hard-codes an unapproved change in the semantics of [read] and [gets] into the test suite. Jan, your statement that it's a "revenge" reversion is false. I spent a month trying to find some alternative to this reversion before actually performing it. A commit that codifes in its tests changes in semantcs to [read]/[gets] simply shouldn't be on core-8-branch.
2023-02-28 11:57:03 +00:00
pooryorick
bb2f06fc73
Reverted [d156af9fb76dd2f4] and removed tests io-52.20 io-75.6 io-75.7, as this
...
commit, intended to fix issue [b8f575aa2398b0e4], breaks the semantics of
[read] and [gets]. Such a change would require an accepted TIP. See [b8f575aa2398b0e4] for further discussion.
jn: @pouryorick See [b8f575aa2398b0e4] for the reason why this commit is not appropriate: It gets core-8-branch back in the buggy state it was, without even providing a real solution everyone agrees on. You shouldn't revert my patch just because I reverted yours.
pooryorick: As I explained, the reason for this reversion is that it hard-codes an unapproved change in the semantics of [read] and [gets] into the test suite. Jan, your statement that it's a "revenge" reversion is false. I spent a month trying to find some alternative to this reversion before actually performing it. A commit that codifes in its tests changes in semantcs to [read]/[gets] simply shouldn't be on core-8-branch.
2023-02-28 11:42:15 +00:00
jan.nijtmans
fadb24f26a
Merge 8.7. And fix Tcl_UtfToExternal()/Tcl_ExternalToUtf() (at least - sufficient for tclZlib.c), such that it now returns an error when src and dst *both* exceed INT_MAX. To be discussed further.
2023-02-28 11:00:44 +00:00
jan.nijtmans
5d8ae9bf17
Merge 8.6
2023-02-28 10:36:25 +00:00
apnadkarni
8e139e5cd7
Merge bug-fb368527ae. Bug [fb368527ae] Large string truncation
2023-02-28 10:28:28 +00:00
jan.nijtmans
da55e192ba
Fix [f9eafc3886]: Error handling in zlib comment/filename
2023-02-28 10:18:28 +00:00
pooryorick
57d266423a
Make the descriptions in doc/Tcl.n more concise and intuitive.
2023-02-28 10:13:25 +00:00
pooryorick
d29598480f
Make the descriptions in doc/Tcl.n more concise and intuitive.
2023-02-28 10:06:22 +00:00
pooryorick
7d6cf09e02
Make the descriptions in doc/Tcl.n more concise and intuitive.
2023-02-28 10:04:49 +00:00
pooryorick
8b417f0e1e
Fix formatting issue in Tcl.n
2023-02-28 09:59:29 +00:00
pooryorick
e743d3e487
Fix formatting issue in Tcl.n
2023-02-28 09:57:22 +00:00
jan.nijtmans
a947270ff7
In case of combining TIP #494 (TCL_8_COMPAT) and #628 (building for Tcl 8.7 with 9.0 headers), ignore TCL_8_COMPAT macro. More Tcl_Size usage.
2023-02-28 07:45:27 +00:00
jan.nijtmans
a1fe72fa4a
Fix testcases
2023-02-27 20:50:33 +00:00
apnadkarni
85bf0db1e8
Fix crash. int->size_t needs +1 in comparisons.
2023-02-27 12:31:49 +00:00
jan.nijtmans
c6bb33407a
Fix [3d01d51bc4]: Tcl 9: Cannot write large strings to file. Also some size_t -> Tcl_Size changes.
2023-02-27 11:59:54 +00:00
apnadkarni
e2d89615d5
Tests for encoding strings > 4GB (under perf constraint)
2023-02-27 04:15:07 +00:00
apnadkarni
ed360ca42f
Add perf constraint to large io tests to prevent memory faults on systems with limited memory
2023-02-27 03:13:38 +00:00
jan.nijtmans
6b172a2131
fill in bug ticket-nr
2023-02-26 21:37:15 +00:00
jan.nijtmans
e7b8b9d2dd
Proposed fix for [f9eafc3886]: Error handling in zlib comment/filename. With testcases
2023-02-26 20:12:43 +00:00
jan.nijtmans
152d7203ac
Handle Tcl_UtfToExternal error in tclZlib.c
2023-02-26 17:19:07 +00:00
jan.nijtmans
baf9b5e9bb
Handle statePtr != NULL as well
2023-02-26 16:54:02 +00:00
jan.nijtmans
cbda5cb9b2
Make Tcl_UtfToExternal()/Tcl_ExternalToUtf() report the error, if srcLen and dstLen are both > INT_MAX and therefore not all characters can be handled by this function.
2023-02-26 16:41:06 +00:00
jan.nijtmans
6ab1efe806
merge-mark
2023-02-26 16:04:57 +00:00
jan.nijtmans
08a6b105e5
Merge 8.6
2023-02-26 16:04:03 +00:00
jan.nijtmans
8fdf20ec2b
More dstring testcases, extracted from [46dda6fc29]
2023-02-26 16:01:29 +00:00
apnadkarni
4e6558b44a
Fix [46dda6fc29] - trace crash caused by TclScanElement
2023-02-26 15:42:37 +00:00
jan.nijtmans
5ffda39949
Move the "srcLen -= srcChunkRead;" past the "if ((result != TCL_CONVERT_NOSPACE)..." (where it originally was), since this isn't needed if the loop ends anyway.
2023-02-26 12:56:18 +00:00
jan.nijtmans
79cbdf745a
(size_t) -1 -> TCL_INDEX_NONE
2023-02-26 12:27:43 +00:00
apnadkarni
deec081e74
Also fix [90ff9b7f73] - writes of exactly 4294967295 bytes
2023-02-26 07:15:06 +00:00
apnadkarni
2fb6b99620
Minor refactor, add tests
2023-02-26 06:26:01 +00:00
apnadkarni
7b0b2ebd37
Fix large writes to file. Need to break into INT_MAX size chunks.
2023-02-25 17:23:42 +00:00
apnadkarni
2a5b403768
Experimental fix for [fb368527ae] - length truncation
2023-02-25 16:29:09 +00:00
apnadkarni
aa2b48262b
Fix and tests for [46dda6fc29]
2023-02-25 09:26:06 +00:00
apnadkarni
a826e66f11
Add tests for Bug [46dda6fc29]
2023-02-25 08:58:31 +00:00
apnadkarni
8390c51fca
Fix [1d074b177a]. Failure to read .tclshrc
2023-02-25 07:35:21 +00:00
apnadkarni
4207c3d5c3
Tests pass modulo couple of differences in Tcl 8 and 9 default behavior to be discussed (tickets logged)
2023-02-25 06:13:21 +00:00
apnadkarni
f0f2ee57f9
Compiles and runs. Tests still to be ported.
2023-02-25 03:03:46 +00:00
apnadkarni
50cafc9f13
Create new branch named "tip-656-tcl9"
2023-02-24 13:37:45 +00:00
apnadkarni
58db3d68eb
Add teststringobj newunicode command to test invalid input to Tcl_NewUnicodeObj
2023-02-24 13:34:15 +00:00
apnadkarni
99a24e7883
Raise error on invalid flags
2023-02-24 10:32:37 +00:00
apnadkarni
76adf3151b
Merge 8.7
2023-02-24 09:57:07 +00:00
apnadkarni
854369a67c
Factor out encoding test vectors into separate file so they can be used for file IO tests
2023-02-24 09:35:09 +00:00
jan.nijtmans
d5e9da898f
Merge 8.7
2023-02-24 08:33:24 +00:00
jan.nijtmans
1c3c25097b
int -> Tcl_Size in tclEncoding.c (making the diff between Tcl 8.7 and 9.0 smaller)
2023-02-24 08:25:27 +00:00
apnadkarni
485bc2fd88
Bug [40c61a5d10]. Fix syntax error message.
2023-02-24 03:35:31 +00:00
apnadkarni
fe5707421f
Merge [bug-dab7fd5973]. Pick up memory leak fix from 8.7. Thanks, Jan
2023-02-24 03:10:16 +00:00
jan.nijtmans
6caf484379
-strictencoding 1 -> -encodingprofile strict (since the testcases placed back in previous commit didn't have that yet)
2023-02-23 21:31:04 +00:00
jan.nijtmans
10c559acbf
Remove left-over traces of [0a74820b6d], which was merged into the apn-encoding-profile and landed into tip-656. This commit was merged premature into core-8-branch, leaving a [dab7fd5973|memory leak]
2023-02-23 21:20:21 +00:00
apnadkarni
186cc71273
Had forgotten to remove disabled code
2023-02-23 13:24:58 +00:00
apnadkarni
da915fdadf
New signature for Tcl_ExternalToUtfDStringEx and Tcl_UtfToExternalDStringEx as per TIP 656
2023-02-23 13:19:45 +00:00
apnadkarni
e469cdf190
Merge 8.7
2023-02-23 11:22:22 +00:00
jan.nijtmans
190f9219d5
Merge 8.7
2023-02-23 11:02:00 +00:00
jan.nijtmans
956059093c
Fix [4bea02e811]: encoding convertfrom -strict ascii \x7f generates exception
...
Many other encodings had the same problem, and also the reverse happened: encodings which should throw an exception with -strict but didn't (within range 0x80-0x9F)
2023-02-23 11:00:48 +00:00
jan.nijtmans
ce349b05df
merge-mark
2023-02-23 10:45:56 +00:00
jan.nijtmans
bf7b1adb89
See [d19fe0a5b] for follow-up to previous commit
2023-02-23 10:44:56 +00:00
apnadkarni
d1920b380d
Fix gcc warnings and encoding error message (bug [40c61a5d10])
2023-02-23 10:22:58 +00:00
jan.nijtmans
9ae7f4dc4f
merge-mark
2023-02-22 20:46:01 +00:00
jan.nijtmans
1d76ffb03b
minor bug-fix in utf-16/utf-32: 2 testcases failed in Tcl 9 compatibility mode (-DTCL_NO_DEPRECATED)
2023-02-22 20:44:13 +00:00
jan.nijtmans
7c6f71019a
Merge 8.7
2023-02-22 20:27:34 +00:00
jan.nijtmans
8f37d5c24e
Merge 8.6
2023-02-22 17:56:42 +00:00
jan.nijtmans
c3e063b0aa
Fix [d19fe0a5b]: Handling incomplete byte sequences for utf-16/utf-32
2023-02-22 17:34:22 +00:00
apnadkarni
320eaab501
Merge 8.7
2023-02-22 15:28:00 +00:00
apnadkarni
2935048126
Add ICU tests for unmapped characters.
2023-02-22 13:42:55 +00:00
jan.nijtmans
12345dfed8
re-generate macDingbats.enc, so it can now throw exceptions for the range 0x8E-0x9F
2023-02-22 13:34:04 +00:00
jan.nijtmans
78db448fff
Make txt2enc smarter, so we don't have to add DELETE any more in all original tables, better keep them as-is.
2023-02-22 13:31:41 +00:00
jan.nijtmans
58f1209a70
Merge 8.7. Adapt more testcases not to depend on the system encoding any more
2023-02-22 13:03:31 +00:00
jan.nijtmans
e106525498
Merge 8.7
2023-02-22 07:48:10 +00:00
jan.nijtmans
f0284298ad
Fix [5607d6482c]: strict ucs-2 never implemented (TIP #346/#656)
2023-02-22 07:28:27 +00:00
jan.nijtmans
03a9d6928d
Merge 8.6
2023-02-22 07:24:42 +00:00
jan.nijtmans
5219c94af5
Fix [534172ff5b]: Crash in DeleteReflectedChannelMap (introduced via tcllib 1.21)
2023-02-22 07:21:15 +00:00
jan.nijtmans
a970bffd00
Add 0x7F: DELETE to more mac* encodings (so re-generating doesn't remove it again)
2023-02-21 23:22:45 +00:00
jan.nijtmans
f95599f4d4
More encoding fixes, e.g. range 0x80-0x9F for dingbats and symbol. Remove "-m" option from txt2enc.c tool, since the same is already handled in the table encoding code in Tcl itself. This was wat prevent Tcl to handle throwing exceptions correctly
2023-02-21 23:16:14 +00:00
jan.nijtmans
c606ae1574
Proposed fix for [d19fe0a5b]: Handling incomplete byte sequences for utf-16/utf-32
2023-02-21 17:50:36 +00:00
apnadkarni
9b8fa27457
Rework ICU tests to check validity of whole charmap in one test, else too many tests.
2023-02-21 17:27:16 +00:00
jan.nijtmans
42956f6f09
Some test-cases start failing in 9.0-compatibility-mode (-DTCL_NO_DEPRECATED), if the system encoding is one with gaps. So, better use iso8859-1 for those testcases
2023-02-21 16:58:13 +00:00
jan.nijtmans
417f868693
Proposed fix for [534172ff5b]: Crash in DeleteReflectedChannelMap (introduced via tcllib 1.21)
2023-02-21 16:09:18 +00:00
apnadkarni
4d644dfb73
Generate test data from ICU UCM data files. SBCS only for now
2023-02-21 16:03:18 +00:00
jan.nijtmans
3315012c95
re-generated 8 more encodings
2023-02-20 21:43:29 +00:00
jan.nijtmans
8660fd1af2
Two more files, re-generated
2023-02-20 20:52:06 +00:00
jan.nijtmans
280034d2ab
Proposed fix for [4bea02e811]: encoding convertfrom -strict ascii \x7f generates exception
2023-02-20 20:41:00 +00:00
apnadkarni
fa9ac8a850
Fix replace profile handling of truncated surrogates
2023-02-20 15:41:15 +00:00
apnadkarni
41af9f9e84
Add UTF16 and UTF32 tests
2023-02-20 15:08:58 +00:00
jan.nijtmans
23d9ca0ec4
Proposed fix for [5607d6482c]: strict ucs-2 never implemented (TIP #346/#656)
2023-02-19 11:41:44 +00:00
apnadkarni
9f595d2fa3
Remove knownBug test constraints now that fix has been merged from core-8-branch
2023-02-19 07:40:29 +00:00
apnadkarni
41c5d1cd91
Minor refactoring/fixes after merge
2023-02-18 17:41:44 +00:00
apnadkarni
933e1c8e0c
Merge 8.7 to pick up UTF-8 encoding fix
2023-02-18 17:34:25 +00:00
apnadkarni
3d2dc70845
Done with invalid utf-8 table
2023-02-18 16:25:57 +00:00
jan.nijtmans
0892c6f37c
Merge 8.7
2023-02-17 19:15:28 +00:00
jan.nijtmans
c731ca1ffd
Fix for [885c86a9a0]: convertfrom utf8 breaks for 4 byte utf encodings
2023-02-17 19:14:42 +00:00
apnadkarni
fdbb12eced
Part way through utf-8 test equivalence classes
2023-02-17 18:59:28 +00:00
apnadkarni
359092510b
Merge 8.7
2023-02-17 11:08:17 +00:00
jan.nijtmans
45796af99d
complete fix
2023-02-16 21:50:53 +00:00
jan.nijtmans
6bcdbfbf84
Merge 8.7
2023-02-16 21:41:49 +00:00
jan.nijtmans
6d674a96a1
Final part of [10c2c17c32]: UTF-LE32 encoder mapping of surrogates. Problem was in testcase, not in actual code
2023-02-16 21:29:07 +00:00
jan.nijtmans
a3f58db271
Merge 8.7
2023-02-16 21:14:24 +00:00
jan.nijtmans
2c3252bc5c
Fix [5e6ae6e05e]: Implement -strict correctly for cesu-8
2023-02-16 21:03:48 +00:00
jan.nijtmans
d790e81db2
Fix [33ab6d08eb]: Inconsistent behavior with encoding convertfrom -failindex
2023-02-16 20:57:47 +00:00
apnadkarni
684cbb8f5c
Bit more work on encoding test framework. Long way to go.
2023-02-16 17:15:35 +00:00
jan.nijtmans
0563a78902
Fix [5e6ae6e05e]: Implement -strict correctly for cesu-8
2023-02-16 16:59:10 +00:00
jan.nijtmans
5053891183
Try to fix [885c86a9a0]. Doesn't work completely yet.
2023-02-16 07:59:09 +00:00
jan.nijtmans
f06c5e7af1
Fix for [33ab6d08eb]: Inconsistent behavior with encoding convertfrom -failindex
2023-02-15 20:26:10 +00:00
apnadkarni
96e60d29b7
Start on expanding encoding tests
2023-02-15 17:27:55 +00:00
jan.nijtmans
7fb1760f42
Merge 8.7. Test-case only
2023-02-15 07:30:03 +00:00
jan.nijtmans
4c2d834fca
Ticket [10c2c17c32] follow-up. One output char too much with -failindex.
2023-02-15 07:21:55 +00:00
apnadkarni
6aed3e7d30
Merge 8.7
2023-02-15 05:24:48 +00:00
jan.nijtmans
fb260e8382
Merge 8.7
2023-02-14 22:06:32 +00:00
jan.nijtmans
5040a69c28
Fix for [bd1a60eb9c]: convertfrom utf-8 strict mode allows surrogates in input sequence
2023-02-14 21:42:01 +00:00
jan.nijtmans
38df355850
Complete fix for [bd1a60eb9c]. Also fix a bug in the tableencoding. With testcases.
2023-02-14 20:50:26 +00:00
apnadkarni
891d60a9ad
Remove obsolete comment
2023-02-14 11:56:49 +00:00
apnadkarni
a750ed2c24
Fix uniqueness parsing fconfigure -encoding / -encodingprofile options
2023-02-14 11:39:35 +00:00
apnadkarni
85320f8fd0
Bug [bd1a60eb9c]. Eliminate TCL_ENCODING_UTF.
2023-02-14 11:37:35 +00:00
jan.nijtmans
2974b57279
Make a start fixing [bd1a60eb9c]. WIP
2023-02-14 07:29:36 +00:00
jan.nijtmans
0c306c8f81
Merge 8.7. Mark (new) testcase encoding-16.15 as "knownBug": still needs a fix.
2023-02-13 10:12:45 +00:00
jan.nijtmans
05f4bc701f
Fix for [10c2c17c32]: UTF-LE32 encoder mapping of surrogates. With testcases (both for utf-32 and utf-16, which had the same bug)
2023-02-13 08:39:29 +00:00
apnadkarni
86d84d444c
Tentative fix for [bd1a60eb9] - surrogates in strict utf-8
2023-02-12 17:34:58 +00:00
apnadkarni
0c764d2b03
Minor fixes and tests
2023-02-12 16:56:17 +00:00
apnadkarni
bf448a6421
Added 'encoding profiles'
2023-02-12 11:04:16 +00:00
apnadkarni
b5095134df
Minor readability changes
2023-02-12 06:15:59 +00:00
jan.nijtmans
bfaa709c2e
Merge 8.7
2023-02-12 01:00:58 +00:00
jan.nijtmans
3954b7c2a3
Proposed fix (and testcases) for [4a7397e0b3]: Tcl 9: fcopy with -strictencoding 1 UTF-8 channels
2023-02-12 00:49:22 +00:00
apnadkarni
727887b6dc
Partial implementation of replace profile
2023-02-11 17:38:07 +00:00
apnadkarni
c2f0e2f8da
Eliminate TCL_ENCODING_{STRICT,NOCOMPLAIN}
2023-02-11 01:51:32 +00:00
jan.nijtmans
bab9170bdc
Proposed fix (and testcases) for [4a7397e0b3]: Tcl 9: fcopy with -strictencoding 1 UTF-8 channels
2023-02-10 20:22:07 +00:00
apnadkarni
e26214c287
Phase out (almost) STRICT and NOCOMPLAIN flags.
2023-02-10 17:07:12 +00:00
jan.nijtmans
fd83fb931e
Add 4 more testcases, showing that the same bug is present in utf-16 as well. Also fix the bug (really, now!)
2023-02-09 19:52:00 +00:00
apnadkarni
9d1ba01f11
Modify encoding C API to use profiles (in progress)
2023-02-09 17:04:33 +00:00
apnadkarni
d46a244159
Add equivalent tests from ff630bf370
2023-02-09 17:03:31 +00:00
jan.nijtmans
b185a55c3b
Add 4 testcases, showing that the bug fix introduces another (minor) problem. To be fixed soon
2023-02-09 07:55:29 +00:00
apnadkarni
4294befd8b
Do not have -failindex imply -strict
2023-02-09 07:27:43 +00:00
apnadkarni
d04dfba748
Merge bug-10c2c17c32
2023-02-09 06:56:39 +00:00
apnadkarni
615082f1fa
Merge core-8-branch
2023-02-07 17:10:07 +00:00
apnadkarni
b741dab392
Fix tcltest to not exit on encoding errors when printing to stdout
2023-02-07 11:25:22 +00:00
apnadkarni
e0ee29b9b6
Refactor encoding tests for broader coverage and easier test case management
2023-02-07 11:23:52 +00:00
apnadkarni
694ae19131
Fix call to EncodingConvertParseOption for decoding
2023-02-07 11:22:08 +00:00
jan.nijtmans
f5f5ff4257
Proposed fix for [10c2c17c32]: UTF-LE32 encoder mapping of surrogates. TODO: testcase
2023-02-06 22:43:30 +00:00
pooryorick
597d3b9e7b
Fix for [b8f575aa2398b0e4] and [154ed7ce564a7b4c], double-[read]/[gets]
...
problem. Partial-read functionality commented out.
2023-02-04 14:10:40 +00:00
pooryorick
f238eb1dbc
Fix test io-75.14.
2023-02-04 00:28:12 +00:00
pooryorick
4b5b655e61
Fix for [b8f575aa2398b0e4] and [154ed7ce564a7b4c], double-[read]/[gets]
...
problem. Partial-read functionality commented out.
jn: First, see broken build [https://github.com/tcltk/tcl/actions/runs/4082362246/jobs/7036637005 |here]. Second: Moving this to core-8-branch is getting TIP #653 into 8.7 without being voted upon. It's simply not ready.
pooryorick: That second statement is false. The parts of this fix that implement TIP #653 are specifically commented out.
2023-02-03 22:15:25 +00:00
pooryorick
52fc9a970c
Fix for [b8f575aa2398b0e4] and [154ed7ce564a7b4c], double-[read]/[gets]
...
problem. Partial-read functionality commented out.
2023-02-02 22:51:26 +00:00
apnadkarni
100d8ce724
Update tests to use -encodingprofile
2023-02-02 16:43:12 +00:00
apnadkarni
e31133e3b0
Change encoding error options to fconfigure to encoding profiles
2023-02-02 15:37:21 +00:00
apnadkarni
26e89b4b3c
Use common option parsing for ConvertfromObjCmd. Fix test error messages.
2023-02-02 12:23:37 +00:00
apnadkarni
637e7224c9
Replace encoding -strict etc. with -profile
2023-02-02 11:52:31 +00:00
jan.nijtmans
c529405c65
Merge 8.7
2023-02-02 07:17:06 +00:00
jan.nijtmans
de0a637d7c
Fix documentation on "encoding" command
2023-02-02 07:12:34 +00:00
jan.nijtmans
536651d954
Merge 8.7
2023-02-01 23:02:16 +00:00
jan.nijtmans
b9c893dbc9
Renumber testscase, sync with Tcl 9.0
2023-02-01 21:01:51 +00:00
jan.nijtmans
6b6d121149
merge-mark
2023-02-01 08:13:06 +00:00
jan.nijtmans
3eaad4bbc9
(cherry-pick) Make Tcl_UniCharToUtf more readable and add test to exercise surrogate handling. (test-case was still missing, which cannot be used in Tcl 8.6)
2023-02-01 08:10:12 +00:00
jan.nijtmans
44dd5d86bc
merge-mark
2023-02-01 07:33:13 +00:00
jan.nijtmans
537c8e77ba
(cherry-pick) Make Tcl_UniCharToUtf more readable and add test to exercise surrogate handling.
2023-02-01 07:32:14 +00:00
jan.nijtmans
5866ef6d2a
(Cherry-pick) Make Tcl_UniCharToUtf more readable.
2023-02-01 07:29:48 +00:00
pooryorick
f365be7f4d
Merge trunk.
2023-02-01 00:34:50 +00:00
pooryorick
0184ebda4f
Make Tcl_UniCharToUtf more readable and add test to exercise surrogate
...
handling.
2023-01-31 23:04:56 +00:00
pooryorick
078a694834
Fix error introduced in [3e5e37f83b058f3d] for Tcl_UniCharToUtf, and add test.
2023-01-31 22:15:02 +00:00
jan.nijtmans
e5272c9be6
Remove incorrect comment. See: [ https://www.magicsplat.com/tcl9/tcl9unicode.html#surrogates-as-literals ]. Thanks, Ashok, for noticing this!
2023-01-31 17:34:05 +00:00
jan.nijtmans
596e33bb9e
Remove incorrect comment. See: [ https://www.magicsplat.com/tcl9/tcl9unicode.html#surrogates-as-literals ]. Thanks, Ashok, for noticing this!
2023-01-31 17:30:59 +00:00
jan.nijtmans
081c085c0f
merge-mark
2023-01-31 08:14:00 +00:00
jan.nijtmans
64e3a23bfd
SetFlag -> GotFlag (since SetFlag always returns 1, this is nonsence in an if() statement). Also add test-case, showing that it was actually wrong, in behavior too.
2023-01-31 07:49:16 +00:00
pooryorick
0219b700b1
Update code comments for Tcl_UniCharToUtf().
2023-01-30 19:37:35 +00:00
pooryorick
a70ce8697c
Make Tcl_UniCharToUtf() more readable.
2023-01-30 19:14:05 +00:00
pooryorick
7a5be2cdbd
A branch of Tcl that does not look backwards.
2023-01-30 19:11:18 +00:00
dgp
58446472bb
merge 8.7
2023-01-30 15:57:39 +00:00
dgp
d3dae9eba4
silence compiler warning
2023-01-30 15:37:41 +00:00
pooryorick
8c0f76a7de
A few more readability changes to Tcl_UniCharToUtf()
...
jn: Please, don't do that here. Tcl_UniCharToUtf() is shared between 8.6, 8.7 and 9.0. So if you want to make it easier to read, it should be done on all 3 branches. I know you only care about "trunk", but it makes maintenance on 8.6/8.7/9.0 harder than it already is. I don't want to spend time on reviewing such kind of changes, and no-one else is doing it. Thanks for understanding (I hope)!
2023-01-30 11:59:41 +00:00
pooryorick
4d235ca93a
Make Tcl_UniCharToUtf() a little easier to read.
2023-01-30 11:22:28 +00:00
jan.nijtmans
5b86b255d4
Another situation where TCL_COMBINE handling gives a strange result (utf-32 encoder)
2023-01-28 20:50:36 +00:00
jan.nijtmans
468b1a4346
Fix "format %c 0x10000041", should give the same answer as in Tcl 8.6 (Handling of TCL_COMBINE flag should not be visible at script level)
2023-01-28 18:50:32 +00:00
pooryorick
7f87f0f8ea
Add some comments and tidy code.
2023-01-27 19:15:09 +00:00
jan.nijtmans
5d13f6b527
Merge 8.7
2023-01-27 15:10:36 +00:00
jan.nijtmans
0318ff75d9
Fix off-by-one error in tclCmdAH.c, with testcases showing that it works now.
2023-01-27 14:48:37 +00:00
jan.nijtmans
06de3a9ba1
new testcase encoding-18.1. Testcase cleanup
2023-01-27 14:23:08 +00:00
jan.nijtmans
d838764849
Update fcopy documentation regarding -size argument
2023-01-27 08:20:57 +00:00
jan.nijtmans
8ea5f2cfce
Update fcopy documentation regarding -size argument
2023-01-27 08:17:34 +00:00
pooryorick
23e46e5885
Merge 8.7
2023-01-27 00:46:36 +00:00
pooryorick
d271c9f407
Fix for [ee08ed090b0a5408], sporadic segmentation fault in
...
coroutine.test/coroutine-7.4.
2023-01-26 23:55:30 +00:00
pooryorick
7426076e0f
Test TableFromUtfProc() with strict handling of encoding errors.
2023-01-25 10:02:27 +00:00
pooryorick
ca4e244cca
Test TableFromUtfProc() with strict handling of encoding errors.
2023-01-25 02:52:24 +00:00
jan.nijtmans
97041036d3
Merge 8.7
2023-01-24 20:05:00 +00:00
jan.nijtmans
1dd572d476
First part of fix for [4a7397e0b3]. Not complete yet.
2023-01-24 20:00:22 +00:00
jan.nijtmans
20ace1aa6c
Merge 9.0
2023-01-24 09:30:00 +00:00
jan.nijtmans
ef42e37c44
Merge-mark. Fix testConstraint utf32 (in tests/string.test)
2023-01-23 20:51:36 +00:00
jan.nijtmans
42b0b497a1
Merge-mark
2023-01-23 20:08:40 +00:00
jan.nijtmans
46dcc60e41
Better error-message for previous commit. Some more code-cleanup, backported from 8.7
2023-01-23 19:18:39 +00:00
jan.nijtmans
c5f7f66ceb
Merge 8.7
2023-01-22 23:35:38 +00:00
jan.nijtmans
b31d886479
Merge-mark
2023-01-22 23:03:09 +00:00
jan.nijtmans
c08798d0f4
Fix [3e8074aea7]: [interp limit time -seconds] has a y2k38 problem
2023-01-22 22:53:36 +00:00
jan.nijtmans
04eb2cc696
Allow "-strict" and "-failindex" to be used together in "encoding convertfrom|convertto". As requested in ticket [a31caff057]
2023-01-22 22:51:41 +00:00
Kevin B Kenny
2b516939bd
Merge 8.7 (Bug [e3dcab1d14])
2023-01-22 02:02:37 +00:00
Kevin B Kenny
47b385e3db
Bug [e3dcab1d14] - merge fix from 8.6
2023-01-22 01:55:54 +00:00
Kevin B Kenny
4ef7c0c4b8
Missed one more off-by-one error, also, tests misnumbered for merge forward.
2023-01-22 01:48:02 +00:00
Kevin B Kenny
119519c4df
Remove unneeded hard-coded array size
2023-01-22 01:37:07 +00:00
Kevin B Kenny
52948a790c
Bug [e3dcab1d14] fix
2023-01-22 01:33:44 +00:00
jan.nijtmans
792c57a7fb
Make documentation conform to implementation in this branch
2023-01-20 20:59:22 +00:00
jan.nijtmans
073e6715d1
Better error-message
2023-01-20 16:51:50 +00:00
jan.nijtmans
c611835152
Proposed fix for [3e8074aea7]: [interp limit time -seconds] has a y2k38 problem
2023-01-19 21:36:05 +00:00
jan.nijtmans
22657ad365
New proposal: Allow "-strict" immediately before or after "-failindex var".
2023-01-19 17:01:40 +00:00
jan.nijtmans
02838226fe
Merge 8.7
2023-01-19 15:50:49 +00:00
jan.nijtmans
1c6b1c9e6c
Merge 8.7
2023-01-19 15:00:07 +00:00
jan.nijtmans
6c8d9886b5
Fix [ https://core.tcl-lang.org/tk/tktview?name=370b1ff03e |370b1ff03e]: Wrong Tk_MeasureChars result when linking with Tcl 9 (--disable-xft only)
...
This turned out to be an error in Tcl 8.7, after all. Since some test-cases depend on the replacement behavior on Tcl 8.6, we need to add "-nocomplainencoding" to make it work in Tcl 9.0.
2023-01-19 14:19:00 +00:00
jan.nijtmans
45bfcbb267
Merge 8.7
2023-01-18 17:06:05 +00:00
jan.nijtmans
c18f5f7f8c
Merge 8.6
2023-01-18 16:54:07 +00:00
jan.nijtmans
31226696c3
Some test-cases need -nocomplainencoding 1, because they use the fallback behavior.
2023-01-18 14:10:09 +00:00
jan.nijtmans
5d50502a29
Forget about TCL_ENCODING_HACK_FLAG, this should be the fix. Testing ...
2023-01-18 13:26:15 +00:00
jan.nijtmans
925f00c5ca
Use TCL_ENCODING_HACK_FLAG in TableFromUtfProc too
2023-01-17 14:15:39 +00:00
jan.nijtmans
5c38cce8df
Merge trunk. Make test-cases pass (again). This might indicate a bug in utf-8 decoder, but that will be handled separately.
2023-01-17 13:42:59 +00:00
jan.nijtmans
6efbc1b278
merge-mark
2023-01-16 23:03:41 +00:00
jan.nijtmans
40b6b98401
Merge 8.7
2023-01-16 13:11:01 +00:00
jan.nijtmans
5021d1c11f
New flag TCL_ENCODING_HACK_FLAG to control the behaviour. (This is NOT the way to do it, but it's only meant for experimenting)
2023-01-16 13:10:07 +00:00
jan.nijtmans
ca87000eac
merge-mark
2023-01-16 10:07:31 +00:00
jan.nijtmans
56bcf3dcbe
Merge 8.7
2023-01-15 20:56:58 +00:00
jan.nijtmans
7faef9ce70
Update documentation, matching current implementation
2023-01-15 19:45:54 +00:00
pooryorick
81262438a7
Fix issue [8f7fdea2d], string-2.20.1 fails on big endian, and also fix issues in TclStringCmp when checkEq is 1.
2023-01-15 19:26:36 +00:00
jan.nijtmans
b9537d1098
Merge 9.0
2023-01-14 23:41:10 +00:00
jan.nijtmans
25f6837582
Same change for "encoding convertto"
2023-01-14 22:57:15 +00:00
jan.nijtmans
5aef206d2d
Proposed fix for [a31caff057]: encoding command does not allow -strict to be used with -failindex
2023-01-14 22:20:53 +00:00
pooryorick
24656c2805
Properly quote contents of Make variables to pass through gdb.run file.
2023-01-14 22:07:21 +00:00
jan.nijtmans
33f4149ee5
Fix for [ https://core.tcl-lang.org/tk/tktview?name=370b1ff03e |370b1ff03e]. Not complete/correct yet, since this backouts the fix for [4dbfa46caa]
2023-01-08 22:47:45 +00:00
pooryorick
805fa175fc
For [read] and [gets] encoding errors, use "-result read" in return options
...
dictionary instead of just "-result".
2023-01-08 10:07:46 +00:00
jan.nijtmans
95e7615fc4
Merge 8.7
2023-01-06 17:35:08 +00:00
jan.nijtmans
ba6fe47daa
Merge 8.6
2023-01-06 17:33:59 +00:00
jan.nijtmans
cf560b3fb9
Fix [0f19edcb78]: Windows 11 not reported in tcl_platform(osVersion)
2023-01-06 17:32:06 +00:00
jan.nijtmans
507af3b425
Merge 8.6
2023-01-06 17:11:20 +00:00
jan.nijtmans
72eb4e4229
Fix [ad393071c2]: Use different LD_LIBRARY_PATH_VAR on macOS
2023-01-06 16:56:14 +00:00
jan.nijtmans
ce9fb3bcfb
Fix [0f19edcb78]: Windows 11 not reported in tcl_platform(osVersion)
2023-01-04 23:21:16 +00:00
pooryorick
985ea00b16
Merge py-b8f575aa23: Fix for [154ed7ce56], Tcl 9: [gets] on -strictencoding 1 configured channel.
2023-01-02 23:12:02 +00:00
jan.nijtmans
8494cde084
Merge 8.7
2023-01-01 23:37:48 +00:00
jan.nijtmans
9ab6f4a7c5
Merge 8.6
2023-01-01 23:36:02 +00:00
jan.nijtmans
7be69be5fe
Fix [8e811bc1f1]: Wrong formatting of arguments in man page
2023-01-01 23:32:10 +00:00
pooryorick
3919b0a0b4
Add test for [gets] in non-strict mode after an encoding error.
2022-12-30 21:53:47 +00:00
pooryorick
63e04b3c2d
New test, io-12.9.strict, for issue report [1bedc53c8cb878f0].
2022-12-30 21:05:56 +00:00
pooryorick
a801c2d474
Fix DoReadChars() to correctly discard encoding errors after eofchar has been seen, and add new test, io-75.8.invalid.
2022-12-30 20:27:47 +00:00
pooryorick
3b45005127
Arrange new code in DoReadChars to ensure that final steps are always taken.
2022-12-29 22:59:10 +00:00
fvogel
23d30205a5
Instead of fiddling with html tags, simply enlarge a bit the width in the CSS stylesheet.
2022-12-29 17:04:43 +00:00
pooryorick
0f0fc59c9f
merge py-b8f575aa23 after updating fix so that all tests pass.
...
jn: let's wait for more review, since test-cases were modified. This is more than only a bug-fix
2022-12-28 22:58:53 +00:00
pooryorick
f2cc84c99a
Update fix so that the two failing tests, iocmd-23.8 and iortrans-4.7 now pass.
2022-12-28 22:46:37 +00:00
fvogel
dbd4edc3d5
Fix [8e811bc1f1]: Wrong formatting of arguments in man page
2022-12-28 20:39:17 +00:00
pooryorick
4a8b2cf10f
A better fix for [b8f575aa23], as it maintains the expectation that synchronous
...
[read] results in an error when invalid data is encountered.
someone other than pooryorick: Pushed this check-in back on to a review branch. It needs more baking/review.
As is, it makes two tests fail, and it introduces a new element "-result" to
the return options dictionary.
2022-12-28 12:07:18 +00:00
jan.nijtmans
a1de562f5c
First part of fix for [4a7397e0b3]: Take flags into account when deciding to do a binary fcopy or not. TODO: Handle generating an exception
2022-12-24 14:36:57 +00:00
jan.nijtmans
ef7bbf24e8
code cleanup (reduce diff with trunk)
2022-12-24 09:11:56 +00:00
jan.nijtmans
4531aa608d
Merge 9.0
2022-12-22 16:17:57 +00:00
jan.nijtmans
6a1c2d8f52
Merge 8.7
2022-12-21 21:43:59 +00:00
jan.nijtmans
ecaf98ffad
Make two more functions static
2022-12-21 21:07:33 +00:00
jan.nijtmans
a01390fa0b
Add 'interp' argument to some arith functions, for better error-handling
2022-12-21 20:43:53 +00:00
jan.nijtmans
1faa0cca77
Merge 8.7
2022-12-21 13:19:16 +00:00
jan.nijtmans
e872538a2e
Tweaks to dde and registry extension, so they "load" without 3th argument in Tcl 8.6 too.
2022-12-21 13:15:54 +00:00
griffin
bc3ff73062
Make as much abstract list implementation as possible internal.
...
Other code cleanup also.
2022-12-21 06:59:38 +00:00
jan.nijtmans
a3f8bc6993
Merge 9.0. Now really make dist tests working (again) on Windows/gcc
2022-12-20 10:58:06 +00:00
jan.nijtmans
7561bdb176
Merge 8.7
2022-12-20 09:42:26 +00:00
jan.nijtmans
ac4faee232
Fix [17a1cb8d6e2a51bd]. From now on, noncharacters are no longer rejected in -strict mode
2022-12-20 09:32:22 +00:00
jan.nijtmans
bc7cadbfec
Merge 9.0. Make dist tests working (again) on Windows/gcc
2022-12-20 07:24:42 +00:00
jan.nijtmans
af98d8fa20
Remove all checks for noncharacters
2022-12-19 22:19:59 +00:00
jan.nijtmans
d61473e631
Merge 8.7
2022-12-19 15:44:27 +00:00
jan.nijtmans
5db223f8ec
Add two testcases, showing how we can distinguish Invalid Byte sequences, Surrogates, and Noncharacters when an exception occurred.
2022-12-19 15:43:22 +00:00
jan.nijtmans
9dabd6f1ac
When changing the -nocomplainencoding or -strictencoding settings of a channel, reset the CHANNEL_NEED_MORE_DATA and CHANNEL_ENCODING_ERROR flags, so we can continue reading the channel and find out what's going on.
2022-12-19 15:40:40 +00:00
jan.nijtmans
ab239a3b1f
Merge 9.0
2022-12-18 21:38:14 +00:00
jan.nijtmans
002511bea4
MODULE_SCOPE TclLengthOne (in stead of 2 separate static functions doing the same)
2022-12-18 18:08:38 +00:00
jan.nijtmans
7157c6b878
Reserve a place in abstractlist for an additional function
2022-12-18 10:05:40 +00:00
jan.nijtmans
0cdcbf3481
Merge 9.0
2022-12-18 09:10:25 +00:00
jan.nijtmans
8b3ccee931
Merge 8.7
2022-12-16 15:31:52 +00:00
jan.nijtmans
553147da53
Merge 8.6
2022-12-16 15:31:02 +00:00
jan.nijtmans
c05419204a
Update tclConfig.h.in
2022-12-16 15:26:40 +00:00
jan.nijtmans
42eb37a48c
Merge 8.7
2022-12-16 15:19:30 +00:00
jan.nijtmans
b82707b4a1
Merge 8.6
2022-12-16 15:18:19 +00:00
jan.nijtmans
2031d40f81
Add checks to the configure script for mknod, tcdrain and uname, for systems (like VxWorks) which don't have it. See [aa4d088e5d]
2022-12-16 15:16:56 +00:00
jan.nijtmans
d748e3debf
merge-mark
2022-12-16 12:19:52 +00:00
jan.nijtmans
0846deb770
merge-mark
2022-12-16 12:19:02 +00:00
jan.nijtmans
f632ecb406
Now that 32-bit cygwin is dead, eliminate the need for --enable-64bit in a Cygwin build
2022-12-16 12:16:54 +00:00
jan.nijtmans
5d7537b823
Merge 8.7
2022-12-16 10:25:02 +00:00
jan.nijtmans
fd98096770
Addendum to [ https://core.tcl-lang.org/tips/doc/trunk/tip/601.md |TIP #601 ]. Add check for characters > U+10FFFF in utf-32. Since utf-8 cannot handle that, either replace it with the replacement character (-nocomplain) or throw an exception (-strict).
2022-12-16 10:23:56 +00:00
jan.nijtmans
4cca4b0b1c
Merge 8.7
2022-12-16 09:50:33 +00:00
jan.nijtmans
edee881fb2
Follow-up for [084ab982fe]: Use -strict to disable noncharacters. This change was only done for utf-8, but the same change should be done for utf-16 and utf-32 too
2022-12-16 09:40:03 +00:00
jan.nijtmans
d762cb9331
Merge 8.7
2022-12-16 09:28:11 +00:00
jan.nijtmans
a06b13bb4a
Merge 8.7
2022-12-16 09:27:14 +00:00
jan.nijtmans
c78879e707
Adapt iocmd-8.* testcases to change in previous commit
2022-12-16 09:25:54 +00:00
jan.nijtmans
94c928a859
Add testcase
2022-12-16 08:15:02 +00:00
jan.nijtmans
9faf91402b
Make -strict work the same for UTF-16 as for UTF-8
2022-12-15 23:59:48 +00:00
jan.nijtmans
10775523d9
Merge 8.7
2022-12-15 14:39:26 +00:00
jan.nijtmans
7b36aa11b6
Fix Tcl_BadChannelOption(), new -nocomplainencoding and -strictencoding options were still missing (reported by Rolf Ade, thanks!)
2022-12-15 14:38:24 +00:00
jan.nijtmans
532559323e
Merge 8.7
2022-12-13 07:44:12 +00:00
jan.nijtmans
2e1db6850f
Clarify what "-strict" means for the utf-8 encoder, making it clear that this is not the same as "strict" in python
2022-12-13 07:42:17 +00:00
apnadkarni
d9baa9e3de
Merge 8.7 - change copyright in Windows build to UCal.
2022-12-12 06:11:22 +00:00
apnadkarni
53b2a5fdf9
Merge 8.6 - change copyright in Windows build to UCal.
2022-12-12 06:09:50 +00:00
apnadkarni
89be5d2d3d
Change copyright in Windows rc from Activestate to UCal and others to match license.
2022-12-12 06:08:21 +00:00
jan.nijtmans
3251fdbab4
Merge 8.7
2022-12-11 18:16:16 +00:00
jan.nijtmans
196f704d08
More io test-cases. Mostly backported (and modified) from 9.0
2022-12-11 17:57:55 +00:00
jan.nijtmans
3b293d276c
Merge 8.7
2022-12-09 23:27:19 +00:00
jan.nijtmans
4aa0db664d
Fix [b8f575aa23]: eof erroneously flagged with not reported encoding read error
2022-12-09 23:23:24 +00:00
jan.nijtmans
b81e0a5459
Merge 8.7. Adapt testcase, showing that after an encoding error we can change encoding and continue reading
2022-12-09 22:27:50 +00:00
jan.nijtmans
4f69a6f297
Fix compilation with tcc. Thanks, Cyan Ogilvie for the report
2022-12-09 19:55:38 +00:00
jan.nijtmans
ae31cee4ae
Add 2 unit-tests, for the 2 cornercases mentioned in the TIP. This shows that the fix works as expected
2022-12-09 14:53:25 +00:00
jan.nijtmans
768fa22c43
Partial solution for [b8f575aa23]. Still missing: 1) testcases. 2) What if both EOF and ENCODING_ERROR happens (because there is both an eofchar and an invalid byte in the stream)
2022-12-09 10:22:11 +00:00
jan.nijtmans
1a21edb592
Eliminate TclArithSeriesObjLength and TclArithSeriesObjStep from tclArithSeries.h: they can be static internal.
2022-12-08 17:17:48 +00:00
jan.nijtmans
9006753369
Merge 9.0. Fix testcases
2022-12-08 14:24:20 +00:00
griffin
6b52bc1a64
Add 'getdouble' function to ObjType, used for abstractlist types. -- Experimental
2022-12-07 23:56:10 +00:00
jan.nijtmans
62c5b0bfb7
Merge 8.7
2022-12-05 23:49:03 +00:00
jan.nijtmans
a58f5f14b0
Merge 8.6
2022-12-05 23:31:44 +00:00
jan.nijtmans
7b53037339
dev_t -> unsigned for Cygwin in tcl.h, so we don't need sys/types.h any more. There's no gap in Tcl_StatBuf for 64-bit Cygwin
2022-12-05 23:05:25 +00:00
jan.nijtmans
b8c736d82c
Merge 8.7
2022-12-05 15:42:06 +00:00
jan.nijtmans
d8d1a902ef
There's no gap on Cygwin any more
2022-12-05 15:39:50 +00:00
jan.nijtmans
ba427c0bc2
Merge 8.7
2022-12-05 15:35:05 +00:00
jan.nijtmans
b1af92a6e9
On Cygwin, dev_t == unsigned, and long long == long
2022-12-05 15:33:57 +00:00
jan.nijtmans
b58aa65f02
Merge 8.7
2022-12-05 13:11:31 +00:00
jan.nijtmans
f029161eb7
Eliminate (gcc) warning in tclTest.c
2022-12-05 13:10:20 +00:00
jan.nijtmans
635dd1a696
Fix utf32 lables in testcases (some not necessary any more, one missing), indicating differences between Tcl 8.x and 9.0
2022-12-02 11:27:10 +00:00
jan.nijtmans
25b3cffdd2
Oops, that's the wrong one ...
2022-12-02 08:35:05 +00:00
jan.nijtmans
ae11579286
Make options -nocomplain and -strictencoding truly independant. Leftover from initial implementation. Noted by Rolf Ade (thanks!)
2022-12-02 08:19:36 +00:00
jan.nijtmans
975b7c5dcb
Merge 8.7
2022-12-01 17:36:04 +00:00
jan.nijtmans
ef8a00717e
Merge 8.6
2022-12-01 17:33:29 +00:00
jan.nijtmans
b3838ea445
Backport TIP #402 : General Platform UNC Support from 8.7, but only for Cygwin and QNX. This was already partially present, but was never completed.
2022-12-01 17:27:03 +00:00
jan.nijtmans
3836fc2905
Code cleanup (undo some unnecessary changed compared to trunk)
2022-12-01 15:57:20 +00:00
jan.nijtmans
01f2b842e8
Merge 9.0. Fix Windows build (testcases need tcl::test package). Modify TCL_OBJTYPE_V1() macro, so it checks for the number of arguments
2022-12-01 15:16:37 +00:00
jan.nijtmans
36c94773b4
Handle "deprecated" condition correctly in test-cases
2022-12-01 10:18:35 +00:00
griffin
b22a59093e
Fix bug with slice (range) operation
2022-12-01 02:10:32 +00:00
jan.nijtmans
f101fd4d8b
Merge 9.0. Rename TclObjTypeHasProc to ABSTRACTLIST_PROC
2022-11-30 22:05:52 +00:00
jan.nijtmans
fdb4ca1567
Merge 8.7
2022-11-30 21:46:57 +00:00
jan.nijtmans
6c7ad3b118
Let Tcl_GetEncodingNulLength() return size_t on 9.0, for consisancy with other API's. No change on 8.7
2022-11-30 21:16:15 +00:00
jan.nijtmans
bacd42baab
Merge 9.0
2022-11-30 11:13:47 +00:00
jan.nijtmans
4d23589861
Merge 8.7. This also fixes [133456085a]
2022-11-30 11:11:28 +00:00
jan.nijtmans
a7d6b92abf
Fix for [084ab982fe]: Use -strict to disable noncharacte
2022-11-30 10:48:40 +00:00
jan.nijtmans
4a8099f371
Merge 9.0 (but without the "llength" optimization)
2022-11-30 10:46:57 +00:00
jan.nijtmans
5cb9dc5ddc
Stop shimmering for "llength". Internal optimization (but using TIP #644 )
2022-11-30 10:36:06 +00:00
jan.nijtmans
c157333a7d
Merge 8.7
2022-11-30 08:16:52 +00:00
jan.nijtmans
f9ded1a928
Merge 8.7
2022-11-30 08:15:59 +00:00
jan.nijtmans
99e3536c5d
Update to tzdata 2022g
2022-11-30 08:14:36 +00:00
jan.nijtmans
521b3bfb0e
Update to tzdata 2022g
2022-11-30 08:12:16 +00:00
jan.nijtmans
111352203a
merge-mark
2022-11-29 20:59:36 +00:00
jan.nijtmans
a744c509d4
Remove ARGSUSED. More type-casts
2022-11-29 20:54:20 +00:00
jan.nijtmans
e648065fe1
Merge 8.7
2022-11-29 16:07:45 +00:00
jan.nijtmans
6d6996d99f
make Windows dde (-> 1.4.5) and registry (-> 1.3.7) extensions ready for the Tcl 9.0 era.
2022-11-29 16:05:33 +00:00
jan.nijtmans
4813d492ca
Proposed fix for [084ab982fe]: Use -strict to disable noncharacters
2022-11-29 14:51:03 +00:00
jan.nijtmans
5f45d1454b
Merge 9.0
2022-11-29 10:38:49 +00:00
jan.nijtmans
426dd171f6
Merge 8.7
2022-11-29 10:35:23 +00:00
jan.nijtmans
11af978f51
Merge 8.6
2022-11-29 10:33:42 +00:00
jan.nijtmans
cdb467ed61
Update all "8.5" versions in Tcl_InitStubs() to "8.5-", since they can be compiled for Tcl 9.0 as well.
2022-11-29 10:30:41 +00:00
jan.nijtmans
b1ee845c02
Merge 9.0
2022-11-29 09:53:43 +00:00
jan.nijtmans
8b03ef0b29
Merge 8.7
2022-11-28 23:44:33 +00:00
jan.nijtmans
71b0ad990c
Reduce shimmering: If a conclusion can be drawn about the number of list elements, don't get the elements before the list length is checked
2022-11-28 23:16:31 +00:00
jan.nijtmans
64383b33bd
Simplify TclObjTypeHasProc() (a lot!)
2022-11-28 21:45:49 +00:00
jan.nijtmans
2aa92d31a0
Merge 9.0
2022-11-28 16:13:34 +00:00
jan.nijtmans
dabfa1a053
Merge 9.0. New macro ABSTRACTLIST_PROC
2022-11-28 15:58:49 +00:00
jan.nijtmans
8f6442b0c9
Merge 8.7
2022-11-28 15:08:04 +00:00
jan.nijtmans
da196c3345
No reservation for TIP #648 any more in stub table.
2022-11-28 12:58:18 +00:00
jan.nijtmans
85f19595dc
Merge 8.7
2022-11-28 12:34:28 +00:00
jan.nijtmans
18f90309e4
Use Tcl_Size for ArithSeries.len
2022-11-28 12:06:41 +00:00
jan.nijtmans
82fb7b1d55
size_t result for lengthProc. More usage of Tcl_GetWideUIntFromObj
2022-11-27 23:37:32 +00:00
jan.nijtmans
513b2d5031
HAS_ABSTRACTLIST_PROC
2022-11-26 23:57:26 +00:00
jan.nijtmans
bfe8928bed
Merge 9.0
2022-11-25 23:38:50 +00:00
jan.nijtmans
ba490472b5
Remove "knownBug" constraint: no longer necessary
2022-11-25 22:40:47 +00:00
jan.nijtmans
d0d0e3642f
Merge 8.7
2022-11-25 22:08:19 +00:00
jan.nijtmans
bc23abb929
(partial) fix for [6978c01b65]
2022-11-25 22:00:10 +00:00
jan.nijtmans
481aa42029
Merge 8.7
2022-11-25 16:26:04 +00:00
jan.nijtmans
b816a585c0
Tcl_NewDoubleObj -> TclNewDoubleObj and Tcl_NewWideIntObj -> TclNewIntObj (and similar). Gives more info when debugging
2022-11-25 16:11:38 +00:00
jan.nijtmans
7bf0253a43
Merge 9.0
2022-11-25 10:16:35 +00:00
jan.nijtmans
feee6ec002
Merge 9.0
2022-11-25 10:14:57 +00:00
jan.nijtmans
73116e2c54
one more int -> size_t
2022-11-25 10:12:32 +00:00
jan.nijtmans
66e2117d20
Unbreak Windows build. More int -> size_t, being able to handle longer strings
2022-11-25 10:01:00 +00:00
jan.nijtmans
0bc6d7d341
merge-mark
2022-11-25 08:32:31 +00:00
jan.nijtmans
d6fedf7854
Document some more differences between Tcl 8.7 and 9.0 in tcl.h
2022-11-25 08:31:21 +00:00
jan.nijtmans
191fa0458a
Handle closeProc == NULL the same as closeProc == TCL_CLOSE2PROC in stead of panicing. Backported from 8.7 (undocumented feature)
2022-11-25 08:29:06 +00:00
jan.nijtmans
b22f30259b
TCL_OBJTYPE_V0_INIT -> TCL_OBJTYPE_V0 (See TIP #644 ). Remove Tcl_SavedResult (See TIP #640 )
2022-11-24 21:48:42 +00:00
jan.nijtmans
21920649b5
Move Tcl_Size definition earlier in tcl.h
2022-11-24 21:04:48 +00:00
griffin
85ff1f33c9
Sync with trunk
2022-11-24 20:31:05 +00:00
jan.nijtmans
9faff5cc94
Merge 8.7
2022-11-24 17:44:02 +00:00
jan.nijtmans
a4ac44fccc
Fix gcc warning, seen on Ubuntu with select notifier
2022-11-24 17:43:12 +00:00
jan.nijtmans
3795a0f7dc
Merge 8.7
2022-11-24 17:41:44 +00:00
jan.nijtmans
ec4cf7a995
Use some more TCL_INDEX_NONE and Tcl_Size
2022-11-24 16:16:53 +00:00
jan.nijtmans
ddf4a5f158
Use Tcl_GetByteArrayFromObj(... in stead of Tcl_GetBytesFromObj(NULL,.... Add some more error-checking for invalid byte-arrays
2022-11-24 14:05:58 +00:00
jan.nijtmans
2a569c94ef
Since Tcl 9.0 throws exceptions on an illegal byte sequence (no longer simply truncates it), adapt test-case for that
2022-11-24 10:17:51 +00:00
griffin
a4e76a1c02
Sync with trunk
2022-11-24 03:32:46 +00:00
griffin
7b6d022905
Support multiple indicies in abstract list lindex operation.
...
Catch up with trunk.
2022-11-24 01:18:36 +00:00
jan.nijtmans
6932d0c2d0
Fix [da63e4c1e]: Crash in Tcl_WriteChars(). Make everything compile (again) with a C++ compiler.
2022-11-23 21:03:13 +00:00
jan.nijtmans
9c802c440b
Writing characters > \xFF to a binary channel is deprecated, this will start throwing an exception in Tcl 9.0
2022-11-23 20:42:38 +00:00
jan.nijtmans
e4f687d978
-1 -> TCL_INDEX_NONE
2022-11-23 20:41:34 +00:00
jan.nijtmans
826db93d76
Internal abstract list, don't let "llength" shimmer any more.
2022-11-23 17:04:18 +00:00
jan.nijtmans
d8dac38437
Proposed fix for [da63e4c1e]. First version, not 100% as expected yet.
2022-11-23 15:21:29 +00:00
jan.nijtmans
b432766202
Make "read" throwing a "illegal byte sequence" exception. Doesn't work for "gets" yet.
2022-11-23 12:15:24 +00:00
jan.nijtmans
52aada907a
Merge 8.7
2022-11-23 09:26:06 +00:00
jan.nijtmans
5b4f454e1c
Change assert, since the new flag CHANNEL_ENCODING_ERROR could be set as well
2022-11-23 09:24:06 +00:00
jan.nijtmans
42dae31b61
merge-mark
2022-11-23 07:43:17 +00:00
jan.nijtmans
86f51a0a0b
Add mp_pack, mp_pack_count and mp_unpack to the libtommath stub table. Not used by Tcl, but can be used by extensions (backported from 8.7)
2022-11-23 07:38:49 +00:00
jan.nijtmans
7129a50b10
Re-generate configure scripts (with correct autoconf version)
2022-11-23 07:36:49 +00:00
jan.nijtmans
e57b9fe9c3
Merge 8.7
2022-11-23 00:34:36 +00:00
jan.nijtmans
13eb211d5a
leave unixInit-3.2 as-is
2022-11-23 00:19:46 +00:00
jan.nijtmans
e37308d78c
Merge 8.7
2022-11-23 00:09:05 +00:00
jan.nijtmans
b5e5883c33
Progress in fixing [6978c01b65]. Not complete yet
2022-11-22 23:58:31 +00:00
dgp
096106f202
merge 8.7
2022-11-22 23:26:44 +00:00
dgp
ff294480b9
merge 8.6
2022-11-22 23:25:57 +00:00
dgp
02892b17b9
merge release
2022-11-22 22:48:05 +00:00
jan.nijtmans
d942525e22
Better -strict checking, with testcases
2022-11-22 22:25:46 +00:00
jan.nijtmans
976fff1b3a
merge-mark
2022-11-22 20:12:49 +00:00
jan.nijtmans
95cac7dd26
Merge 8.5
2022-11-22 20:11:58 +00:00
jan.nijtmans
eddb2b2801
Unused stub entries up to Tcl_DStringToObj() (for Tcl 8.7/9.0)
2022-11-22 20:08:07 +00:00
jan.nijtmans
ef78b1558f
Merge 8.7
2022-11-21 23:54:42 +00:00
jan.nijtmans
c1e4942181
TIP #650 : New function Tcl_GetWideUIntFromObj()
2022-11-21 23:54:06 +00:00
jan.nijtmans
b1432e6e0d
Mark unixInit-3.2 as "knownBug". See [fccb9f322f]
2022-11-21 23:52:36 +00:00
jan.nijtmans
948fd24ddb
Remove TCL_OUT_LINE_COMPILE in favour of TCL_ERROR
2022-11-21 23:28:57 +00:00
jan.nijtmans
0fd21c5dd0
TCL_OUT_LINE_COMPILE is deprecated
2022-11-21 23:22:03 +00:00
jan.nijtmans
8a4e71640b
Merge 8.7. More utf-8 checks with --strict
2022-11-21 22:01:54 +00:00
dgp
338c669267
improve accuracy of a changes line
2022-11-21 17:37:38 +00:00
jan.nijtmans
654f4d3b58
Merge 8.7
2022-11-21 16:20:09 +00:00
jan.nijtmans
23ef10a6a4
There is no guarantee that sizeof(Tcl_WideInt) == sizeof(double), so the offset of 'isDouble' in the struct could vary between ArithSeries and ArithSeriesDbl. Solution: put those fields last
2022-11-21 16:18:56 +00:00
jan.nijtmans
91e64fb475
indenting
2022-11-20 23:27:09 +00:00
jan.nijtmans
e9cf2c8707
Merge 8.7
2022-11-20 23:22:26 +00:00
dgp
e82a18be40
merge 8.7
2022-11-20 22:37:42 +00:00
dgp
49cb764a5a
In most testing scenarios, the TCL_LIBRARY variable is masking a bug
...
in system encoding discovery. Adapted test unixInit-3.2 to stop shielding
this problem from view.
2022-11-20 22:08:19 +00:00
dgp
8f9ddfae66
missing constraints
2022-11-20 21:39:43 +00:00
jan.nijtmans
a53281f50b
Rebase to latest 8.7
2022-11-20 20:14:07 +00:00
jan.nijtmans
2ba1a5f081
merge-mark
2022-11-20 19:35:01 +00:00
jan.nijtmans
bfdd211de9
Don't use "package require tcltests" any more, as in other tests
2022-11-20 19:33:00 +00:00
jan.nijtmans
b71ebc2746
Constraints http2.9.x make no sense, when testing http2.10
2022-11-20 19:29:53 +00:00
dgp
f39cef2590
close fork
2022-11-20 19:18:51 +00:00
dgp
4e1d89f819
merge 8.6
2022-11-20 19:10:17 +00:00
jan.nijtmans
a1a443ef1d
Merge 8.7
2022-11-20 17:51:42 +00:00
jan.nijtmans
66386bc18b
Merge 8.6. TIP #651 implementation (since there are already 2 YES votes, no NO votes expected)
2022-11-20 17:38:12 +00:00
dgp
0666836834
bump release date
2022-11-20 15:34:08 +00:00
dgp
0c93e6a978
merge 8.6
2022-11-20 14:22:33 +00:00
dgp
124340611e
Newest tests must have most recent releases of http to pass.
2022-11-20 14:16:36 +00:00
jan.nijtmans
43d67c651c
Merge 8.7
2022-11-19 16:22:24 +00:00
jan.nijtmans
797aa89a30
Merge 8.7
2022-11-19 16:12:56 +00:00
jan.nijtmans
90d13253bd
Revert [52a52a65f0]. There appears to be a problem with the mp_pack function on Windows
2022-11-19 16:07:51 +00:00
jan.nijtmans
1c1ee1c59d
Backout [52a52a65f0], let's see if this fixes the Windows crash
2022-11-18 21:43:40 +00:00
jan.nijtmans
0bcca87681
Backout [52a52a65f0], let's see if this fixes the Windows crash
2022-11-18 20:26:52 +00:00
jan.nijtmans
4245f0e5a3
merge-mark
2022-11-18 19:54:45 +00:00
jan.nijtmans
90a23f176d
Fix [ https://core.tcl-lang.org/thread/tktview?name=16bf24d70b |16bf24d70b]: Installed Thread for Tcl 8.7 breaks availability of Thread in 8.6
2022-11-18 19:43:09 +00:00
jan.nijtmans
2e64df7857
Merge 8.7
2022-11-18 19:18:12 +00:00
jan.nijtmans
78bce4ec93
Fix [bec4219123]: test utf-4.12 fails in custom builds
2022-11-18 19:17:32 +00:00
dgp
10a5b6e4c7
merge 8.6
2022-11-18 18:30:56 +00:00
dgp
3e4ac217aa
Bring back the common facilities of the tcltests "package", but use a less
...
fragile method to gain access to them.
2022-11-18 17:53:54 +00:00
jan.nijtmans
ae54d4dd89
Another bug in TIP #628 : dde and registry extensions didn't really load in tclsh8.7. One reason: handle TclpReaddir correctly in tcl8 compatibility mode
2022-11-18 16:24:27 +00:00
dgp
2eebbe64ab
merge 8.6
2022-11-18 15:30:50 +00:00
jan.nijtmans
a65db858ff
Fix bug in TIP #628 : Tcl 8.x version of registry/dde dll was not correct
2022-11-18 15:24:44 +00:00
jan.nijtmans
dc6366fef8
TIP #644 : Make Tcl_ObjType extensible
2022-11-17 20:29:59 +00:00
jan.nijtmans
b669079dd6
Add dummy TCL_OBJTYPE_V0 #define. Minimal no-op backport of TIP #644
2022-11-17 20:24:20 +00:00
jan.nijtmans
0824522016
Merge 8.7
2022-11-17 11:20:03 +00:00
jan.nijtmans
8b9fe0fa53
doc update
2022-11-17 11:18:51 +00:00
apnadkarni
e0becc6161
TIP 651 implementation
2022-11-17 04:54:02 +00:00
apnadkarni
2a62e1f0dd
Merge 8.7 - reserve stub entry 687
2022-11-17 03:54:14 +00:00
apnadkarni
00c7d174e4
Reserve stub entry 687 for TIP #651
2022-11-17 03:52:45 +00:00
jan.nijtmans
197060f097
one more (Tcl_UniCharToUtf), and adapt documentation
2022-11-16 20:52:30 +00:00
jan.nijtmans
f9c4e3a8b2
Change 5 functions signatures from int -> size_t. Those should have been part of TIP #494 (Thanks, Gustaf!)
2022-11-16 20:39:34 +00:00
jan.nijtmans
640c0098d1
Merge 8.7
2022-11-16 09:43:42 +00:00
jan.nijtmans
c432e303c0
http 2.10a4 -> 2.10b1, for upcoming release
2022-11-16 09:37:42 +00:00
jan.nijtmans
a6680c4b9f
Merge 8.7
2022-11-15 22:15:47 +00:00
jan.nijtmans
bc7b50deb0
Make httpd11.tcl work with Tcl 8.6 too
2022-11-15 22:09:09 +00:00
jan.nijtmans
b3caf035b4
Merge 8.7
2022-11-15 14:39:11 +00:00
jan.nijtmans
5f892535a1
Merge 8.7
2022-11-15 14:36:58 +00:00
jan.nijtmans
9d2a40a826
Reserve stub entries 684/685 for TIP #648 and 686 for TIP #650
2022-11-15 14:36:01 +00:00
jan.nijtmans
d13a3cd502
New function Tcl_GetWideUIntFromObj
2022-11-15 14:03:34 +00:00
jan.nijtmans
1412e9b9f0
Merge 8.7
2022-11-15 13:31:35 +00:00
jan.nijtmans
870cb82c96
Change all mp_to_ubin() usages to mp_pack(). It makes the code much more clear
2022-11-15 13:06:59 +00:00
jan.nijtmans
386c7ea2d3
Since this FIXME! is already fixed, adapt documentation
2022-11-15 11:24:44 +00:00
jan.nijtmans
c381a17784
Merge 8.7
2022-11-15 11:04:26 +00:00
jan.nijtmans
79f559fdb5
Add mp_pack to the libtommath stub-table: it's easier to work with than mp_to_ubin
2022-11-15 10:57:59 +00:00
dgp
1a3ade0a6f
merge 8.6
2022-11-14 17:24:56 +00:00
dgp
2a1443e0e0
Test suite hygiene
...
- Several tests missing the "testdstring" constraint
- [package require tcltests] is fragile, and almost all test files that
had it were not making use of anything it provides. Removed.
2022-11-14 17:23:52 +00:00
jan.nijtmans
369b286297
Merge 8.7
2022-11-13 21:26:11 +00:00
jan.nijtmans
14225bf184
fix filename
2022-11-13 21:25:31 +00:00
jan.nijtmans
84e2b419ac
Rebase to latest 9.0
2022-11-13 19:02:37 +00:00
jan.nijtmans
64adc99e08
Merge 8.7
2022-11-13 16:58:46 +00:00
jan.nijtmans
46a5d4b5fa
Fix compilation error for STATS=memdbg. Fix incorrect comment
2022-11-13 16:53:43 +00:00
apnadkarni
7dc710b2f4
Update Tcl_ObjType documentation
2022-11-13 06:37:55 +00:00
apnadkarni
da2f3cbd20
Merge trunk
2022-11-13 06:23:50 +00:00
apnadkarni
67e92c7ada
Fix compilation error for STATS=memdbg
2022-11-13 06:06:43 +00:00
jan.nijtmans
2a94e80188
Merge 8.7
2022-11-11 21:51:31 +00:00
jan.nijtmans
874327229c
Add (internal) TclNewUIntObj(), and use it to fix TCL_LINK_WIDE_UINT for big (>= 2^63) integers. With testcase
2022-11-11 21:09:21 +00:00
jan.nijtmans
1b232cf14c
Merge 8.7
2022-11-11 09:59:24 +00:00
kjnash
b2b0452937
Merge http-bugfixes-2022H2. Fix bugs in recent http.tcl code related to https over a proxy server, especially cleanup after a failed CONNECT request to the proxy. Add new tests to httpProxy.test.
2022-11-10 17:10:49 +00:00
kjnash
1684b35abb
Merge 8.7
2022-11-10 17:00:28 +00:00
jan.nijtmans
6065eb2868
Forgot one TCL_OBJTYPE_V0
2022-11-10 11:20:02 +00:00
jan.nijtmans
50f633ff28
No trailing ','
2022-11-09 17:15:52 +00:00
apnadkarni
973b944b33
Merge trunk. Also update Tcl_ObjType.version to match TIP 644
2022-11-09 13:45:46 +00:00
dgp
7c58993680
update target release date
2022-11-09 13:15:55 +00:00
kjnash
822d3017ef
Bugfix to socketPhQueue. Add some Log commands for debugging.
2022-11-09 10:53:23 +00:00
jan.nijtmans
e18b1490d5
Merge 8.7
2022-11-08 22:15:37 +00:00
griffin
4335a4f475
Remove unused/incomplete functions. Some cleanup.
2022-11-08 22:02:33 +00:00
jan.nijtmans
a90bc45a54
int -> size_t in Tcl_CmdObjTraceProc2 (for 'level'). Add missing documentation
2022-11-08 21:58:01 +00:00
jan.nijtmans
b6c0957a8f
More int -> size_t (argc and level) in trace handling
2022-11-08 20:27:01 +00:00
jan.nijtmans
0423cdcf31
Merge 8.7
2022-11-08 10:01:41 +00:00
jan.nijtmans
2afe485f41
NEVER use sizeof(FLEXARRAY)! Use offsetof()
2022-11-08 09:59:28 +00:00
jan.nijtmans
742323f725
Merge 8.7
2022-11-08 07:31:35 +00:00
jan.nijtmans
008001c3b5
More TCLFLEXARRAY usage
2022-11-08 07:30:42 +00:00
jan.nijtmans
7e8c940ac1
Fix "package files tcl", considering TIP #590
2022-11-08 07:28:44 +00:00
kjnash
e977d6e7af
library/http/http.tcl - bugfix OpenSocket to replay any requests in the socketPhQueue placeholder queue, if the socket was not created.
2022-11-07 22:06:42 +00:00
jan.nijtmans
03a9eaa951
Use TCLFLEXARRAY
2022-11-07 22:04:59 +00:00
kjnash
c3e9fc9aed
library/http/http.tcl - define http::socketProxyId and use it to record the proxy (if any) used by each persistent socket. Minor fix to socketPhQueue.
2022-11-07 22:02:33 +00:00
kjnash
0a9238b48a
library/http/http.tcl - in http::SecureProxyConnect, bugfix state(proxyUsed) so the correct value SecureProxyFailed or SecureProxy is returned.
2022-11-07 21:53:19 +00:00
kjnash
95b74de5c2
library/http/http.tcl - in http::SecureProxyConnect and its caller, bugfix cleanup after 407 from HTTPS proxy. Close the connection to the proxy. Do not copy all values of state() from the proxy CONNECT to the main request, especially leave out state(sock). Raise an error for a 3xx and 401 response to CONNECT. In http::Event, trap TLS handshake errors in a place where they do not occur for a non-proxy request.
2022-11-07 21:49:08 +00:00
kjnash
4c3d010bff
library/http/http.tcl - replace lremove with lreplace for compatibility with 8.6.
2022-11-07 21:44:39 +00:00
kjnash
bf454b34d5
tests/httpProxy.test - add new tests for cleanup (mainly after 407 request) by checking that a second request is handled correctly.
2022-11-07 21:40:55 +00:00
kjnash
aed83779fd
tests/httpProxy.test - test for leftover socket placeholders, improve result layout, for https fetch with status 407 expect result SecureProxyFailed not SecureProxy.
2022-11-07 21:35:41 +00:00
jan.nijtmans
af07dcfdda
Merge 8.7
2022-11-07 21:16:31 +00:00
jan.nijtmans
82a4bb8618
Deprecate TclpHasSockets(): Every system nowadays has sockets
2022-11-07 20:46:49 +00:00
kjnash
d9c7aa01ef
Merge 8.7
2022-11-07 19:09:09 +00:00
jan.nijtmans
44ce8c245f
TclInitSockets() only exists on Windows
2022-11-07 10:50:39 +00:00
jan.nijtmans
fac57136f2
Remove TclpHasSockets(): Every system nowadays has sockets
2022-11-06 21:01:12 +00:00
jan.nijtmans
b07c7ad8ae
Update Tcl_Filesystem documentation
2022-11-06 20:27:51 +00:00
griffin
3e26e1b26d
Sync with trunk
2022-11-06 05:20:26 +00:00
griffin
93374294e8
Sync with trunk
2022-11-05 23:35:46 +00:00
apnadkarni
c3c5a80a02
Merge 8.7. lreplace4 bcc instruction and FLT_MAX fix
2022-11-05 11:49:08 +00:00
apnadkarni
d9033672db
Add lreplace4 BCC instruction. Rewrite linsert, lreplace to use it.
2022-11-05 10:28:32 +00:00
jan.nijtmans
4e5e2be585
Fix for [85ce4bf928]: binary format R Inf] stores FLT_MAX
2022-11-05 10:08:36 +00:00
apnadkarni
dbfc7435e6
Merge core-8-branch
2022-11-05 09:27:11 +00:00
griffin
44a73b3640
Implement abstractlist with tip-644
2022-11-04 22:47:23 +00:00
apnadkarni
f768eb3bf2
Rewrite lreplace4 implementation not to need extra immediate operands.
2022-11-03 17:04:07 +00:00
apnadkarni
6559f4084e
Bug [0f98bce669]. Fix limits for string replace.
2022-11-03 12:26:41 +00:00
jan.nijtmans
9cc14dacd9
Fix formatting of error-message
2022-11-03 08:15:19 +00:00
griffin
853e484a64
TIP 636 for Tcl 9
2022-11-02 22:33:01 +00:00
griffin
e2e526bea8
Swap which ObjTyp ptr is used for concrete Rep to match other types.
2022-11-02 16:45:47 +00:00
apnadkarni
5a3d2ddfed
Bug #0f98bce669 - string cat support for > 2**31 characters. Tests pending
2022-11-02 16:28:59 +00:00
jan.nijtmans
59ee35fd38
Fix testcase failure (assemble-15.9), only seen on 32-bit
2022-11-02 16:25:59 +00:00
jan.nijtmans
330034ec02
Make Tcl_WCharToUtfDString() usable (again) on Windows. Was lost due to previous commit
2022-11-02 16:20:27 +00:00
jan.nijtmans
3920a8f42a
Fix [d2c2baac2]: Tcl 9 32-bit build exits immediately with stack overflow on Windows
2022-11-02 16:02:07 +00:00
apnadkarni
0dfd2bdc9d
Bug #0f98bce669 - string repeat support for > 2**31 characters
2022-11-02 15:56:42 +00:00
jan.nijtmans
809aebe98e
Proposed fix for [85ce4bf928]: Fix for problems with storing Inf with [binary format R]
2022-11-02 15:00:38 +00:00
jan.nijtmans
366778e86e
Fix [00cced7b87]: Incorrect handling of indices > 0x80000000 in byte compiler (64-bit Tcl)
2022-11-02 13:18:42 +00:00
jan.nijtmans
a8faa8e87d
Merge 8.7
2022-11-02 10:46:49 +00:00
jan.nijtmans
6ab05e04d1
If CFLAGS contains -DTCL_NO_DEPRECATED, remove TclInitCompiledLocals. More code cleanup (backported from 9.0)
2022-11-02 10:00:17 +00:00
jan.nijtmans
7b395ecf51
code cleanup (e.g. ProcGetIntRep -> ProcGetInternalRep, size_t -> Tcl_Size)
2022-11-02 08:30:20 +00:00
jan.nijtmans
da371061f6
Merge 8.7
2022-11-02 08:04:16 +00:00
jan.nijtmans
954b5db3bb
Make robust against TIP #288 proposed change
2022-11-02 08:02:00 +00:00
jan.nijtmans
ec21e9f7de
Merge 8.7. Eliminate gcc warning
2022-11-01 22:04:09 +00:00
jan.nijtmans
cbbee69874
Backout previous change: test-cases are failing
2022-11-01 21:45:49 +00:00
jan.nijtmans
4b553938e3
Merge 8.7
2022-11-01 17:06:52 +00:00
jan.nijtmans
67319477f1
Bug-fix for TIP #502 implementation: Two missing out-of-bound situations in TclIndexEncode(), one for index > MAX_INT, one for index < end-MAX_INT
2022-11-01 17:02:02 +00:00
jan.nijtmans
4d9dcbbcbc
Two missing out-of-bound situations in TclIndexEncode(), one for index > MAX_INT, one for index < end-MAX_INT
2022-11-01 16:13:26 +00:00
dgp
c837d06e2b
merge 8.6
2022-11-01 14:17:55 +00:00
griffin
c5bb0bc339
Sync with core-8-branch
2022-11-01 03:18:39 +00:00
griffin
026e32d86a
Fix refCount crash. Improve ArithSeries regression coverage.
2022-11-01 02:05:11 +00:00
griffin
028b789aec
Add missing GetType call to export decls. Change SetElement to support multiple indicies. Improve abstract list test coverage.
2022-10-31 21:50:46 +00:00
apnadkarni
d9a19f9512
Bytecode compiler for ledit
2022-10-30 17:41:56 +00:00
jan.nijtmans
66a9d2307a
Merge 8.7
2022-10-30 14:29:25 +00:00
jan.nijtmans
3516771eb6
Merge 8.6
2022-10-30 14:28:50 +00:00
jan.nijtmans
a76725bab7
Merge 8.5. Update to tzdata 2022f
2022-10-30 12:55:36 +00:00
jan.nijtmans
1e2cce6389
Update to tzdata 2022f
2022-10-30 12:52:39 +00:00
jan.nijtmans
e2ee6601c9
One more unused stub entry
2022-10-30 12:51:57 +00:00
apnadkarni
b2223e8eaf
New bytecode implementation for lreplace
2022-10-30 10:43:58 +00:00
apnadkarni
5da6b8e3c3
New bytecode for linsert
2022-10-30 04:27:03 +00:00
apnadkarni
61814ba324
Implement lreplace4 BCC instruction
2022-10-30 03:04:11 +00:00
dgp
a0fa55773b
merge 8.7
2022-10-29 16:36:49 +00:00
dgp
60da2df16c
[c7f3977380] Balance stack operations in the mode with no Thread package.
2022-10-29 16:35:11 +00:00
jan.nijtmans
41c34da9da
Simplify -eofchar parsing (just check for " {}" at the end, in stead of full list parsing)
2022-10-29 14:08:52 +00:00
griffin
bb6cdd342a
Sync with core-8-branch
2022-10-28 18:53:27 +00:00
dgp
f27f0773c4
Update test result
2022-10-28 17:50:50 +00:00
jan.nijtmans
6ea0113127
Merge 8.7
2022-10-28 16:40:18 +00:00
dgp
f8f170cfd3
Duplicate test names
2022-10-28 16:18:29 +00:00
oehhar
38e64470ca
Merge mark with no changes to avoid to get the core-8-changes in main.
2022-10-28 16:14:36 +00:00
oehhar
5ba7f2ce37
Document TCL 8.7 behaviour of TIP601 and TIP607.
2022-10-28 16:10:17 +00:00
oehhar
ebaccb9022
Merge core-8-branch
2022-10-28 16:00:48 +00:00
oehhar
b0b713c9dc
Close fork
2022-10-28 15:54:15 +00:00
oehhar
78241e0ee7
TIP346, TIP607, TIP601: document encoding command
2022-10-28 15:53:09 +00:00
dgp
0faf7ec075
merge 8.6
2022-10-28 15:30:53 +00:00
dgp
d3cc950d62
merge 8.6
2022-10-28 15:19:56 +00:00
oehhar
98005a91dc
Merge core-8-branch
2022-10-28 15:03:05 +00:00
oehhar
a333cf0f8e
Correct issues in safe.n reported by tcltk-man2html.tcl
2022-10-28 14:58:52 +00:00
dgp
6db74fe6eb
The file $(builddir)/tclUuid.h is not part of the source code distribution.
...
The `make distclean` target should delete it.
2022-10-28 14:37:56 +00:00
oehhar
1f207f9a0d
Resolve tcltk-man2html.tcl errors in fconfigure.n
2022-10-28 13:51:18 +00:00
oehhar
9d428d86eb
Resolve tcltk-man2html.tcl errors in fconfigure.n
2022-10-28 13:50:46 +00:00
oehhar
008d15c04e
fconfigure man: correct chapter syntax
2022-10-28 13:36:21 +00:00
oehhar
d48c9ac13e
TIP 633 and TIP 346: add man page entry for fconfigure (TCL 8.7)
2022-10-28 13:33:55 +00:00
oehhar
8fb4c52383
TIP 633 and TIP 346: add man page entry for fconfigure
2022-10-28 13:18:55 +00:00
dgp
0b20d5aff1
Restore test suite fix. If [try] is too confusing, then I will use [eval].
...
The stack is a stack of commands.
Test hygiene. This was creating one more thread than it destroyed.
In a -singleproc 1 test run, this caused tests in later test files to fail
because the stray thread causes test results to be different.
2022-10-28 12:55:40 +00:00
jan.nijtmans
18fb378072
TIP #646 correction: let "fconfigure $chan -eofchar" return a single character, not a list element
2022-10-28 11:18:53 +00:00
griffin
a89453a9e9
Expand AbstractList regression testing.
2022-10-28 06:13:11 +00:00
jan.nijtmans
d1e2a1ab3c
Merge 8.7
2022-10-27 22:01:49 +00:00
jan.nijtmans
c0cffed37f
backout [95cb836c8c]: "try [lpop threadStack]", that cannot be right
2022-10-27 21:58:38 +00:00
jan.nijtmans
f87e100731
try -> catch
2022-10-27 21:19:36 +00:00
jan.nijtmans
63b8879b83
Merge 8.7
2022-10-27 21:02:32 +00:00
dgp
c74a13788a
duplicate test names
2022-10-27 18:38:55 +00:00
dgp
d74dc7638c
Test hygiene. This was creating one more thread than it destroyed.
...
In a -singleproc 1 test run, this caused tests in later test files to fail
because the stray thread causes test results to be different.
2022-10-27 17:10:04 +00:00
dgp
81696e00bb
merge 8.6
2022-10-27 14:43:37 +00:00
dgp
949e577fe0
merge 8.6
2022-10-27 14:35:43 +00:00
dgp
a7a483bf2a
Revised fix to the -singleproc 1 issue in load.test
2022-10-27 14:35:12 +00:00
dgp
237a5ad333
merge 8.6
2022-10-27 14:10:59 +00:00
jan.nijtmans
6de2b2c1d6
Handle TCL_ENCODING_STRICT and TCL_CLOSE2PROC correctly, when building in --with-tcl8 mode
2022-10-27 14:01:17 +00:00
dgp
4a0240f153
In a -singleproc 1 test run, [info loaded] can report libraries brought in
...
by other test files. Protect the tests that care about that.
2022-10-27 13:48:34 +00:00
jan.nijtmans
2a8ceac888
Fix [8e2d10698b]: ioCmd.test tests need updates for -eofchar changes
2022-10-27 13:33:10 +00:00
jan.nijtmans
dac15673b8
Merge 8.7
2022-10-27 07:13:44 +00:00
jan.nijtmans
0a6e6c4977
TIP #468 : Support Passing TCP listen Backlog Size Option to TCP Socket Creation
2022-10-27 07:11:49 +00:00
dgp
6e31c76fb5
merge 8.6
2022-10-27 00:21:08 +00:00
kjnash
bc27d6bcb6
Merge http-bugfixes-2022H2 - fix ticket 1173760, https over proxy server.
2022-10-26 12:39:28 +00:00
kjnash
1e0a98c9aa
Merge 8.7
2022-10-26 12:35:18 +00:00
kjnash
2ecf92f50b
Minor changes to http tests.
2022-10-26 11:28:29 +00:00
jan.nijtmans
b8b4026cbf
TIP #646 : Change -eofchar handling
2022-10-26 09:55:41 +00:00
jan.nijtmans
42b1c58705
merge-mark
2022-10-26 09:44:42 +00:00
jan.nijtmans
27f09fdb5c
www.tcl-tk.org -> www.tcl-lang.org
2022-10-26 09:43:48 +00:00
jan.nijtmans
837f6c4dc0
TIP #646 : Change -eofchar handling (Tcl 8.7 part)
2022-10-26 09:36:30 +00:00
kjnash
ba62d5de6e
Fix bug 1173760 (proxy server for https). Add http::config options -proxynot, -proxyauth.
2022-10-25 16:23:54 +00:00
jan.nijtmans
3bbc297ec7
Merge 8.7
2022-10-25 13:22:46 +00:00
jan.nijtmans
d33fc57550
Some more int -> Tcl_Size conversions, making the diff with the Tcl 9.0 header-files smaller
2022-10-25 12:23:26 +00:00
apnadkarni
53f5424bb2
Create new branch named "apn-bcc"
2022-10-25 11:42:07 +00:00
jan.nijtmans
415503775a
Merge 8.7
2022-10-25 08:48:44 +00:00
jan.nijtmans
cb8b6e12a2
Merge 8.6. Bug in rules.vc (visible in Tk: handle TK_MAJOR_VERSION the same as TCL_MAJOR_VERSION)
2022-10-25 08:47:55 +00:00
jan.nijtmans
df72732868
Since MacOS 12.6 reports as 12.5 ....
2022-10-25 06:12:11 +00:00
griffin
119e80fb28
Sync with core-8-branch
2022-10-25 02:30:28 +00:00
griffin
6d3452eeac
Add AbstractList regression test (exercise the C API)
2022-10-25 01:13:45 +00:00
jan.nijtmans
728edc0cbf
Merge 8.7
2022-10-24 12:01:54 +00:00
jan.nijtmans
1dfa3c7740
Merge 8.6
2022-10-24 11:57:17 +00:00
jan.nijtmans
2c5609394c
Fix env-2.1, env-2.2, env-2.1, env-2.3, env-2.4, env-3.1, env-4.1, env-4.3, env-4.4, env-4.5 testcases on win32
2022-10-24 11:54:10 +00:00
jan.nijtmans
7894a24f8f
Merge 8.7
2022-10-23 20:44:02 +00:00
jan.nijtmans
33ac44d5e4
Merge 8.7
2022-10-23 20:42:06 +00:00
jan.nijtmans
4288b3bee9
Add support for macOS Ventura
2022-10-23 20:40:32 +00:00
jan.nijtmans
5a60ace74d
off-by-one in TCL_MAJOR_VERSION check
2022-10-23 14:46:44 +00:00
jan.nijtmans
24512e7131
Merge 8.7
2022-10-23 14:40:36 +00:00
jan.nijtmans
1f58beed10
Change back some Tcl_Size usages to int (e.g. in MODULE_SCOPE definitions)
2022-10-23 14:32:54 +00:00
jan.nijtmans
649be23ea6
Change back some Tcl_Size usage to size_t (e.g. in MODULE_SCOPE definitions, which are not supported by TIP #628 )
2022-10-23 14:08:49 +00:00
jan.nijtmans
d9708a0e08
Rebase to latest 9.0
2022-10-23 13:40:39 +00:00
jan.nijtmans
ccb5ae0529
Merge 9.0
2022-10-23 13:39:40 +00:00
jan.nijtmans
5ae2506499
TIP #628 : Shared 8.7/9.0 build environment
2022-10-23 11:00:48 +00:00
jan.nijtmans
f833c48881
Merge 8.7
2022-10-23 10:53:41 +00:00
jan.nijtmans
12d41d9775
Update rules.vc to version 11 (with TIP #628 support)
2022-10-23 10:44:39 +00:00
jan.nijtmans
a8896d0fd0
TIP #641 : Let Tcl_GetBoolean(FromObj) handle (C99) bool
2022-10-23 10:43:04 +00:00
jan.nijtmans
b184464e94
Merge 9.0
2022-10-23 00:16:47 +00:00
jan.nijtmans
dd5c058db2
Merge 8.7
2022-10-23 00:01:24 +00:00
jan.nijtmans
9cfb05d5b2
TIP #643 : Provide a public API to retrieve nul terminator length for an encoding
2022-10-22 23:48:10 +00:00
griffin
e38c5076fe
Sync with core-8-branch
2022-10-22 21:13:54 +00:00
dgp
a77ee23ce2
merge 8.6
2022-10-22 11:53:32 +00:00
griffin
6f1b4d55a4
Add Replace (lreplace) function to AbstractList type, and corrisponding Tcl_AbstractListObjReplace() API.
2022-10-22 00:07:40 +00:00
jan.nijtmans
0343f605e6
Merge 9.0
2022-10-21 15:28:15 +00:00
jan.nijtmans
c74a310d21
Merge 8.7
2022-10-21 15:18:11 +00:00
jan.nijtmans
500e1529f1
typedef Tcl_Size as int (which is the Tcl 8.7 part of TIP #628 )
2022-10-21 15:00:03 +00:00
jan.nijtmans
c08af43916
Don't bother _MSC_VER < 1900 any more
2022-10-21 14:58:54 +00:00
jan.nijtmans
c8a85bbc05
Change version field to Tcl_ObjTypeVersion
2022-10-21 09:01:36 +00:00
jan.nijtmans
95b85f336a
Rebase to 9.0
2022-10-21 08:55:50 +00:00
jan.nijtmans
106d95266d
Merge 8.7
2022-10-21 08:53:46 +00:00
jan.nijtmans
31489aa2fa
Merge 8.6
2022-10-21 08:25:51 +00:00
jan.nijtmans
5a7f45638f
Fix [d554e5554e]: fix typo “defintion”
2022-10-20 15:31:47 +00:00
jan.nijtmans
50abb43dbe
Fix [af65af3655]: clock.n: unbalanced parenthesis
2022-10-20 15:28:10 +00:00
jan.nijtmans
0d62ec8715
Merge 8.7
2022-10-20 15:21:13 +00:00
jan.nijtmans
72bac6d72c
Merge 8.7
2022-10-20 15:18:13 +00:00
jan.nijtmans
ef9867bd58
Merge 9.0
2022-10-20 15:17:13 +00:00
jan.nijtmans
c541afcd1a
Merge 8.7
2022-10-20 15:16:28 +00:00
jan.nijtmans
94f27cdf49
Merge 8.7
2022-10-20 15:15:27 +00:00
griffin
8b7cf2c7eb
Sync with core-8-branch
2022-10-19 22:29:46 +00:00
jan.nijtmans
3405e90b04
Merge 8.7
2022-10-19 20:07:52 +00:00
jan.nijtmans
a344103b2d
Re-build win64/zlib1.dll (with ucrt support)
2022-10-19 20:05:52 +00:00
dgp
4d0d124928
merge 8.6
2022-10-19 16:29:21 +00:00
jan.nijtmans
7da0627e83
Merge 8.6
2022-10-19 16:10:44 +00:00
jan.nijtmans
3b3b2532bc
Upgrade zlib to version 1.2.13
2022-10-19 16:08:41 +00:00
kjnash
d2d5e829ae
Merge 8.7
2022-10-19 13:31:18 +00:00
jan.nijtmans
dd1a24d32d
Re-build zlib1 1.2.13 for win32/win64
2022-10-19 08:30:20 +00:00
jan.nijtmans
f1c94fa67e
Make minizip/ioapi.c work (again) on win32. Build zlib1.dll for win64-arm
2022-10-19 07:28:18 +00:00
griffin
0bc040dc40
More work on lset support in AbstractLists
2022-10-19 04:35:15 +00:00
jan.nijtmans
6a9dc785dc
Update to zlib-1.2.13
2022-10-18 20:24:43 +00:00
dgp
c84fb00aed
Draft updates to changes file for 8.6.13 release.
2022-10-18 19:37:44 +00:00
jan.nijtmans
7972edd0e2
Merge 9.0
2022-10-18 15:34:13 +00:00
jan.nijtmans
c0b6a93d8f
Fix [20157fbd14]: Failed tests safe-9.[67], since "-autoPath" is added
2022-10-18 14:42:27 +00:00
jan.nijtmans
59dd8794c5
Change the default for AutoPathSync in Tcl 9.0 (as described in TIP #579 )
2022-10-18 13:35:53 +00:00
jan.nijtmans
19d02aa031
Merge 9.0
2022-10-18 13:06:47 +00:00
jan.nijtmans
4ee4ed8efe
Merge-mark
2022-10-18 13:05:31 +00:00
jan.nijtmans
f748e43a22
Merge 8.7
2022-10-18 12:55:01 +00:00
jan.nijtmans
b3790dd8a3
TIP #579 implementation: Improved auto_path for Safe Base interpreters
2022-10-18 12:44:20 +00:00
jan.nijtmans
bff9eb8b3b
TIP #579 implementation: Improved auto_path for Safe Base interpreters
2022-10-18 12:37:58 +00:00
jan.nijtmans
842fb667f5
Allow any single character for -eofchar, even if it's not a valid list
2022-10-18 10:25:35 +00:00
jan.nijtmans
39c9836950
Allow any single character for -eofchar, even if it's not a valid list
2022-10-18 10:12:51 +00:00
griffin
fb722eca56
Add SetElement function to abstract lists. Fix a few bugs.
2022-10-18 01:03:19 +00:00
jan.nijtmans
d9174b0f8d
Merge 9.0. More strict -eofchar parsing
2022-10-17 20:18:43 +00:00
jan.nijtmans
f1806f6f50
Merge 8.7
2022-10-17 20:04:36 +00:00
jan.nijtmans
a76f86e565
Merge 8.7
2022-10-17 19:46:07 +00:00
jan.nijtmans
4656afb575
More octal -> hex usage
2022-10-17 19:44:08 +00:00
dgp
51448d4167
Implementation of TIP 637.
2022-10-17 19:23:28 +00:00
dgp
ce85e0375a
merge 8.7
2022-10-17 18:43:28 +00:00
dgp
79d18dcb7e
Implementation of TIP 638.
2022-10-17 18:19:25 +00:00
dgp
d04ef78cd6
merge 8.6
2022-10-17 17:55:38 +00:00
jan.nijtmans
e50b4e4c59
Merge 9.0. Change the default -eofchar on Windows
2022-10-17 10:49:43 +00:00
jan.nijtmans
a11e803c73
Merge 8.7
2022-10-16 17:57:26 +00:00
jan.nijtmans
3c0ca65978
Minor change to -eofchar handling
2022-10-16 17:56:23 +00:00
jan.nijtmans
7593fce230
Prevent warning: tclUnixSock.c:1079:19: warning: unused variable 'size' [-Wunused-variable]
2022-10-16 16:57:29 +00:00
jan.nijtmans
6cda753ae0
new TIP about -eofchar handling
2022-10-16 11:10:36 +00:00
griffin
699ec9db36
Sync with core-8-branch
2022-10-14 22:35:01 +00:00
jan.nijtmans
c5a0eca4bc
Merge 8.7
2022-10-14 22:26:38 +00:00
jan.nijtmans
ef08150c11
Merge 8.6
2022-10-14 22:26:16 +00:00
jan.nijtmans
c271044702
Merge 8.5
2022-10-14 22:25:49 +00:00
jan.nijtmans
3f9307ffc1
Update tzdata to 2022e
2022-10-14 22:24:36 +00:00
griffin
f72344d643
Update AbstractList man page.
2022-10-14 22:06:42 +00:00
jan.nijtmans
1d1c1fb982
Merge 8.7
2022-10-14 20:55:35 +00:00
jan.nijtmans
6d00490627
Improve error-message "cannot use xxxx as operand ....."
2022-10-14 15:51:05 +00:00
jan.nijtmans
20af6b5bdd
typo
2022-10-14 14:40:27 +00:00
dgp
5bcff4802f
merge 8.7
2022-10-14 14:29:05 +00:00
jan.nijtmans
e245507505
Merge 9.0
2022-10-14 13:46:06 +00:00
jan.nijtmans
ca67362ec8
Merge 8.7
2022-10-14 13:37:16 +00:00
jan.nijtmans
e960c97fad
Fix [7505fac5bd]: new iocmd.test failures
2022-10-14 13:36:25 +00:00
dgp
09b7fc60ad
merge 8.7
2022-10-14 12:45:36 +00:00
jan.nijtmans
e7e044e968
Build-fix
2022-10-14 11:22:20 +00:00
jan.nijtmans
5ba73ded05
Merge 9.0
2022-10-13 21:28:55 +00:00
jan.nijtmans
c4ac9665cb
merge-mark
2022-10-13 21:28:12 +00:00
jan.nijtmans
a64794ef40
Merge 8.7
2022-10-13 21:12:07 +00:00
jan.nijtmans
f685c98a41
Make TclGlob() a static function
2022-10-13 20:17:44 +00:00
jan.nijtmans
0f77e154ab
More progress in handling rules.vc
2022-10-13 14:56:20 +00:00
jan.nijtmans
7e5d03d4cc
Merge 8.7
2022-10-13 10:40:23 +00:00
jan.nijtmans
2901b939cc
Merge 8.7
2022-10-13 10:35:20 +00:00
jan.nijtmans
8886d91a73
rebase to 8.7. Add documentation
2022-10-13 10:31:22 +00:00
jan.nijtmans
138fdcf62c
Merge 8.7
2022-10-13 09:15:37 +00:00
jan.nijtmans
0bb9723a64
Merge 9.0
2022-10-13 09:14:04 +00:00
jan.nijtmans
bef79e3c75
Merge 9.0
2022-10-13 09:11:02 +00:00
jan.nijtmans
1ce12936bb
Merge 8.7
2022-10-13 09:08:12 +00:00
jan.nijtmans
cbd41f6910
Fix socket_*-7.3 testcase (since 2 socket options were added)
2022-10-13 09:07:22 +00:00
griffin
999de87fbf
Sync with core-8-branch
2022-10-12 21:16:12 +00:00
jan.nijtmans
4addfd1f1e
Extract TIP #637 implementation from "novem" branch
2022-10-12 16:04:12 +00:00
jan.nijtmans
ce39701283
Merge 8.7
2022-10-12 15:45:11 +00:00
jan.nijtmans
45952551e2
Rebase to 9.0
2022-10-12 12:37:52 +00:00
jan.nijtmans
58462852c6
Merge 8.7
2022-10-12 11:26:18 +00:00
jan.nijtmans
01b1e3aadf
TIP #344 bugfix: on some platforms, <netinet/tcp.h> needs <stdint.h> to be included first
2022-10-12 11:25:28 +00:00
jan.nijtmans
8edc9b3888
Rebase to 8.7
2022-10-12 11:22:47 +00:00
jan.nijtmans
24b2e0513d
Merge 8.7
2022-10-12 10:50:38 +00:00
jan.nijtmans
6552a88de1
TIP #344 implementation: Bring TCP_NODELAY and SO_KEEPALIVE to socket options
2022-10-12 10:49:25 +00:00
dgp
688a002466
merge 8.7
2022-10-11 18:31:07 +00:00
dgp
18aaf57faf
merge 8.6
2022-10-11 18:26:51 +00:00
apnadkarni
aa198f54a8
Merge 9.0
2022-10-11 16:45:30 +00:00
jan.nijtmans
a1b8aa387d
Merge 8.7
2022-10-11 15:55:06 +00:00
jan.nijtmans
b758c501cf
Document TCL_ENCODING_STRICT flag
2022-10-11 15:51:42 +00:00
jan.nijtmans
7a961752a9
Make TCL_ENCODING_STRICT and TCL_ENCODING_NOCOMPLAIN work independant from each other (suggested by Harald Oehlmann)
2022-10-11 15:48:43 +00:00
apnadkarni
4391b633d9
TIP 644 - Make Tcl_ObjType extensible
2022-10-11 15:07:33 +00:00
jan.nijtmans
5bef9acff1
Update man-page
2022-10-11 14:41:29 +00:00
jan.nijtmans
d6c7097242
Merge 9.0
2022-10-11 14:40:13 +00:00
jan.nijtmans
f284e2a2d8
merge fork
2022-10-11 14:39:43 +00:00
jan.nijtmans
bc48d7a26e
Merge 8.7
2022-10-11 14:37:35 +00:00
jan.nijtmans
d4c0a2c2ae
Few more formatting errors
2022-10-11 14:22:17 +00:00
jan.nijtmans
8c301f2c53
Merge 8.7
2022-10-11 14:04:36 +00:00
jan.nijtmans
75ba8ac33b
Format errors in vwait.n
2022-10-11 11:02:45 +00:00
sbron
6b05e4086f
Update Tcl_TraceVar manual page.
2022-10-11 10:37:03 +00:00
jan.nijtmans
622fa7382f
Merge 8.7
2022-10-11 06:41:59 +00:00
jan.nijtmans
0d0cf6602a
There's a duplicate set of io-75.* testcases, so renumber one of them
2022-10-11 06:26:44 +00:00
jan.nijtmans
b17bb4724c
Making a start fixing [6978c01b65]: Channel encoding difference 8.6 <-> 9.0
2022-10-11 06:22:10 +00:00
griffin
48ae5e307e
Modify AbstractList functions to include interp for error reporting. Other various improvements.
2022-10-11 03:49:20 +00:00
kjnash
763c581edb
Bugfix library/http/http.tcl for connection request header - tcllib/websocket ticket [d01de3281f]. Revise header order in 3 tests.
2022-10-10 15:37:23 +00:00
jan.nijtmans
b2c3781bb0
Merge 8.7
2022-10-10 15:22:13 +00:00
jan.nijtmans
f2b3bc2aa5
Use Tcl_ObjCmdProc in stead of full signature
2022-10-10 15:19:59 +00:00
apnadkarni
23900950d5
Tests and docs for Tcl_GetEncodingNulLength
2022-10-10 13:52:29 +00:00
jan.nijtmans
d2a2b049b7
Merge 8.7
2022-10-10 11:20:26 +00:00
jan.nijtmans
3f7f7c5584
Slight improvement to TIP #346/#633 combination: Now -strictencoding 1 automatically sets -nocomplainencoding to 0, while -nocomplainencoding 1 automatically sets strictencoding to 0. This way, they can never both be set.
2022-10-10 11:08:38 +00:00
jan.nijtmans
131bf290a5
Merge 8.7
2022-10-09 20:59:49 +00:00
jan.nijtmans
a2b119cac8
Tcl_NewWideIntObj -> Tcl_NewBooleanObj where appropriate
2022-10-09 20:57:30 +00:00
apnadkarni
6def8b0f58
TIP 643 code. Docs, tests pending
2022-10-09 18:11:44 +00:00
jan.nijtmans
8958065cc3
Merge 8.7
2022-10-09 16:29:02 +00:00
jan.nijtmans
ae9355b9f2
Merge 8.7
2022-10-09 16:16:31 +00:00
jan.nijtmans
bff6ed619c
TIP #633 : configure channel about channel encoding error reporting mode
2022-10-09 15:11:18 +00:00
apnadkarni
80303ffb39
Generalize UpdateStringOfAbstractList
2022-10-09 06:21:43 +00:00
griffin
7468d97286
Code cleanup and reorganize
2022-10-08 22:31:32 +00:00
jan.nijtmans
1f8db5d00d
Merge 9.0
2022-10-08 17:17:04 +00:00
jan.nijtmans
22febb8eb7
Merge 8.7
2022-10-08 17:05:17 +00:00
jan.nijtmans
56de8426b7
Merge 8.7
2022-10-08 17:02:45 +00:00
jan.nijtmans
bd8e0ee8b7
TIP #346 bugfix: -strictencoding should be resetable too
2022-10-08 17:01:35 +00:00
jan.nijtmans
e502bcacc7
Merge 9.0
2022-10-08 16:44:21 +00:00
jan.nijtmans
8317204bd3
Merge 8.7
2022-10-08 16:08:46 +00:00
jan.nijtmans
a79de57d37
Merge 8.7
2022-10-08 15:43:40 +00:00
jan.nijtmans
afd31e9f77
TIP #346 : Error on Failed String Encodings
2022-10-08 14:46:22 +00:00
griffin
d24ee59fb5
TIP #636 starting imiplementation.
2022-10-08 04:28:55 +00:00
griffin
f2fd360d01
Sync with core-8-branch
2022-10-08 02:39:41 +00:00
jan.nijtmans
5e4013330a
-nocomplainencoding and -strictencoding are incompatible
2022-10-08 00:10:13 +00:00
jan.nijtmans
891c0fbcaa
Merge 9.0
2022-10-07 22:56:15 +00:00
jan.nijtmans
9f59ec07c0
Merge tip-346
2022-10-07 22:49:27 +00:00
griffin
af613a176f
Sync with core-8-branch
2022-10-07 19:14:18 +00:00
jan.nijtmans
2799ad9f6c
Merge 8.7
2022-10-07 18:59:37 +00:00
jan.nijtmans
6b3bcba42d
Merge 8.7
2022-10-07 15:21:04 +00:00
jan.nijtmans
12f23af545
On Windows, env(HOME) should be handled case-insensitive in fCmd.test
2022-10-07 15:19:36 +00:00
jan.nijtmans
4b6d8abfe4
Use GotFlag/SetFlag/ResetFlag macro's wherever appropriate
2022-10-07 15:18:36 +00:00
jan.nijtmans
7d93750b87
Merge 8.7
2022-10-07 14:15:15 +00:00
jan.nijtmans
2f60311d12
TIP #618 : New Tcl_GetBool* functions with TCL_NULL_OK flag
2022-10-07 14:04:03 +00:00
apnadkarni
ded4be46c9
Merge 8.7 tests for memory leaks in list C API
2022-10-07 11:44:36 +00:00
apnadkarni
a9fba66be5
Add memory leak/refcount tests for lists, spans and lseq
2022-10-07 11:23:18 +00:00
jan.nijtmans
15f8c1d28b
Merge 8.7
2022-10-07 11:19:06 +00:00
jan.nijtmans
948f556e52
More -1 -> TCL_INDEX_NONE
2022-10-07 11:02:05 +00:00
jan.nijtmans
837ca69779
Merge 8.6
2022-10-07 10:24:09 +00:00
jan.nijtmans
6f2284ab12
Follow-up to [1599352cca]: Tcl_Merge(): out-of-bounds write, more signed integer overflow. Better panic message when argc < 0.
2022-10-07 10:18:33 +00:00
jan.nijtmans
d80b660921
TIP #640 : Remove Tcl_SaveResult
2022-10-06 13:36:24 +00:00
jan.nijtmans
9dd5a63f35
TIP #640 : Remove Tcl_SaveResult (in Tcl 8.7 it's only removed when compiled with -DTCL_NO_DEPRECATED)
2022-10-06 13:12:11 +00:00
jan.nijtmans
5d7d542b25
Merge 8.7
2022-10-06 10:15:49 +00:00
jan.nijtmans
65254e27f9
Merge 8.6
2022-10-06 09:45:49 +00:00
jan.nijtmans
0b94a6293a
Fix [e32a44e2e4], [1599352cca], [5ec43cfd9b] and [74cc95b563]
2022-10-06 09:06:07 +00:00
jan.nijtmans
4721ffe64f
Fix [1599352cca] and related issues
2022-10-05 15:31:31 +00:00
dgp
78476931a0
merge 8.7
2022-10-05 13:33:37 +00:00
jan.nijtmans
36fcd880b6
TIP #634 : Remove inconsistency in variable tracing of an array
2022-10-05 07:39:44 +00:00
jan.nijtmans
a019958ca7
Merge 8.7
2022-10-05 07:36:50 +00:00
jan.nijtmans
3cb6c489a3
Missing error-check in Tcl_GetWideIntFromObj (backported from 9.0, was already fixed there)
2022-10-05 06:41:28 +00:00
griffin
4b1d6e9ae2
Fix some bugs in lseq
2022-10-04 22:05:19 +00:00
griffin
00199ad335
Fix some bugs in lseq
2022-10-04 20:15:38 +00:00
dgp
1310a7e2b4
merge 8.7
2022-10-04 18:26:28 +00:00
dgp
dfa6b32e11
silence compiler warning
2022-10-04 18:25:18 +00:00
jan.nijtmans
7a0c0b2034
Merge 9.0
2022-10-04 16:06:01 +00:00
jan.nijtmans
ca8b1a6887
TIP #465 : Change Rule 8 of the Dodekalogue to Cut Some Corner Cases
2022-10-04 16:04:29 +00:00
jan.nijtmans
f852823f2d
TIP 402: General Platform UNC Support
2022-10-04 16:01:57 +00:00
jan.nijtmans
c5b5c4f8a4
Merge 8.7
2022-10-04 15:57:51 +00:00
jan.nijtmans
3f371a5084
Fix g++ warning: tclEvent.c:1519:10: warning: declaration of ‘enum Tcl_VwaitObjCmd(void*, Tcl_Interp*, int, Tcl_Obj* const*)::options’ shadows a previous local [-Wshadow]
2022-10-04 15:56:08 +00:00
jan.nijtmans
2d5ed059a0
TIP #641 implementation: Let Tcl_GetBoolean(FromObj) handle (C99) bool
2022-10-04 15:52:13 +00:00
dgp
d278fba314
merge 8.7
2022-10-03 21:30:59 +00:00
jan.nijtmans
fbbee7fe2a
Merge 8.7
2022-10-03 08:53:58 +00:00
griffin
55cc9137eb
Fix Obj leaks in ArithSeries.
2022-10-02 19:03:35 +00:00
griffin
5d3af5f627
Fix refCount issues related to lseq
2022-09-30 20:27:20 +00:00
griffin
9ed6390f05
Remove redundant file references in makefiles
2022-09-30 18:33:34 +00:00
dgp
f9753a5e41
Replace incorrect use of TclGetNumberFromObj
2022-09-30 11:30:11 +00:00
griffin
b01f9536cb
Fix various issues with refCounts.
2022-09-30 00:03:55 +00:00
dgp
9e7c607db1
Complete documentation for the TIP 638 routines.
2022-09-29 20:53:43 +00:00
dgp
d03849d2cd
merge trunk
2022-09-29 19:17:24 +00:00
dgp
b2befe7629
merge trunk
2022-09-29 19:17:10 +00:00
dgp
dcb351dbe0
merge 8.7
2022-09-29 19:08:50 +00:00
griffin
a5a978ca98
Fix bug-99e834bf33
2022-09-29 16:30:31 +00:00
griffin
bec9630530
Fix bug-99e834bf33
2022-09-29 16:10:07 +00:00
griffin
259828fa5f
Sync with core-8-branch
2022-09-29 13:45:46 +00:00
jan.nijtmans
eea655f851
Remove "unknown" constraint, since it now works
2022-09-29 06:45:20 +00:00
jan.nijtmans
3d27e0eb5c
Merge 8.7
2022-09-28 19:47:41 +00:00
dgp
414f4c9f7c
WIP on documentation of proposed routines.
2022-09-28 18:41:42 +00:00
griffin
f67437d6f3
Fix bug-9933cc4d88 - not an error in 9
2022-09-28 16:53:47 +00:00
jan.nijtmans
5e19480500
Merge 8.7
2022-09-28 14:09:21 +00:00
jan.nijtmans
528b7b7168
Merge 8.7
2022-09-28 14:08:05 +00:00
jan.nijtmans
447a4d740e
Merge 9.0
2022-09-28 14:06:37 +00:00
jan.nijtmans
cef8229a3a
Merge 9.0
2022-09-28 14:05:57 +00:00
jan.nijtmans
e91c9f74d8
Merge 9.0
2022-09-28 14:05:14 +00:00
jan.nijtmans
03a9eede3b
Merge 8.7
2022-09-28 14:02:17 +00:00
jan.nijtmans
6cd7c9e3c2
Merge 8.7
2022-09-28 13:58:56 +00:00
jan.nijtmans
42bd6877bc
Fix wrong TclGetNumberFromObj() usage: this will crash if mp_int's are involved. Everywhere else in Tcl it is used correctly
2022-09-28 13:57:51 +00:00
jan.nijtmans
487067a6d1
Merge 8.7
2022-09-28 13:17:31 +00:00
jan.nijtmans
9548cf370e
Merge 9.0
2022-09-28 13:15:42 +00:00
jan.nijtmans
e5a0178736
Merge 8.7
2022-09-28 13:02:23 +00:00
jan.nijtmans
93e50d1448
int -> ListSizeT, and a few more simplifications
2022-09-28 12:58:58 +00:00
jan.nijtmans
69ac37dbae
Don't worry deprecation warnings for Tcl_SaveResult: If TIP #640 is accepted it won't matter any more.
...
Eliminate some compiler warnings
Mark some lseq testcases as "knownBug", they still need to be fixed
2022-09-28 11:55:26 +00:00
jan.nijtmans
27e907b473
Merge 9.0
2022-09-28 11:29:02 +00:00
jan.nijtmans
c31e41a91d
Merge 9.0
2022-09-28 08:34:47 +00:00
jan.nijtmans
300b6e7e76
Merge trunk
2022-09-28 08:33:54 +00:00
jan.nijtmans
0a9f0f3598
Merge 8.7
2022-09-28 08:32:43 +00:00
jan.nijtmans
5a103eaacb
Merge 8.7
2022-09-28 08:31:35 +00:00
jan.nijtmans
8b5a187d44
Still doesn't work. Use static in stead of MODULE_SCOPE
2022-09-28 08:30:06 +00:00
griffin
7694cd7bef
Fix bug-9933cc4d88
2022-09-27 18:50:33 +00:00
griffin
e6a7cce3f1
sync with core-8-branch
2022-09-27 18:17:17 +00:00
jan.nijtmans
7d3fcc3fb5
Merge 8.7
2022-09-27 13:44:12 +00:00
jan.nijtmans
9634f3a9ed
Merge trunk
2022-09-27 13:43:26 +00:00
jan.nijtmans
28121876fd
Merge 9.0
2022-09-27 13:42:27 +00:00
jan.nijtmans
3dab933938
Merge 9.0
2022-09-27 13:40:21 +00:00
jan.nijtmans
0fbdd463cb
Merge 8.7
2022-09-27 13:39:16 +00:00
jan.nijtmans
40d1955bc6
Merge 8.7
2022-09-27 13:33:46 +00:00
jan.nijtmans
f68a36c8be
Merge 8.7
2022-09-27 10:25:16 +00:00
jan.nijtmans
a0ee4e463e
Since 'inline' doesn't seem to work, use MODULE_SCOPE
2022-09-27 08:52:31 +00:00
apnadkarni
1080644af8
Merge 8.7 (primarily TIP 631)
2022-09-27 04:04:50 +00:00
apnadkarni
f7d30cbf99
Add lseq to list command cross references
2022-09-27 03:17:28 +00:00
apnadkarni
b9209ab689
TIP 631
2022-09-27 03:02:16 +00:00
apnadkarni
04723a6f3e
Merge 8.7
2022-09-27 02:43:12 +00:00
kjnash
d8213dd66a
Merge 8.7
2022-09-26 23:33:06 +00:00
jan.nijtmans
107106ad02
Adapt implementation to TIP: -nagle -> -nodelay (and invert some logic)
2022-09-26 21:45:10 +00:00
jan.nijtmans
dd1dc3c6e8
Merge 8.7
2022-09-26 19:26:11 +00:00
jan.nijtmans
3e959978b2
Merge 9.0
2022-09-26 19:00:53 +00:00
dgp
53a604750d
merge 8.7
2022-09-26 18:53:16 +00:00
dgp
c2e46517d8
Fix broken merge. Don't want to lose Tcl_RemoveChannelMode().
2022-09-26 18:49:31 +00:00
jan.nijtmans
0b7d58de0e
Merge 8.7
2022-09-26 17:25:22 +00:00
griffin
196a720845
Fix compile error.
2022-09-26 16:27:01 +00:00
jan.nijtmans
34de786a93
Merge 9.0. Change implementation: Now really remove Tcl_SaveResult() and friends
2022-09-26 16:10:18 +00:00
jan.nijtmans
74cf960de8
Merge 8.7
2022-09-26 15:58:55 +00:00
jan.nijtmans
3636d805fc
Make Tcl_SaveResult() and friends _really_ deprecated, so make gcc/clang warn when it's used
2022-09-26 15:51:20 +00:00
dgp
1a5bf4932e
merge trunk
2022-09-26 13:13:01 +00:00
dgp
80965aae21
merge trunk
2022-09-26 13:12:53 +00:00
dgp
d516bc4611
merge 8.6
2022-09-26 12:44:22 +00:00
jan.nijtmans
d347d3e4ff
Merge 8.7
2022-09-26 12:36:57 +00:00
jan.nijtmans
1900149ee6
Merge 9.0
2022-09-26 12:35:58 +00:00
jan.nijtmans
622d68eaef
Merge 8.7
2022-09-26 12:31:57 +00:00
jan.nijtmans
eb48fd5bf7
Merge 8.7
2022-09-26 12:31:18 +00:00
jan.nijtmans
6dc3f732c1
Merge 8.7
2022-09-26 12:24:31 +00:00
jan.nijtmans
0adb13141f
Merge 8.6
2022-09-26 12:24:01 +00:00
jan.nijtmans
5ceec60eb3
Update tzdata to 2022d. Add one more unused stub entry
2022-09-26 12:22:56 +00:00
jan.nijtmans
a5fc649221
Update tzdata to 2022d
2022-09-26 12:19:22 +00:00
jan.nijtmans
5257269714
Add some more unused stub entries
2022-09-26 12:18:46 +00:00
jan.nijtmans
9ca4f08e3a
Merge 8.7
2022-09-26 07:43:08 +00:00
jan.nijtmans
0e8c4944f3
TIP #220 : Escalate Privileges in VFS Close Callback
2022-09-26 07:34:23 +00:00
dgp
51748fd064
merge trunk
2022-09-25 20:36:46 +00:00
dgp
93fa9836fd
merge trunk
2022-09-25 20:35:51 +00:00
dgp
71a981267a
merge 8.7
2022-09-25 20:30:36 +00:00
jan.nijtmans
d72c457096
Merge 8.7
2022-09-25 19:51:14 +00:00
jan.nijtmans
ca650aeafc
TIP #594 : Modernize "file stat" interface
2022-09-25 19:34:28 +00:00
griffin
dda585be8b
Fix out-of-bounds length bug.
2022-09-25 18:05:53 +00:00
jan.nijtmans
1421703af9
Merge 8.7
2022-09-23 09:58:33 +00:00
jan.nijtmans
24aa257810
merge-mark
2022-09-23 09:57:38 +00:00
jan.nijtmans
33195f9318
Testcase stringObj-16.6 cannot run with -DTCL_NO_DEPRECATED=1. Merge 8.6
2022-09-23 09:56:25 +00:00
dgp
55a1074384
merge 8.6
2022-09-22 20:28:29 +00:00
jan.nijtmans
21178dbbd4
Merge 8.7
2022-09-22 15:48:25 +00:00
jan.nijtmans
2a68bfa441
Merge 8.6
2022-09-22 15:47:18 +00:00
jan.nijtmans
0eab000d0e
Do the "#undef TclObjInterpProc" slightly earlier
2022-09-22 15:42:32 +00:00
jan.nijtmans
d15e74d08c
Merge 8.7
2022-09-22 15:36:44 +00:00
jan.nijtmans
a59905b256
Merge 8.6
2022-09-22 15:35:51 +00:00
jan.nijtmans
aca56ccb68
Make TclObjInterpProc a macro (since it always should be used through TclGetObjInterpProc())
...
Add some unused stub entries. Add some more type-casts to tclProc.c
2022-09-22 15:32:59 +00:00
dgp
867a57806b
merge trunk
2022-09-22 13:46:24 +00:00
dgp
6a34b586f6
merge trunk
2022-09-22 13:45:21 +00:00
dgp
bfb9fc538c
merge 8.7
2022-09-22 13:38:38 +00:00
dgp
54c6432df5
merge 8.6
2022-09-22 13:28:47 +00:00
jan.nijtmans
4a3c559932
rebase to latest 8.7
2022-09-22 12:50:32 +00:00
jan.nijtmans
b246adbfbd
rebase to latest 8.7
2022-09-22 12:46:39 +00:00
jan.nijtmans
0fb01a32c6
Merge 8.7
2022-09-22 12:40:24 +00:00
jan.nijtmans
e0716f3a83
Merge 8.6
2022-09-22 12:32:17 +00:00
jan.nijtmans
cccb9994ce
Fix [22ab2ae64a]: Build with minizip broken (actually, only a problem in 8.7, but let's keep tinydir.h the same in all branches)
2022-09-22 12:30:11 +00:00
jan.nijtmans
606baf39a5
Add -strictencoding option to channels. Thanks to Harald Oehlman for his example (largely copied). No testcases yet
2022-09-22 11:26:44 +00:00
jan.nijtmans
e473aab63f
Rebase to latest 8.7
2022-09-22 11:01:16 +00:00
jan.nijtmans
a68d5e71e2
rebase to latest 9.0
2022-09-22 10:57:53 +00:00
jan.nijtmans
d00000e816
fix testcase
2022-09-22 10:56:56 +00:00
dgp
170a21862b
merge 8.6
2022-09-21 19:12:53 +00:00
dgp
9babdebe9d
Update docs and comments to agree with TIP 623.
2022-09-21 18:38:51 +00:00
dgp
159cb3d31d
Another test related to TIP 623.
2022-09-21 18:23:14 +00:00
dgp
85c05d7a3d
Include TYPE_OPEN_PAREN in the comment.
2022-09-21 15:39:02 +00:00
jan.nijtmans
ed4c583b06
TIP #640 implementation: Tcl_SaveResult reuse for Tcl 9.0
2022-09-21 15:25:25 +00:00
dgp
6a3c75c37f
Reduce chances for test conflicts.
2022-09-21 14:59:40 +00:00
dgp
9a87f872f4
merge trunk
2022-09-21 14:09:14 +00:00
dgp
74275b1fb2
merge trunk
2022-09-21 13:54:43 +00:00
dgp
e716de755c
merge 8.7
2022-09-21 13:47:20 +00:00
dgp
3116cddfd5
merge 8.6
2022-09-21 13:22:05 +00:00
jan.nijtmans
49c9b2444c
rebase to 8.7
2022-09-21 13:13:02 +00:00
jan.nijtmans
092e5f9f72
Merge 8.7
2022-09-21 13:10:43 +00:00
jan.nijtmans
ac4769c769
Merge 8.6
2022-09-21 13:08:26 +00:00
jan.nijtmans
0f53e9d969
Fix [c0bc269178]: switch -regexp -matchvar -indexvar broken when optional subexpression does not match
2022-09-21 12:55:59 +00:00
jan.nijtmans
14a73a2125
Merge 8.7
2022-09-21 12:39:42 +00:00
jan.nijtmans
c92ec0f79d
remove tests/range.test, no longer needed
2022-09-21 12:38:55 +00:00
jan.nijtmans
01f391fe61
Merge 8.7
2022-09-21 12:37:43 +00:00
jan.nijtmans
14a90662d8
TIP #624 : Deprecate Tcl_MakeSafe
2022-09-21 12:18:45 +00:00
jan.nijtmans
4590e2d120
Proposed fix for [c0bc269178], with testcase
2022-09-20 20:42:30 +00:00
griffin
7ceee1b319
TIP 629: Add a lseq command to the core of list commands
2022-09-20 14:36:44 +00:00
jan.nijtmans
0f9d17b141
rebase to latest trunk
2022-09-20 12:09:12 +00:00
jan.nijtmans
fc463ed38b
rebase to latest core-8-branch
2022-09-20 12:07:38 +00:00
kjnash
716fc0545e
Merge 8.7
2022-09-20 03:12:41 +00:00
oehhar
5d066cf169
TIP633 fconfigure -nocomplainencoding (TCL8.7): replace "-strictencoding 0" by "-nocomplainencoding 1".
2022-09-19 17:45:10 +00:00
oehhar
9d536c3831
TIP633 fconfigure -nocomplainencoding (TCL9): replace "-strictencoding 0" by "-nocomplainencoding 1".
2022-09-19 17:40:28 +00:00
griffin
1f3227e47d
Sync with core-8-branch, fix shimmer in TclLindexFlat.
2022-09-19 16:30:33 +00:00
jan.nijtmans
20ba5858ce
Merge 8.7
2022-09-19 14:19:16 +00:00
jan.nijtmans
b237b6f208
addendum to previous commit: restore -errorcode too .....
2022-09-19 14:18:05 +00:00
dgp
6944eab64c
merge 8.7
2022-09-19 14:06:59 +00:00
dgp
8b385f576d
Upgrade Tcl_SaveResult usage to Tcl_SaveInterpState.
2022-09-19 14:06:22 +00:00
jan.nijtmans
177828f77f
eliminate (enum options) typecast
2022-09-19 13:57:42 +00:00
jan.nijtmans
0ef6cc44a3
merge 8.7
2022-09-19 13:44:27 +00:00
jan.nijtmans
14f546efca
TIP #455 implementation: Extensions to [vwait]: Variable Sets and Scripted Access to Tcl_DoOneEvent
2022-09-19 13:38:11 +00:00
jan.nijtmans
cc185b1d76
eliminate some compiler warnings
2022-09-19 11:50:31 +00:00
jan.nijtmans
2ef45b0593
rebase to 8.7
2022-09-19 11:14:50 +00:00
jan.nijtmans
2e6ebdc591
Merge 8.7
2022-09-19 08:56:26 +00:00
jan.nijtmans
58467a7afe
New (internal) function TclGetObjInterpProc2() and macro TclObjInterpProc2. Will be needed for Itcl (in combination with TIP #626 ). Should have been part of TIP #627 .
2022-09-19 08:31:49 +00:00
jan.nijtmans
0e29fdc280
Remove pre-8.6-related comments
2022-09-19 07:41:09 +00:00
dgp
260c5156ed
TIP implementation to add/use public routines Tcl_GetNumber(FromObj).
2022-09-18 13:59:26 +00:00
jan.nijtmans
aec87aa3e1
Merge 8.7
2022-09-17 14:01:58 +00:00
jan.nijtmans
289ab3d633
rebase to 8.7
2022-09-17 12:58:43 +00:00
jan.nijtmans
4076c637ad
Merge 9.0
2022-09-17 12:44:44 +00:00
dgp
7b46c41c05
remove obsolete comments
2022-09-16 14:59:14 +00:00
griffin
5dcbe3cfeb
Sync with core-8-branch
2022-09-16 14:14:35 +00:00
jan.nijtmans
a312d4a759
Add testcases, and fix a bug found by it
2022-09-16 13:44:25 +00:00
dgp
f5300c9a09
merge 8.6
2022-09-16 12:18:03 +00:00
jan.nijtmans
3befacd1fa
Merge 8.7
2022-09-16 08:33:59 +00:00
apnadkarni
0c5c7cc5eb
Rename lsubst to ledit, add docs
2022-09-16 07:29:15 +00:00
jan.nijtmans
ce9541840d
Merge 8.7
2022-09-16 06:58:54 +00:00
apnadkarni
3baa5a5c2b
Merge 8.7
2022-09-16 02:45:55 +00:00
jan.nijtmans
d171543388
merge 8.6
2022-09-15 22:17:35 +00:00
jan.nijtmans
9b0b59d046
new testcase proc-7.6
2022-09-15 22:14:24 +00:00
kjnash
b5fa09c673
Merge http-bugfixes-2022H2 - several bugfixes and new helper commands.
2022-09-15 19:12:46 +00:00
kjnash
bf9bd6f5fe
Undo temporary mods to tests.
2022-09-15 19:09:03 +00:00
kjnash
75c6fd3ecb
Merge 8.7
2022-09-15 19:06:45 +00:00
dgp
284f73c56c
merge 8.7
2022-09-15 18:35:44 +00:00
dgp
95b9c7ea08
When zipfs is finalized, be sure to unregister it. If this isn't done,
...
then path resolution can re-enter the zipfs implementation code and try to
lookup pathnames in hash tables that have been deleted. Crash! Panic! Bad!
I see this easily in an app that embeds Tcl/Tk and uses multiple interps.
Did not easily find a demo script in Tcl alone.
2022-09-15 18:34:56 +00:00
apnadkarni
7b28b96939
Remove tilde expansion from docs. Fix comments that referenced the same.
2022-09-15 16:45:20 +00:00
dgp
4968ffa1ce
[51d5f22997] Protect against passing negative size to Tcl_NewListObj.
2022-09-15 15:59:11 +00:00
kjnash
9e810a5045
Merge 8.7
2022-09-15 14:58:59 +00:00
kjnash
aca6eed0f3
Minor bugfixes and refactoring of new code. Handle more errors in OpenSocket. Rename some keys of dict returned by ::http::responseInfo, and add more keys. Improve error reporting from ::http::OpenSocket and ::http::socket, especially when using threads. Adapt http(n) to emphasize using http::* commands rather than peeking at internal state array.
2022-09-15 14:39:41 +00:00
apnadkarni
105dbed51f
Merge 8.7 - docs for file home and tildeexpand
2022-09-15 14:39:39 +00:00
apnadkarni
0371b9ed8d
Document TIP 602
2022-09-15 13:41:20 +00:00
dgp
ddde6c7c50
Update test results
2022-09-15 11:55:46 +00:00
dgp
7a073b3366
Silence compiler warnings.
2022-09-15 11:48:56 +00:00
bch
184e43e860
doc - describe proper prototype -- even though they are identical signatures atm
2022-09-15 04:49:33 +00:00
jan.nijtmans
4469be4f10
Merge 8.7
2022-09-14 17:56:13 +00:00
jan.nijtmans
3663035507
TIP #602 (partial): Remove tilde expansion in file paths. This part doesn't change tilde handling, only adds new commands
2022-09-14 17:55:16 +00:00
jan.nijtmans
535acd95da
eol-spacing
2022-09-14 17:52:43 +00:00
jan.nijtmans
fbc66143c5
TIP #602 : Remove tilde expansion in file paths
2022-09-14 17:50:55 +00:00
dgp
fe7a8b7742
merge 8.6
2022-09-14 11:30:32 +00:00
jan.nijtmans
440683ce1e
Merge 8.7
2022-09-14 07:24:02 +00:00
jan.nijtmans
126f9f6dda
Merge 8.7
2022-09-14 07:21:05 +00:00
jan.nijtmans
a267b4feeb
More logical-or markup fixes in documentation
2022-09-14 07:19:10 +00:00
jan.nijtmans
c6289e39ad
Merge 8.6
2022-09-14 07:14:03 +00:00
jan.nijtmans
1399eb89da
Update all tables for Unicode 15
2022-09-14 07:07:50 +00:00
jan.nijtmans
926f06ee92
Update all tables for Unicode 15
2022-09-14 07:02:54 +00:00
bch
fd14473a4c
fix logical-or markup in documentation
2022-09-13 21:50:17 +00:00
jan.nijtmans
2e97ff6575
Mark 2 testcases as knownBug. Looks related to [6978c01b65]
2022-09-13 15:59:22 +00:00
kjnash
55d9cca97f
In namespace ::http, add new commands postError, responseInfo. Rename (the unreleased public API) reason to reasonPhrase. Rename private commands make-transformation-chunked to MakeTransformationChunked, getTextLine to GetTextLine. Rename mapReply to quoteString (and reverse the aliasing). Update namespace exports. Conventional use of fully-qualified command names. Initialise some members of state array.
2022-09-13 12:54:26 +00:00
dgp
60d91fb699
merge 8.6
2022-09-13 12:24:46 +00:00
jan.nijtmans
7506b1b86f
Merge 8.7
2022-09-13 10:01:33 +00:00
jan.nijtmans
0b00b0f11d
Merge 8.7
2022-09-13 08:31:34 +00:00
jan.nijtmans
28ea8b92a6
Merge 8.6
2022-09-13 08:07:09 +00:00
jan.nijtmans
d9b2b3f012
Fix [1073daf086]: Bug in handling illegal utf-8 sequence
2022-09-13 07:48:13 +00:00
jan.nijtmans
393743bb70
Start TIP #346 implementation: For now only \xC0\x80
2022-09-12 20:41:29 +00:00
kjnash
83b951fbc6
Rearrange groups of lines in http.n without other changes to content.
2022-09-12 17:33:50 +00:00
kjnash
a194e805e6
Add new commands http::requestLine, requestHeaders, requestHeaderValue. Add aliases http::responseBody -> http::data, responseLine -> code, responseCode -> ncode, responseHeaders -> meta, responseHeaderValue -> metaValue.
2022-09-12 17:12:12 +00:00
oehhar
bd7acf159e
Merge 8.7
2022-09-12 14:50:19 +00:00
oehhar
872d25e128
TIP633 fconfigure -strictencoding: also implement read part
2022-09-12 14:47:48 +00:00
jan.nijtmans
accc6b2ae9
(adapted) Testcase and fix for [1073daf086]: Bug in handling illegal utf-8 sequence
2022-09-12 14:28:58 +00:00
kjnash
f18eb707ea
Record HTTP request line and request headers for debugging purposes.
2022-09-12 13:22:14 +00:00
oehhar
436a48c900
Merge 8.7. Renumber tests and add current (IMHO wrong) results as results.
2022-09-12 12:14:20 +00:00
oehhar
c2626689e1
Merge 8.6
2022-09-12 11:59:43 +00:00
oehhar
7ddf89897f
Ticket [6978c01b65]: as utf-8 is "special", also add invalid/incomplete sequence test cases for shiftjis.
2022-09-12 11:56:00 +00:00
jan.nijtmans
62043b6882
Merge 8.7
2022-09-12 11:12:46 +00:00
jan.nijtmans
d6a5f77a66
Merge 8.6
2022-09-12 11:10:49 +00:00
oehhar
c36fa478b2
TIP633 fconfigure -strictencoding: move transfer over the loop. Adapt test suite to use hex results to prevent blocking on console output.
2022-09-12 10:59:44 +00:00
jan.nijtmans
5a421912ec
testcase cleanup
2022-09-12 10:54:02 +00:00
oehhar
f5846ef8f5
TIP633 fconfigure -strictencoding: implement write -strictencoding 0.
2022-09-12 10:47:30 +00:00
oehhar
74efc29448
Merge main
2022-09-12 10:16:59 +00:00
jan.nijtmans
a6b22dc4b3
Merge 8.7
2022-09-11 21:47:06 +00:00
jan.nijtmans
9fd4244e4f
Fix for [6978c01b65]: Channel encoding difference 8.6 <-> 9.0
2022-09-11 21:39:53 +00:00
jan.nijtmans
fcfbc3a606
complete the fix
2022-09-11 21:37:34 +00:00
jan.nijtmans
8f0f3b1165
Change io-75.5 to test for both written output and which exception is thrown. This shows the bug is not fixed yet .... :-(
2022-09-11 20:48:49 +00:00
jan.nijtmans
6b095954a1
Merge 8.7
2022-09-11 20:36:47 +00:00
dgp
b2fe600f53
merge 8.6
2022-09-11 20:12:55 +00:00
kjnash
e681ade127
Fix bug [3610253] - apply the patch supplied with the ticket, and add a test. REVIEW REQUESTED! Also fix -zip 0 so it sends "Accept-Encoding: identity".
2022-09-11 16:32:30 +00:00
oehhar
32439d945e
Ticket [6978c01b65]: write not encodable character->report to script level Test io-75.5 now ok.
2022-09-11 13:45:04 +00:00
kjnash
b34f06a4af
Fix bug [a13b9d0ce1] on HTTP compression: remove "compress", amend "deflate".
2022-09-11 10:57:34 +00:00
oehhar
14086d3b4a
TIP633 fconfigure -strictencoding: TCL 9 command line implementation
2022-09-11 09:55:09 +00:00
oehhar
330bdbdece
TIP633 fconfigure -strictencoding: make only "-strictencoding 0" possible on TCL 8.7
2022-09-11 09:27:10 +00:00
oehhar
370f7dfa40
TIP633 fconfigure -strictencoding: change option name to "-strictencoding".
2022-09-11 08:55:59 +00:00
oehhar
1c7b977c44
Merge 8.7. Make place for future tests with tolerant encoding. Number tests for strict encoding 75.4-75.6.
2022-09-11 08:48:25 +00:00
oehhar
1b1f3ea6b7
Merge 8.6
2022-09-11 08:41:30 +00:00
oehhar
0f674c5482
Tests io-75.x tolerant encoding: correct indention and comments
2022-09-11 08:39:20 +00:00
oehhar
77334ba0ad
TIP633 fconfigure -strctencoding: TCL 9 branch: prepare test cases with -strictencoding 0 and 1
2022-09-11 08:24:21 +00:00
oehhar
458c4d727e
Merge 8.7
2022-09-11 08:00:13 +00:00
jan.nijtmans
f3e9e16aa8
Merge 8.7
2022-09-10 23:45:13 +00:00
jan.nijtmans
e777b5ba8f
Update comment regarding isNativeObjectProc
2022-09-10 23:42:56 +00:00
jan.nijtmans
6cd305a239
Branch meant for investigation of [6978c01b65]. Ongoing
2022-09-10 23:25:22 +00:00
jan.nijtmans
ff752c7b91
Merge 8.7
2022-09-10 21:08:26 +00:00
jan.nijtmans
4f0a7b4379
Merge 8.6
2022-09-10 21:07:08 +00:00
jan.nijtmans
65417af213
code cleanup (typo's, type casts)
2022-09-10 21:02:11 +00:00
jan.nijtmans
a890c6f587
merge-mark
2022-09-10 12:23:21 +00:00
jan.nijtmans
2d2a526d32
Add two "deprecated" constraints: those testcases test deprecated behavior which will change in 9.0
2022-09-10 12:20:44 +00:00
kjnash
d288bedb47
Add option to detect XML files and their encoding when the server supplies no content-type. Fix for bugs [2998307] and [3165071].
2022-09-10 11:47:34 +00:00
oehhar
e121721b0d
Merge 8.7
2022-09-10 06:16:49 +00:00
oehhar
b07f60b43b
Ticket [6978c01b65]: add file encoding test io-75.3 with incomplete multibyte sequence which should fail in 9.0. As it does not fail, it is marked as knownBug
2022-09-10 06:13:39 +00:00
oehhar
36d126e09d
Merge 8.6
2022-09-10 06:07:18 +00:00
oehhar
d894ead020
Ticket [6978c01b65]: add file encoding test io-75.3 with incomplete multibyte sequence. This may fail in TCL 9.
2022-09-10 06:04:09 +00:00
oehhar
8ad68e4ae6
TIP633: fconfigure -tolerantencoding: correct/add command interface tests
2022-09-09 17:09:10 +00:00
oehhar
0a58662e2a
Merge 8.7
2022-09-09 16:20:11 +00:00
kjnash
6ed82bc4e5
Fix bug [338d979f5b] - default content-type is application/octet-stream
2022-09-09 15:32:00 +00:00
oehhar
c6e1d19c9e
Ticket [6978c01b65]: add file encoding tests which should fail. As they don't fail jet, they are marked as "knownBug".
2022-09-09 14:01:14 +00:00
oehhar
fc474844a7
Merge 8.6
2022-09-09 13:41:50 +00:00
oehhar
8d3f011861
Ticket [6978c01b65]: add file encoding tests, which should fail in 9.0, but are ok in 8.6 and 8.7: write unrepresentable character and read invalid multi-byte character
2022-09-09 13:38:37 +00:00
oehhar
b83ee238f9
Ticket [6978c01b65]: add file encoding tests, which should fail in 9.0, but are ok in 8.6 and 8.7: write unrepresentable character and read invalid multi-byte character
2022-09-09 13:34:30 +00:00
jan.nijtmans
e1b9a033d7
Merge 8.7
2022-09-09 13:22:46 +00:00
jan.nijtmans
a81159df88
Fix formatting in http.n
2022-09-09 13:12:43 +00:00
jan.nijtmans
d6b88eb797
Change 'skip' argument from int to size_t. Should have been part of TIP #630 (TclOO commands > 2^31 (for 8.7))
2022-09-09 12:42:04 +00:00
jan.nijtmans
673f931995
Change TclObjInterpProc() to a macro, since extensions should never invoke it directly, always through TclGetObjInterpProc()
2022-09-09 12:04:29 +00:00
kjnash
34d4a98d7c
Add missing "else" clauses to "if" commands in http::Event.
2022-09-09 08:28:16 +00:00
kjnash
d28f51fb1e
Fix bug [2927221] - revised http::meta, new http::metaValue, header names are case-insensitive so convert to lower case.
2022-09-09 08:04:55 +00:00
kjnash
1a8f9e37f4
Fix bug [2841176]. Evaluate all callbacks (and urlTypes commands) in global namespace.
2022-09-08 21:16:57 +00:00
kjnash
05c97af259
Add command http::reason to return the recommended reason phrase for a HTTP server status code (bug [1214322]).
2022-09-08 17:51:56 +00:00
kjnash
85287d9e67
Merge http-bugfixes-2022H2 - workaround for bug [824251] (async client sockets block for DNS).
2022-09-08 16:44:54 +00:00
jan.nijtmans
4cbc02c80f
re-base to Tcl 9.0
2022-09-08 16:27:30 +00:00
jan.nijtmans
e6cdfb9835
Merge 8.7
2022-09-08 14:56:21 +00:00
kjnash
bf28325f97
Merge 8.7
2022-09-08 14:56:08 +00:00
jan.nijtmans
0e0e0f9ad3
Merge 8.7
2022-09-08 14:54:49 +00:00
jan.nijtmans
a60681c2f3
Mrge 8.7. Make it work with C++, adapt win/Makefile.in to make it build on Windows with gcc
2022-09-08 14:53:35 +00:00
kjnash
04fca9a30c
Bugfixes - treat a disappearing socket as eof; do not open a (second) socket for a request that is already queued; cancel idletasks when no longer needed. This commit passes all tests.
2022-09-08 14:49:33 +00:00
jan.nijtmans
8c2e8d8313
Merge 8.7
2022-09-08 14:20:43 +00:00
jan.nijtmans
3be920cf8f
Merge 8.7
2022-09-08 14:19:07 +00:00
jan.nijtmans
c0ad0edfe0
Merge 8.7
2022-09-08 14:18:10 +00:00
jan.nijtmans
3239564179
Merge 9.0
2022-09-08 14:17:12 +00:00
jan.nijtmans
ceb4d1ae2e
Merge 8.7
2022-09-08 14:16:08 +00:00
jan.nijtmans
d2ed22d022
Merge 8.7
2022-09-08 14:14:08 +00:00
jan.nijtmans
607e3a5ba3
Combine flags and testFlags in TcpState. That should unbreak socket testcase failure
2022-09-08 14:06:46 +00:00
jan.nijtmans
0eddd55ab6
Fix cmdAH-23.* testcases
2022-09-08 13:01:43 +00:00
jan.nijtmans
5c0c8a2c84
TIP #594 implementation: Modernize "file stat" interface
2022-09-07 15:33:02 +00:00
jan.nijtmans
d12caa5cd9
Tcl_Size -> size_t (twice)
2022-09-07 14:47:52 +00:00
jan.nijtmans
558466820c
Merge 9.0
2022-09-07 14:32:16 +00:00
dgp
fbd6220149
merge 8.6
2022-09-07 13:59:47 +00:00
jan.nijtmans
c603f00cf1
Merge 8.7
2022-09-07 13:47:45 +00:00
jan.nijtmans
37386d726b
Merge 8.7
2022-09-07 13:28:07 +00:00
jan.nijtmans
b9b527183a
Merge 8.7
2022-09-07 13:26:09 +00:00
jan.nijtmans
a03f6be693
Merge 8.7
2022-09-07 12:48:06 +00:00
jan.nijtmans
9fd874b4fa
Merge 8.7
2022-09-07 12:46:32 +00:00
jan.nijtmans
cdecc6d509
Revive TIP #220 implementation: Escalate Privileges in VFS Close Callback
2022-09-07 11:45:29 +00:00
jan.nijtmans
4c66b6ec43
Merge 8.7
2022-09-07 07:47:21 +00:00
jan.nijtmans
67be0a6752
Merge 8.6
2022-09-07 07:42:02 +00:00
jan.nijtmans
ea5d97f286
code cleanup (backported from 8.7)
2022-09-07 07:22:07 +00:00
kjnash
d041253d88
(Still buggy.) Add the ::socket replacement ::http::socket and its dependencies as a workaround to bug 824251. Integrate with tls. Allow configuration -threadlevel for socket creation (package Thread may not be available and by default it is not used). Revise tests http-1.1, http-1.4, http-1.5 for new option -threadlevel. Run tests for each value of -threadlevel.
2022-09-06 15:53:20 +00:00
jan.nijtmans
ad1c9644ec
Correct Tcl_DriverWideSeekProc documentation, matching implementation
2022-09-06 13:35:30 +00:00
sebres
ab812b47ff
closes [2641672fff] - resolved timing sensitivity of httpold-4.12 and speed-up all httpd depending tests (removed 50ms delay unneeded in other cases)
2022-09-06 09:06:07 +00:00
sebres
67331f69a6
amend to [55a02f20ec]: fixes test env-9.1 for not windows - USERPROFILE is not set under unix, and win constraint isn't effective yet since it'll be supplied to test as argument in global scope (check moved to test now)
2022-09-06 09:04:18 +00:00
kjnash
79d5320ceb
Revise http::geturl to open its socket in an idletask coroutine. This is preparation for a workaround to bug 824251. Revise test http-4.15 because error message has changed. This commit passes all tests.
2022-09-06 04:06:21 +00:00
kjnash
5b6aa149be
Minor bugfixes, improvments to layout, comments, logging.
2022-09-06 01:53:02 +00:00
kjnash
e2d3a22117
Refactor some variable, command and coroutine names.
2022-09-06 01:00:26 +00:00
kjnash
f0db029a8a
Add explicit return to most commands.
2022-09-06 00:25:31 +00:00
kjnash
e388abbb03
Merge 8.7
2022-09-05 22:42:13 +00:00
fvogel
a10ceedaec
Fix some typos in comments.
2022-09-05 19:42:00 +00:00
apnadkarni
c7522c3f93
Merge 8.7. Primarily ticket [55a02f20ec]
2022-09-05 15:25:58 +00:00
apnadkarni
57807a30bb
Merge 8.6. Primarily ticket [55a02f20ec]
2022-09-05 12:18:35 +00:00
apnadkarni
1197ccadc0
Ticket [55a02f20ec] - fallback to USERPROFILE when setting HOME env on Windows
2022-09-05 11:37:54 +00:00
sebres
df50b9ade2
closes [2641672fff], httpd - don't parse delay argument by error 400 (wrong URI/proto)
2022-09-05 10:30:34 +00:00
jan.nijtmans
15640f9240
Fix testcase iocmd-8.15
2022-09-04 20:15:06 +00:00
jan.nijtmans
dc84ff9d0c
typo's
2022-09-03 13:57:45 +00:00
jan.nijtmans
b9413619f6
TIP #344 implementation
2022-09-03 13:45:24 +00:00
jan.nijtmans
6a866ef98b
Finish TIP #627 implementation for Tcl 9.0: handle objProc2/objClientData2 fields for Tcl_CmdInfo
2022-09-03 13:22:24 +00:00
jan.nijtmans
cd5e1b2e6c
Complete Tcl_SetCommandInfoFromToken() implementation, in case Tcl_CreateObjCommand() is used to create the original Command, while objProc2 is filled later
2022-09-02 22:41:50 +00:00
sebres
337b5ab155
amend to [2641672fff], guarantees a delay to cause a timeout definitely + switch delay-argument from post to get (it expects delay in query string of url)
2022-09-02 17:17:53 +00:00
sebres
3fa8112c7a
really closes [2641672fff] - resolved timing sensitivity of httpold-4.12 and speed-up all httpd depending tests (removed 50ms delay unneeded in other cases)
2022-09-02 17:02:56 +00:00
jan.nijtmans
191d1f5847
Merge 8.7
2022-09-02 15:20:44 +00:00
jan.nijtmans
46cf6812fc
TIP #627 : Some more protection against invalid objc values
2022-09-02 15:16:30 +00:00
jan.nijtmans
007dfc95a9
Some additional protection for objc < 0
2022-09-02 14:41:09 +00:00
jan.nijtmans
c453ac8b82
Merge 9.0
2022-09-02 14:32:33 +00:00
jan.nijtmans
792b2f5aff
Merge 8.7
2022-09-02 14:14:54 +00:00
jan.nijtmans
cd3fd901aa
Merge 8.6
2022-09-02 14:13:58 +00:00
jan.nijtmans
f22c567b84
Mark httpold-4.12 knownBug. See [2641672]: http1.0 failing test: httpold-4.12
2022-09-02 14:11:39 +00:00
jan.nijtmans
a1e647c684
Fix [95b6a1747a]: Eval.3 docu fix
2022-09-02 13:54:04 +00:00
jan.nijtmans
16510ceb16
Merge 9.0
2022-09-02 13:06:48 +00:00
jan.nijtmans
585d7c7548
Merge 8.7
2022-09-02 12:58:27 +00:00
jan.nijtmans
ead37ca168
Bugfix for TIP #627 : If only objProc or deleteProc is updated with Tcl_SetCommandInfo(), for a command registered with Tcl_CreateObjCmd2() ...
2022-09-02 12:35:15 +00:00
jan.nijtmans
9cc16840e8
-1 -> TCL_INDEX_NONE, where appropriate
2022-09-02 12:32:10 +00:00
jan.nijtmans
70d6ba8746
Finish remaining part of TIP-627 for Tcl 9.0: Handle objProc2/objClientData2 fields correctly in Tcl_CmdInfo struct.
2022-09-02 10:17:44 +00:00
jan.nijtmans
5573c07b32
close fork
2022-09-02 10:14:48 +00:00
jan.nijtmans
e03ac7f9c6
Some more (internal) ClientData -> void * changes
2022-09-02 07:42:51 +00:00
jan.nijtmans
41516d6ea0
Restore compatibility with C++ compiler
2022-09-01 16:22:51 +00:00
jan.nijtmans
d55b84c0f9
Merge 8.7
2022-09-01 16:06:13 +00:00
jan.nijtmans
5da91af337
Merge 8.7
2022-09-01 15:46:33 +00:00
jan.nijtmans
20bb6aaf3f
Merge 8.6
2022-09-01 15:46:03 +00:00
jan.nijtmans
2ad836a4e0
Fix [36ec49db6abc3b1a]: Tcl_TraceVar manpage : missing const on char* fields
2022-09-01 15:40:55 +00:00
jan.nijtmans
32835dc33e
Merge 8.7
2022-09-01 15:16:36 +00:00
jan.nijtmans
e1d37a6c49
Change refCount (in ListStore/ListSpan) to size_t. More ClientData -> void *. Eliminate warning about unused functions
2022-09-01 14:49:57 +00:00
jan.nijtmans
2da690df06
Add empty "range.test": GIT doesn't handling file renames well ....
2022-09-01 14:09:11 +00:00
griffin
7fda2c560a
Fix build issues.
2022-08-31 23:41:13 +00:00
kjnash
5f0c436646
Corrections to doc/safe.n
2022-08-31 20:33:29 +00:00
kjnash
bca70ca3ac
Merge 8.7
2022-08-31 16:19:00 +00:00
kjnash
7e2bd5e505
Merge old 8.7 ac18feaba77
2022-08-31 15:36:48 +00:00
kjnash
7443a97bd1
Merge old 8.7 6c69a72c58
2022-08-31 15:24:20 +00:00
kjnash
19f8c3bb6b
Merge old 8.7 674a6ad0472c7
2022-08-31 14:28:57 +00:00
kjnash
d9b5be0959
Merge old 8.7 9a14272d20
2022-08-31 12:51:52 +00:00
sbron
abf853d0bb
Implement modification of the 'name2' trace callback argument.
2022-08-31 11:06:38 +00:00
jan.nijtmans
5a0a3c6422
TIP #455 proposed implementation
2022-08-31 10:55:18 +00:00
jan.nijtmans
dc58da9c45
Merge 8.7
2022-08-31 10:06:20 +00:00
jan.nijtmans
6cf74d1492
Merge 8.6
2022-08-31 10:05:09 +00:00
jan.nijtmans
079cb41c49
Fix [0aa7638534]: .gitignore ignores library/tcltest.tcl
2022-08-31 10:03:29 +00:00
jan.nijtmans
78e661957c
Fix [0aa7638534]: .gitignore ignores library/tcltest.tcl
2022-08-31 10:00:33 +00:00
jan.nijtmans
b437bfcd3a
Since numAfterRangeEnd (of type size_t) is always >= 0, those LIST_ASSERT's are useless
2022-08-31 09:12:57 +00:00
jan.nijtmans
21d39f41b1
Merge 8.7
2022-08-31 09:07:58 +00:00
jan.nijtmans
4f32050725
Apply patch 0006 from [37108037b9]: Code cleanups to support CHERI
2022-08-30 23:02:16 +00:00
jan.nijtmans
614375d561
Merge 8.7
2022-08-30 22:48:21 +00:00
jan.nijtmans
33fa3f7f1f
More code cleanup, inspired by [37108037b9]
2022-08-30 22:30:20 +00:00
griffin
1e381fd90d
Sync with core-8-branch
2022-08-30 19:09:17 +00:00
griffin
d06b33cd94
Sync with core-8-branch listObj changes.
2022-08-30 17:56:36 +00:00
apnadkarni
74f8d5493b
Backport TIP 602 tildeexpand
2022-08-30 09:40:35 +00:00
jan.nijtmans
b3500c7657
gcc warning (-Wc++-compat)
2022-08-30 06:53:35 +00:00
apnadkarni
3ed0b91895
Merge core-8-branch
2022-08-30 06:21:33 +00:00
jan.nijtmans
1aa64a54f7
[37108037b9], patch 0004
2022-08-29 22:48:41 +00:00
jan.nijtmans
f4cb160b56
merge-mark
2022-08-29 21:10:56 +00:00
jan.nijtmans
e2d1dc1485
Merge 8.6 (no need for TclUnusedStubEntry here)
2022-08-29 21:05:53 +00:00
jan.nijtmans
c08a867e8b
Add 2 unused (internal) stub entries
2022-08-29 20:55:58 +00:00
jan.nijtmans
b0aac11cdb
Add 2 unused (internal) stub entries
2022-08-29 20:53:44 +00:00
griffin
603b76f910
sync with core-8-branch
2022-08-29 18:05:03 +00:00
jan.nijtmans
1bca425d6d
Merge 9.0
2022-08-29 14:00:14 +00:00
jan.nijtmans
e2dae42575
Merge 8.7 (already mostly prepared in tip-625-for-9 branch)
2022-08-29 10:15:03 +00:00
jan.nijtmans
dc471da433
Merge 9.0
2022-08-29 10:00:23 +00:00
jan.nijtmans
8c034cf9ce
Remove TODO's already done. Only use ListSizeT for types which are 'size_t' in the Tcl 9 implementation
2022-08-29 09:56:51 +00:00
apnadkarni
20e8a0591a
TIP 625 - list reimplementation
2022-08-29 08:03:58 +00:00
apnadkarni
cf371f4ceb
Merged core-8-branch
2022-08-29 03:26:42 +00:00
griffin
858a9e5502
Move ArithSeries code to its own files. More bug fixes.
2022-08-28 22:55:17 +00:00
kjnash
254c149a17
Create new branch named "http-bugfixes-2022H2"
2022-08-28 21:45:07 +00:00
griffin
446587dc91
Missed change for Windows.
2022-08-28 00:45:40 +00:00
griffin
31c68fa4e7
Move all ArithSeries code to it's own file. Sync other changes wil TIP-629.
2022-08-28 00:10:13 +00:00
sbron
18da054782
Alternative fix for the error messages by chw, which doesn't break traces on
...
non-existing array elements.
2022-08-27 08:14:31 +00:00
jan.nijtmans
f0a6c93a0e
Merge 8.7
2022-08-26 23:12:48 +00:00
jan.nijtmans
5e5b9a0994
[37108037b9]: Apply patch 0005 for CHERI
2022-08-26 23:11:44 +00:00
jan.nijtmans
4d9dc8039f
merge-mark
2022-08-26 22:50:50 +00:00
jan.nijtmans
c1b4a8688f
Use TclOffset() in stead of magic calculations using sizeof(), which might give unexpected results when padding is involved
2022-08-26 22:47:05 +00:00
jan.nijtmans
5efd0904e3
Close fork
2022-08-26 20:26:05 +00:00
jan.nijtmans
8e84ff6bb0
Merge 8.7
2022-08-26 20:25:34 +00:00
jan.nijtmans
17775db55f
[37108037b9]: Code cleanups to support CHERI: Apply patch 0007 (modified)
2022-08-26 20:23:14 +00:00
bch
2f0f646a07
Tcl_GetVersion(3) - we just use int for components now, not Tcl_ReleaseType; Cleanup stray tag.
2022-08-26 17:19:02 +00:00
jan.nijtmans
143111498e
Merge 8.7
2022-08-25 20:46:41 +00:00
griffin
addfa7b662
sync up with core-8-branch
2022-08-25 20:39:33 +00:00
jan.nijtmans
ec609cef01
[37108037b9]: Code cleanups to support CHERI. Apply patch 0001 and 0003 (and a few more potential alignment problems, inspired by those patches)
2022-08-25 20:36:39 +00:00
oehhar
688186d726
TIP633 fconfigure -tolerantencoding: set tolerant 8.7 default value.
2022-08-25 20:07:29 +00:00
griffin
85da0b0875
Implement support for float (double) values. Add more test coverage.
2022-08-24 23:22:21 +00:00
sbron
8b4623feb4
Use whitespace consistent with the surrounding code.
2022-08-24 12:03:08 +00:00
sbron
66ebfaa06d
Fix env array access through upvar to a single element.
2022-08-24 11:53:24 +00:00
sbron
10cc2ae8fd
Fix error message, so trace tests 16.2, 16.9, and 16.16 pass again.
2022-08-24 11:28:19 +00:00
sbron
42dd6088a6
Add tests for the TIP #634 functionality.
2022-08-24 11:19:14 +00:00
sbron
2d455c75b9
Start TIP #634 implementation using modified patch from ticket #2969488 by ferrieux.
2022-08-24 11:18:28 +00:00
bch
abe4d4223d
fix(?) stray ckalloc()/ckfree(); ref TIP 494.
2022-08-23 20:29:58 +00:00
jan.nijtmans
176e98222e
Merge 8.7
2022-08-23 10:51:34 +00:00
jan.nijtmans
8d919c0d03
TIP #627 implementation
2022-08-23 10:34:43 +00:00
sebres
29dd909281
small amend to [d052d2a1b01ba2c8], code review
2022-08-23 10:22:25 +00:00
jan.nijtmans
2dd98970cf
Merge 8.7
2022-08-23 07:37:06 +00:00
jan.nijtmans
fc14df8b55
Merge 8.6
2022-08-23 07:28:34 +00:00
jan.nijtmans
ce60b9f9bf
Patch (8) from [37108037b9]: Code cleanups to support CHERI
2022-08-23 07:27:08 +00:00
jan.nijtmans
529ef6feb2
Fix [d052d2a1b01ba2c8]: avoid leak in TestsetbytearraylengthObjCmd()
2022-08-23 07:03:31 +00:00
jan.nijtmans
9934337df5
Merge 8.7
2022-08-23 06:45:54 +00:00
jan.nijtmans
47c1e7680e
Merge 8.6
2022-08-23 06:44:27 +00:00
jan.nijtmans
f03894f706
Add Europe/Kyiv to tzdata (missing from previous commit)
2022-08-23 06:43:21 +00:00
jan.nijtmans
2f8f82a2b1
Add Europe/Kyiv to tzdata (missing from previous commit)
2022-08-23 06:41:53 +00:00
jan.nijtmans
bc198d0133
Merge 8.6
2022-08-23 06:37:37 +00:00
jan.nijtmans
68494c34a7
Update tzdata to 2022c
2022-08-23 06:35:50 +00:00
jan.nijtmans
db0b1d3082
Update tzdata to 2022c
2022-08-23 06:32:49 +00:00
dgp
63505a86ca
merge 8.6
2022-08-22 13:56:15 +00:00
jan.nijtmans
7fd9e2f5fd
Fix build error in tclTest.c (conflict with TIP #630 ). Handled deleteProc correctly in Tcl_(Set|Get)CommandInfo.
2022-08-22 10:17:38 +00:00
jan.nijtmans
1baffa9080
Do github actions builds on Ubuntu 22.04 (was: 20.04)
2022-08-22 07:29:21 +00:00
jan.nijtmans
25934485e8
ubuntu-18.04 is deprecated
2022-08-22 07:22:29 +00:00
apnadkarni
6203b90b2a
Merge 8.7 winConsole fixes.
2022-08-22 04:24:08 +00:00
apnadkarni
192a96c334
Add two missing locks. Enable read-ahead if read fileevent registered even
...
for blocking console. Account for focus-in events in console buffer.
2022-08-22 03:50:43 +00:00
jan.nijtmans
267ce5dd65
ubuntu-18.04 is deprecated
2022-08-21 22:34:42 +00:00
jan.nijtmans
c42f34e333
Merge 8.7
2022-08-21 21:43:16 +00:00
jan.nijtmans
e0b98db0d7
Merge 8.7
2022-08-21 21:33:18 +00:00
jan.nijtmans
916d72ec1c
TIP #630 implementation: TclOO commands > 2^31
2022-08-21 21:31:24 +00:00
jan.nijtmans
24b5ca41d9
merge-mark
2022-08-21 21:12:22 +00:00
jan.nijtmans
e45303142d
Add (dummy) stub entries to TclOO (matching TIP #630 )
2022-08-21 21:00:30 +00:00
jan.nijtmans
f8ed9f5431
More type-casts in tclOOMethod.c (backported from 8.7)
2022-08-21 20:53:08 +00:00
jan.nijtmans
02c762f9ec
ClientData -> 'void *" in TclOO headers
2022-08-21 20:28:57 +00:00
apnadkarni
daf1875e01
Merged fix for bug [baa51423c2]
2022-08-20 17:09:54 +00:00
apnadkarni
839d38fbba
Added test for bug [baa51423c2]
2022-08-20 16:56:10 +00:00
apnadkarni
b00b14a7fd
Really closes [baa51423c28a3baf]
2022-08-20 12:16:10 +00:00
sebres
da40e7deb9
closes [baa51423c28a3baf]: needEvent must be initialized in cycle (for each watching channel)
2022-08-20 10:13:04 +00:00
griffin
f9e3b4dd74
Reimplement AbstrctList type structure to simplify. fix various bugs.
2022-08-19 18:08:39 +00:00
apnadkarni
de7a5967d0
Do tilde expansion when initializing from TCLLIBPATH and TM env vars
2022-08-19 17:02:47 +00:00
apnadkarni
e52c7c3a41
Implement file tildeexpand
2022-08-19 16:52:07 +00:00
apnadkarni
ff9ac0bfbd
Merge trunk
2022-08-19 05:49:58 +00:00
oehhar
9a1e8d3202
Correct option shortcut value
2022-08-18 20:20:10 +00:00
oehhar
dc113d8f28
TIP633 fconfigure -tolerantencoding: start command arguments
2022-08-18 20:16:05 +00:00
oehhar
41e8f7c843
Ticket [a11678b759]: improve after documentation for time <= 0.
2022-08-18 12:03:23 +00:00
griffin
9a179b6418
Bug fixes
2022-08-17 22:32:34 +00:00
griffin
2439b064ea
Implement lrange for arithseries. Code cleanup.
2022-08-16 18:33:47 +00:00
griffin
8bf1d3fbf1
Fix memory leak.
2022-08-15 15:23:24 +00:00
griffin
cb579a693a
sync with core-8-branch
2022-08-14 02:21:14 +00:00
griffin
83338ca1ed
Rename command from "range" to "lseq".
...
Remove public C API calls, not part of the TIP.
Fix shimmer in [join] command.
Implement GetElements call for ArithSeries.
2022-08-14 01:22:24 +00:00
griffin
298667e221
Fix UpdateString to handle general case. Fix bug with elements list.
2022-08-11 16:21:39 +00:00
griffin
129d7aee61
Fix memory leak with Tcl_AbstractListObjGetElements.
2022-08-10 17:28:09 +00:00
griffin
92f5f9afc6
Make AbstractListRepPtr part of the public API as Tcl_AbstractListRepPtr.
...
Fix bug with ArithSeries Reverse function.
2022-08-10 04:21:16 +00:00
apnadkarni
f3b81a9854
Fix Windows Visual C++ build
2022-08-09 16:07:24 +00:00
griffin
7561d600a6
Add version number to AbstractList implementation. Make sure lsort and lreplace do not shimer their input argument.
2022-08-08 23:52:43 +00:00
griffin
7030b2b274
Abstract Lists (TIP-225) initial implementation.
2022-08-08 19:38:19 +00:00
dgp
9c7a5755f2
merge 8.6
2022-08-08 12:41:18 +00:00
apnadkarni
b4eda6649f
Remove code that was ifdef'ed out
2022-08-07 10:11:42 +00:00
apnadkarni
c0481e8305
TIP 631 - lsubst command
2022-08-07 07:16:38 +00:00
apnadkarni
328212a8ec
Create new branch named "tip-631"
2022-08-06 16:06:05 +00:00
apnadkarni
c35f73ae26
Remove knownBug constraint now that apply has been fixed
2022-08-06 16:00:14 +00:00
apnadkarni
6b01089ea3
Merge core-8-branch
2022-08-06 15:51:11 +00:00
apnadkarni
90b60f2084
Added file home command for (possible) Tcl 9 TIP 602 migration
2022-08-06 03:12:49 +00:00
apnadkarni
6fa6c0b201
Create new branch named "tip-602-87"
2022-08-06 01:38:33 +00:00
max
228c1134e2
Fix a case of lf not being flushed in certain cases when the crlf sequence gets split across two buffers on channels in crlf mode with line buffering [ https://core.tcl-lang.org/tcllib/tktview?name=c9d8a52fe ]
2022-08-04 15:26:18 +00:00
max
eb3d10d523
Fix a case of lf not being flushed in certain cases when the crlf sequence gets split across two buffers on channels in crlf mode with line buffering [ https://core.tcl-lang.org/tcllib/tktview?name=c9d8a52fe ]
2022-08-04 15:15:46 +00:00
max
7c269c207f
Fix a case of lf not being flushed in certain cases when the crlf sequence gets split across two buffers on channels in crlf mode with line buffering [ https://core.tcl-lang.org/tcllib/tktview?name=c9d8a52fe ]
2022-08-04 15:09:59 +00:00
apnadkarni
7754129cab
Update tests for TIP 602
2022-08-01 17:07:54 +00:00
apnadkarni
515f8ab044
Add 'file home' command
2022-07-31 11:54:14 +00:00
apnadkarni
d2518017c7
Merged trunk.
2022-07-31 06:32:22 +00:00
jan.nijtmans
4e9c7a9ae0
Undo knownBug constraint: no longer necessary
2022-07-30 21:47:58 +00:00
jan.nijtmans
e4e7ee53a4
Merge 9.0 and tip-625
2022-07-30 20:48:45 +00:00
apnadkarni
12afabecd7
Garbage collect unreferenced elements in lset implementation. Add tests for
...
garbage collection for commands that modify lists.
2022-07-29 16:41:47 +00:00
sebres
13384df4af
merge 8.7
2022-07-29 11:10:47 +00:00
sebres
2da979cd8e
amend for [4eb3a155ac] SF-fix: 8.7 specific implementation and warnings silencing
2022-07-29 10:55:37 +00:00
sebres
13c23e7627
merge 8.6 (apply SF fix)
2022-07-29 10:46:27 +00:00
sebres
333f084b63
merge branch bug-4eb3a155ac--procptr-bytecode, fixes SF [4eb3a155ac] and similar corner cases: reset corresponding bodyPtr->procPtr if procPtr gets released in TclProcCleanupProc, also recompile body if its procPtr is not the same as supplied.
2022-07-29 09:51:55 +00:00
jan.nijtmans
8f94fc24ac
Merge 8.7
2022-07-28 10:52:33 +00:00
jan.nijtmans
b2135d370a
Merge 8.6
2022-07-28 10:14:14 +00:00
jan.nijtmans
af346e6e70
merge tip-625
2022-07-27 16:21:59 +00:00
jan.nijtmans
f5ba1ba55f
Merge tip-625
2022-07-27 16:19:42 +00:00
apnadkarni
25b5f03d7a
Final prep for TIP625 vote
2022-07-27 16:19:36 +00:00
sebres
a66ed8e238
fixes [4eb3a155ac] and similar segfaults: reset corresponding bodyPtr->procPtr if procPtr gets released in TclProcCleanupProc, also recompile body if its procPtr is not the same as supplied.
2022-07-27 15:56:13 +00:00
sebres
cf9f33de53
cherry-pick branch apn-apply-bug (only test without the fix) to 8.6
2022-07-27 15:48:13 +00:00
sebres
63adb89925
closes [b3977d199b] - don't reset INPUT_SAW_CR unless the buffer get really translated (missing "\r" caused that flag got reset too early, because the translation takes place at next round by EOF)
2022-07-27 13:29:05 +00:00
apnadkarni
9e77fc653d
List rep tests for lappend,lset,lassign,lremove,lrange,lpop
2022-07-26 17:20:16 +00:00
jan.nijtmans
856edbc25b
Make testapplylambda work on Windows with gcc too
2022-07-25 21:12:10 +00:00
jan.nijtmans
62933f5324
merge-mark
2022-07-25 14:08:21 +00:00
jan.nijtmans
ea4d395360
merge-mark
2022-07-25 14:05:59 +00:00
jan.nijtmans
62e24a0269
execvpw/seteuidw don't exist. Fix some other signatures in compat/unistd.h
2022-07-25 13:57:37 +00:00
dgp
7c1a9c588c
merge 8.6
2022-07-25 13:10:16 +00:00
apnadkarni
f0c979fba7
Tests for spanned lists with shared reps
2022-07-25 06:51:54 +00:00
jan.nijtmans
33683032c2
Merge tip-625
2022-07-24 20:41:32 +00:00
jan.nijtmans
12039fa008
Merge 9.0
2022-07-24 20:10:51 +00:00
jan.nijtmans
c0b4b17c11
Fix windows build (invalid '&'). Eliminate end-of-line spacing
2022-07-24 20:04:58 +00:00
griffin
eb4b6b9d49
sync up with core-8-brnach.
2022-07-23 16:04:53 +00:00
jan.nijtmans
4b57621b7a
Merge 8.7
2022-07-22 22:10:27 +00:00
jan.nijtmans
b2ce09bd9e
Merge 8.6
2022-07-22 21:57:42 +00:00
jan.nijtmans
518ff0b0d9
tcltest 2.5.4 -> 2.5.5
2022-07-22 21:42:24 +00:00
sebres
49867f2fd3
correctly show the execution time unit by usec (µs) if testing on systems with not utf-8 default system encoding (e. g. windows)
2022-07-22 19:19:26 +00:00
griffin
91d2dee101
Rewrite argument processing code. All correct and error conditions are handled. Add some new tests and disable some tests that should maybe work.
2022-07-22 19:15:12 +00:00
sebres
f7aabfbd54
restore FF-char (fossil seems to loss form feed if commits with convertion from CRLF to LF)
2022-07-22 18:49:27 +00:00
sebres
47699b8fff
EOF seemed to reset INPUT_SAW_CR previously, so do it now explicitely (satisfying the test ?chan?io-6.46)
2022-07-22 18:38:30 +00:00
sebres
255250308e
fixes [b3977d199b] - don't reset INPUT_SAW_CR unless the buffer get really translated (missing "\r" caused that flag got reset too early, because the translation takes place at next round by EOF)
2022-07-22 17:41:48 +00:00
sebres
49f09ae8c2
extends test io-29.36.2 for better illustration when we'll get extra NL - if no "\r" in last buffer, so only EOF causes exit from gets (flag INPUT_SAW_CR gets reset incorrectly)
2022-07-22 17:36:57 +00:00
sebres
c3cc26df50
fixes logical error in test io-29.36.1 (translation {auto} causes that answer "client" reaches the server-side as "client\r\n", and gets by translation {binary} behaves nearly identical to {lf} mode, so sends "really client\r?\r" in the next question), switching to {auto lf} now
2022-07-22 16:22:22 +00:00
jan.nijtmans
1fd08ea7d0
Merge 8.7
2022-07-22 14:38:47 +00:00
jan.nijtmans
aa5c8dabee
Merge 8.6
2022-07-22 13:59:37 +00:00
sebres
90b553a319
rebase (merged with current 8.6)
2022-07-22 13:35:19 +00:00
sebres
b69f262ad8
amend to [f3db59139e] (fix [713653b951]) - i386 only, resolve mixed declarations and code (forbiddeen in ISO C)
2022-07-22 13:10:32 +00:00
apnadkarni
5f5c1bf7f1
Fix and test crash using apply when the passed argument
...
does NOT have already Lambda internal representation but the body
of the lambda DOES have an internal ByteCode representation.
2022-07-22 11:10:15 +00:00
apnadkarni
951e955d2c
Added testapplylambda to illustrate bug in apply when the passed argument
...
does NOT have Lambda internal representation but the body of the lambda
DOES have an internal ByteCode representation.
2022-07-22 06:32:40 +00:00
sebres
7af0d34d1f
added tests illustrating bug [b3977d199b]
2022-07-21 18:55:30 +00:00
apnadkarni
c0d9e88a16
Create new branch named "apn-apply-bug"
2022-07-21 16:09:11 +00:00
jan.nijtmans
ccd2ac73e9
Merge 8.7
2022-07-21 15:28:09 +00:00
jan.nijtmans
57f0eb9556
More TclGetStringFromObj() usage
2022-07-21 14:03:54 +00:00
dgp
707c03da77
merge 8.6
2022-07-21 12:58:09 +00:00
jan.nijtmans
6d64f87088
Merge 8.7
2022-07-20 16:36:08 +00:00
jan.nijtmans
34a90fef7a
Wrong escape in encoding.n
2022-07-20 16:25:03 +00:00
jan.nijtmans
2da45449d7
Missing "package require tcl::test", this causes test failures on Windows with gcc
2022-07-20 08:32:16 +00:00
apnadkarni
7f01d26c89
merge fork
2022-07-20 03:16:59 +00:00
apnadkarni
387ec0ad0a
Fixes for listrep-3.15,17. Add tests for spanned intreps
2022-07-20 03:16:16 +00:00
jan.nijtmans
db9786102c
Mark apply-9.1 as "knownBug", since it's failing in a --enable-symbols=mem builds. Still need to be fixed! See [ https://github.com/tcltk/tcl/runs/7404340406?check_suite_focus=true ]
2022-07-19 12:38:33 +00:00
jan.nijtmans
25c9cb2e55
merge-mark
2022-07-19 12:21:57 +00:00
jan.nijtmans
1fc31a71b8
Undo changes in tclDecls.h from previous commit: Tk still needs it
2022-07-19 12:14:21 +00:00
jan.nijtmans
2310d12319
Merge 8.7
2022-07-19 09:56:17 +00:00
jan.nijtmans
5d45d73b29
Make sure that tclAppInit.c is never built with -DUSE_TCL_STUBS, so we don't need those dirty tricks in it any more.
2022-07-19 09:50:08 +00:00
jan.nijtmans
5131efcb13
Merge 8.7
2022-07-19 08:56:37 +00:00
jan.nijtmans
6f094ddde1
Merge 8.6
2022-07-19 08:40:05 +00:00
jan.nijtmans
aefbc875ac
Update compat/stdlib.h, prevent conflict with modern signature of those functions.
2022-07-19 08:38:41 +00:00
jan.nijtmans
850b3e24a8
Make a start converting -1 -> TCL_INDEX_NONE where appropriate
2022-07-19 08:35:05 +00:00
dgp
599cd8496e
merge 8.6
2022-07-18 15:35:03 +00:00
apnadkarni
34288c7bfb
Batch of tests for unshared lists with span
2022-07-18 15:23:13 +00:00
apnadkarni
d4470195f5
Batch of tests for unshared lists with span
2022-07-18 14:20:11 +00:00
jan.nijtmans
bd7c6ae5d3
Merge tip-625
2022-07-18 12:57:14 +00:00
jan.nijtmans
004fe2d352
Updste stdlib.h (add missing functions). Restructure tclAppInit.c
2022-07-18 11:56:23 +00:00
jan.nijtmans
b0dd51b115
Only use -DBUILD_tcl for shared/static library
2022-07-18 11:07:59 +00:00
apnadkarni
be522119ab
Another batch of white box listrep tests
2022-07-17 17:00:52 +00:00
jan.nijtmans
172de73136
Merge 8.7
2022-07-17 13:14:34 +00:00
jan.nijtmans
c2350850a9
Merge 8.7
2022-07-17 13:13:24 +00:00
jan.nijtmans
86196ac204
Merge 8.6
2022-07-17 13:05:32 +00:00
jan.nijtmans
fb1fd5d59f
Fix [713653b951]: Floating point precision problems on x86 musl
2022-07-17 13:03:42 +00:00
jan.nijtmans
9e8528863d
Fix [713653b951]: Floating point precision problems on x86 musl
2022-07-17 12:57:53 +00:00
griffin
59814de67b
Fix nroff errors in range man page.
2022-07-16 17:25:33 +00:00
apnadkarni
a034ecec4f
First few list representation tests
2022-07-16 17:22:11 +00:00
apnadkarni
f4e50b43c7
Optimize couple of special cases:
...
- If unshared, prefer in-place deletion at end to span creation.
- Range on entire list.
2022-07-16 15:53:38 +00:00
Kevin B Kenny
c1af880cfe
Restore FP control word on conversion of zero values.
...
Sneak path existed that failed to restore the floating point
control word when scanning a zero value. The result was that
floating point rounding was incorrectly left set to 53-bit
significance, round-to-even, which is incompatible with the
math library from musl.
2022-07-15 17:11:41 +00:00
apnadkarni
269b0fd3c4
Start on list representation black box tests
2022-07-15 15:50:26 +00:00
jan.nijtmans
91c060ce82
'result' variable should be 'int', not 'ListSizeT'
2022-07-14 15:44:53 +00:00
jan.nijtmans
41c87a4bf5
More progress
2022-07-14 15:25:47 +00:00
jan.nijtmans
a41449f1cd
First shot at TIP #625 for Tcl 9.0.
...
Mark lrepeat-1.8 as 'knownBug', that's OK for now.
2022-07-14 12:35:19 +00:00
jan.nijtmans
393e14cb3d
Put '}' and 'else' at the same line everywhere (code formatting)
2022-07-14 10:57:27 +00:00
jan.nijtmans
7c405a789e
merge-mark
2022-07-14 10:55:47 +00:00
jan.nijtmans
554ed37525
Same bug-fix as [b79df322a9], but then for Tcl_AppendUnicodeToObj()
2022-07-14 10:53:55 +00:00
griffin
cd56027275
Remove support for double (real) values.
...
Fix a couple cases of shimmering.
Don't update the string rep just to convert an ArithSeries to a List.
Manpage update.
2022-07-14 03:23:49 +00:00
bch
4e2efebfb6
floor() wants math.h *at least* on NetBSD, and appears other *nix too(?)
2022-07-14 01:42:25 +00:00
bch
86691e22e4
"range", Tcl_RangeObjCmd() to proper compilation unit
2022-07-14 01:33:01 +00:00
bch
790c4449ac
typo; nfc
2022-07-14 01:16:01 +00:00
jan.nijtmans
1cf5b65db2
Merge 8.7 (Make ListStore->slots a TCLFLEXARRAY)
2022-07-13 13:17:45 +00:00
jan.nijtmans
20aa103e7b
Merge 8.7
2022-07-13 13:03:08 +00:00
jan.nijtmans
037f0d4f7e
Make List->elements a TCLFLEXARRAY. Improve documentation (backported from 9.0)
2022-07-13 12:37:35 +00:00
apnadkarni
2f414ecd74
Merge core-8-branch
2022-07-13 09:41:46 +00:00
jan.nijtmans
8d65c702fa
merge-mark
2022-07-13 07:35:21 +00:00
jan.nijtmans
a3eea6dc3f
Fix build with -DTCL_NO_DEPRECATED
2022-07-13 07:33:57 +00:00
dgp
527f510103
merge 8.6
2022-07-12 20:33:24 +00:00
griffin
f484f2ebf5
Fix issue with sign of step value: if the sign of the step value is in conflict with the range, the command will return an empty list instead of an error. Add support for the form [range 20 by 4] which defines a range 20 elements long, starting at 0, with a step value of 4.
2022-07-12 18:57:03 +00:00
jan.nijtmans
8320295018
merge-mark
2022-07-12 13:31:06 +00:00
jan.nijtmans
9c5561ea56
Fix TCL_UTF_MAX == 3 build
2022-07-12 13:30:03 +00:00
apnadkarni
1e6f410bd2
Fix [b79df322a9]. Tcl_GetUnicode/Tcl_NewUnicodeObj crash. Add tests
2022-07-12 12:31:57 +00:00
jan.nijtmans
f55203403c
Fix [b79df322a9] follow-up: Tcl_NewUnicodeObj truncates strings
2022-07-12 12:23:54 +00:00
jan.nijtmans
595c3bb71f
Fix build
2022-07-12 09:57:46 +00:00
jan.nijtmans
640839dd01
Merge 8.7
2022-07-12 09:22:32 +00:00
jan.nijtmans
a6ed76df7c
Merge 8.7. Clean-up tclWinConsole.c the same way
2022-07-12 09:03:38 +00:00
jan.nijtmans
505c18d593
Code cleanup (use {} in if/else statemenets)
2022-07-12 08:20:45 +00:00
apnadkarni
132576b7dd
Merge 8.7 - winConsole.test
2022-07-12 03:14:30 +00:00
apnadkarni
91982ba752
Fix Windows console fconfigure tests to require interactive constraint.
...
Note this means tests are disabled when run with nmake test
2022-07-12 03:10:50 +00:00
griffin
31f8d4fe43
Implement TIP-225 ArithSeries. And other changes.
2022-07-12 00:58:16 +00:00
jan.nijtmans
c297ad4104
Merge 8.7
2022-07-11 11:34:49 +00:00
jan.nijtmans
b88529b2f5
Add "win" constraints to tests/winConsole.test, and change one expected test-results on Windows
2022-07-11 11:24:10 +00:00
jan.nijtmans
424c53931b
Merge 8.7
2022-07-10 20:42:29 +00:00
jan.nijtmans
4a38609129
Minor simplification: Use RingBufferHasFreeSpace() instead of RingBufferFreeSpace
2022-07-10 20:40:15 +00:00
jan.nijtmans
a3ea58d94b
Merge 8.7
2022-07-10 19:58:03 +00:00
apnadkarni
ea55b6cb74
Blech. Remove unused variable
2022-07-10 14:41:19 +00:00
apnadkarni
1626732c12
New Windows console driver. Fixes [21280817d1] thread proliferation and
...
[44bbccdd8c] fconfigure std{out,err}.
2022-07-10 14:06:35 +00:00
apnadkarni
199b4d1e23
Merged core-8-branch
2022-07-10 13:56:38 +00:00
apnadkarni
063aecb05d
Bypass reader thread for blocking reads.
2022-07-10 10:21:06 +00:00
apnadkarni
a60733d7ea
Merge core-8-branch
2022-07-09 05:59:59 +00:00
apnadkarni
3674905dbd
Resolve ~ for MacOS during initialization
2022-07-08 13:48:36 +00:00
apnadkarni
9336a020ee
Start on TIP-602 implementation. Work in progress
2022-07-08 04:06:35 +00:00
jan.nijtmans
6b55b10a00
Eliminate totalElems (left-over from 'lrepeat'). Bug in checking LIST_MAX (also originally taken from 'lrepeat')
2022-07-07 13:03:38 +00:00
jan.nijtmans
1d4256a37e
Review: 1) cleanupTests missing in "range.test". 2) status should be int, not Tcl_WideInt 3) make opmode/bymode enum. 4) Tcl_GetWideIntFromObj(NULL, ..), not poluting interp too much. 5) Use TCL_LL_MODIFIER in stead of "%ll". 6) LIST_MAX could be > INT_MAX (in Tcl 9)
2022-07-07 12:44:45 +00:00
jan.nijtmans
b0874b989e
Merge 8.7
2022-07-07 11:02:23 +00:00
jan.nijtmans
e6daa71c1a
Merge 8.6
2022-07-07 11:01:39 +00:00
jan.nijtmans
403569ef17
Unnecessary quotes in win/rules.vc
2022-07-07 10:59:46 +00:00
griffin
9d171e0b8b
Improve error checking and testing.
2022-07-06 19:15:41 +00:00
apnadkarni
aa59356ae9
Create new branch named "tip-602"
2022-07-06 16:02:18 +00:00
griffin
066a66253f
Missed step == 0 check.
2022-07-05 22:15:38 +00:00
griffin
898e72c904
(bares some resemblance to) TIP-629 Implementation.
2022-07-05 21:32:22 +00:00
apnadkarni
eb33dbb186
Fix channel close on thread exit if other threads exist. Add winconsole tests.
2022-07-05 15:54:00 +00:00
jan.nijtmans
0e71e665cb
Merge 8.7
2022-07-05 12:19:33 +00:00
jan.nijtmans
1858f01eae
Merge 8.6
2022-07-05 12:18:17 +00:00
jan.nijtmans
1469d7388d
Prevent warning: zero size arrays are an extension [-Wzero-length-array], when using C99
2022-07-05 12:03:18 +00:00
jan.nijtmans
9e72f54150
Merge 8.7
2022-07-05 10:22:57 +00:00
jan.nijtmans
73390782ea
Simplify TIP #609 implementation, make TCL_QUEUE_ALERT_IF_EMPTY work for all positions and improve documentation
2022-07-05 10:20:02 +00:00
apnadkarni
dda0e7f5f6
Permit direct console writes for synchronous output calls
2022-07-04 16:54:18 +00:00
apnadkarni
4ff49ce2f1
Merge core-8-branch
2022-07-04 15:59:37 +00:00
apnadkarni
8a6f7d588d
Merge core-8-branch
2022-07-04 15:33:28 +00:00
apnadkarni
b5282f380b
Rework reader thread to not do read-ahead as console stdin mode might change
2022-07-04 15:32:29 +00:00
jan.nijtmans
64a63fa7c5
Merge 8.7
2022-07-04 11:41:41 +00:00
jan.nijtmans
5ef498d3ec
Merge 9.0
2022-07-04 11:39:31 +00:00
jan.nijtmans
b78fe450ce
Merge 8.7
2022-07-04 11:36:13 +00:00
jan.nijtmans
62f9be3bc2
Some -1 -> TCL_INDEX_NONE (Thanks, Gustaf!)
2022-07-04 11:30:20 +00:00
jan.nijtmans
ebf3d00e75
TIP #619 : New TCL_COMBINE flag for Tcl_UniCharToUtf()
2022-07-04 11:21:06 +00:00
jan.nijtmans
4d0bc87fb4
Add TCL_COMBINE, just a NOP for now (will get a meaning in 9.0
2022-07-04 08:31:08 +00:00
jan.nijtmans
a303a1324a
Remove dead code
2022-07-03 22:46:17 +00:00
jan.nijtmans
2a491f190d
Merge 8.7
2022-07-03 22:32:18 +00:00
jan.nijtmans
2eb0485533
TIP #609 : Enhance Tcl_ThreadQueueEvent()
2022-07-03 22:31:11 +00:00
apnadkarni
6f74f207dd
Fix bug 44bbccdd8c. fconfigure was broken for 8.7 console channel
2022-07-03 15:48:33 +00:00
apnadkarni
9f63bab8c7
Fix benign gcc unused code warnings
2022-07-03 08:00:32 +00:00
apnadkarni
22084be3ce
Eliminate unnecessary thread wakeups.
2022-07-03 07:40:45 +00:00
jan.nijtmans
2ae930bbe4
Merge 8.7
2022-07-02 19:52:54 +00:00
jan.nijtmans
62e1bc5cb5
TIP #607 : -failindex option for encoding convertto/convertfrom
2022-07-02 19:39:22 +00:00
jan.nijtmans
6d4603bb45
Merge 9.0
2022-07-01 15:28:57 +00:00
jan.nijtmans
2384f8aa81
Merge 8.7
2022-07-01 15:26:25 +00:00
jan.nijtmans
bf70c2d93b
Merge 8.7
2022-07-01 15:21:37 +00:00
jan.nijtmans
64919a8531
Merge 8.6
2022-07-01 15:20:25 +00:00
jan.nijtmans
29ac91cbfe
Test for TclOO 1.1.0. Remove some useless type-casts
2022-07-01 15:14:15 +00:00
jan.nijtmans
d51b6f7045
TclOO version -> 1.3.0
2022-07-01 14:55:42 +00:00
jan.nijtmans
1d76a99d63
Merge 8.7
2022-07-01 12:31:38 +00:00
jan.nijtmans
fabaafee56
Merge 9.0. Fix MacOSX build
2022-07-01 11:53:18 +00:00
apnadkarni
6d20feb2f0
Merge core-8-branch. Wakeup console reader thread when data read.
2022-07-01 05:58:13 +00:00
jan.nijtmans
539282ee0f
Merge 8.7
2022-06-30 13:46:47 +00:00
jan.nijtmans
57b2b2606f
Merge-mark
2022-06-30 11:32:19 +00:00
jan.nijtmans
83253ae734
Fix [b79df322a9]: Tcl_NewUnicodeObj truncates strings
2022-06-30 11:31:15 +00:00
apnadkarni
71bdb52035
Notify other threads if one thread closes a Windows console channel
2022-06-29 15:56:06 +00:00
apnadkarni
5f73d7d78e
Finishing touches. Remove obsolete code
2022-06-28 15:42:14 +00:00
jan.nijtmans
9fccffbdfa
Merge 8.7. Don't worry about Tcl_GetErrorLine() any more
2022-06-28 09:42:08 +00:00
jan.nijtmans
3de10aae37
Merge 8.6
2022-06-28 09:39:23 +00:00
jan.nijtmans
0472b619fb
typo's
2022-06-28 09:38:00 +00:00
jan.nijtmans
3df7fe883e
Handle tclIntPlatDecls.h
2022-06-28 08:02:08 +00:00
apnadkarni
59571d7b3f
Ticket #21280817 - Windows console rewrite to only create one thread per stdio channel.
...
Functional, but not complete.
2022-06-27 16:02:37 +00:00
jan.nijtmans
1ff4bd27f4
Fix superflous !endif
2022-06-27 10:07:13 +00:00
jan.nijtmans
2f8db2f926
Add OPTS=tcl8
2022-06-26 22:49:16 +00:00
jan.nijtmans
7974d5f010
Fix TclpGetClicks/TclpGetSeconds's Tcl 8 compabitility
2022-06-26 21:59:53 +00:00
jan.nijtmans
9b6113c6b1
Better Tcl8 compatibility for tclPlatDecls.h and tclInt.h
2022-06-26 21:23:55 +00:00
jan.nijtmans
14d065088b
Merge 8.7
2022-06-25 10:59:54 +00:00
jan.nijtmans
946598bb9f
Merge-mark 9.0. Use Tcl_Size (but not in tclWinDde.c/tclWinReg.c)
2022-06-24 20:55:03 +00:00
jan.nijtmans
8a3c1f7a68
merge-mark
2022-06-24 20:11:38 +00:00
jan.nijtmans
aee2d45ff2
Merge 8.6
2022-06-24 20:06:31 +00:00
jan.nijtmans
17e23452bf
typo's
2022-06-24 20:02:06 +00:00
jan.nijtmans
b456ce6d74
Complete removal of version from stub library
2022-06-24 14:44:08 +00:00
jan.nijtmans
5aa22835cf
Merge 9.0
2022-06-24 14:29:01 +00:00
jan.nijtmans
294105b452
Merge 8.7
2022-06-24 14:28:06 +00:00
jan.nijtmans
c79b2bb152
Merge 8.6
2022-06-24 14:27:08 +00:00
jan.nijtmans
0ea8daaec8
slightly stricter checking for TCL_MAJOR_VERSION in rules.vc
2022-06-24 14:26:14 +00:00
jan.nijtmans
e16ffc4a1e
Merge 9.0
2022-06-24 14:01:15 +00:00
jan.nijtmans
5db5b84aef
Merge 8.7
2022-06-24 13:56:34 +00:00
jan.nijtmans
9ed525256b
Resolve the TODO: What's going on here? Document or eliminate.
...
Eliminate usage of TCL_MAJOR_VERSION.
Allow tcl.h to be used when compiling with -DTCL_MAJOR_VERSION=8
2022-06-24 13:48:19 +00:00
jan.nijtmans
5ad300bf4a
Use TCL_MAJOR_VERSION to document (kind of) what's the difference between Tcl8 and Tcl9
2022-06-24 13:30:14 +00:00
jan.nijtmans
6ebde0d075
Better tcl8 compatibility for tclInt.h
2022-06-24 13:07:16 +00:00
jan.nijtmans
5c49161ab0
merge-mark
2022-06-24 11:42:14 +00:00
jan.nijtmans
4a20ed377e
Merge 8.7
2022-06-24 11:41:39 +00:00
jan.nijtmans
1a619a80d9
Fix for commit [c8bd577a119f2259], which is (slightly) wrong: allowed space should be between '#' and 'define'
2022-06-24 11:40:47 +00:00
jan.nijtmans
232f84b9dc
Merge 9.0
2022-06-24 11:36:53 +00:00
jan.nijtmans
c355f9a6cf
Merge 8.7
2022-06-24 11:10:30 +00:00
jan.nijtmans
9c5e454141
Don't use TCL_HASH_TYPE for epoch/refCount type variables, keep it the same as it was in Tcl 8.6
2022-06-24 10:41:14 +00:00
jan.nijtmans
a6fb6b32ca
Merge 8.7
2022-06-24 07:17:05 +00:00
jan.nijtmans
a769ee494c
Put back seemingly useless typedefs (yes, there are picky compilers)
2022-06-24 07:12:32 +00:00
jan.nijtmans
5bad06a9a4
Don't use (unsigned)-1 -> TCL_INDEX_NONE
2022-06-24 07:11:17 +00:00
jan.nijtmans
b988139b8a
Merge 9.0
2022-06-23 15:56:42 +00:00
jan.nijtmans
11766bbb13
Merge 8.7
2022-06-23 15:47:16 +00:00
jan.nijtmans
f527a3f456
more "unsigned int" -> TCL_HASH_TYPE
2022-06-23 15:33:48 +00:00
jan.nijtmans
c053495b3e
Merge 8.7
2022-06-23 15:02:41 +00:00
jan.nijtmans
355be4d5f2
Merge 9.0
2022-06-23 15:00:46 +00:00
jan.nijtmans
78d1e3a624
Merge 8.7
2022-06-23 14:58:44 +00:00
jan.nijtmans
65cf5b3966
Restore NS_DEAD flag value (from 0x04 back to 0x02, how it was in Tcl 8.6). It is used in nsf, changing the value in Tcl 8.7 would mean a binary incompatibility.
2022-06-23 14:57:28 +00:00
jan.nijtmans
0bdd633abc
Merge 9.0
2022-06-23 14:06:31 +00:00
jan.nijtmans
d36655ac53
Merge 8.7. Update documentation
2022-06-23 13:16:17 +00:00
jan.nijtmans
b360516559
Merge 8.6
2022-06-23 12:58:42 +00:00
jan.nijtmans
a96dae7f0f
Slightly better integer overflow handling in Tcl_ListObjReplace()
2022-06-23 12:57:09 +00:00
jan.nijtmans
ca4bfa2564
Merge 9.0
2022-06-23 12:26:06 +00:00
jan.nijtmans
6487dd7257
Merge 8.7
2022-06-23 12:24:05 +00:00
jan.nijtmans
84e0e40683
Remove unused typedef's
2022-06-23 12:21:13 +00:00
jan.nijtmans
1d210f93a2
Use "void *" in stead of ClientData in tclInt.decs/tclOO.decls (backported from 9.0)
2022-06-23 12:20:15 +00:00
jan.nijtmans
01abe6a8b4
Merge 9.0
2022-06-23 09:49:41 +00:00
jan.nijtmans
5f8f24a948
Merge 8.7
2022-06-23 09:11:51 +00:00
jan.nijtmans
d8ca9aa406
Use TCL_HASH_TYPE in stead of "unsigned int", wherever the Tcl 9.0 type is "size_t", in tclDecls.h
2022-06-23 08:58:56 +00:00
jan.nijtmans
2d7f0917cb
Use "void *" in stead of ClientData in tclDecls.h (backported from 9.0)
2022-06-23 08:56:45 +00:00
jan.nijtmans
5ea6733979
Forget about TCL_8_COMPAT
2022-06-22 22:25:44 +00:00
jan.nijtmans
bb0f1f8083
Merge 9.0
2022-06-22 16:50:37 +00:00
jan.nijtmans
178df447b7
Merge 8.7
2022-06-22 16:49:46 +00:00
jan.nijtmans
38b53dd47e
Allow spacing between '#' and 'define', while recognising version in header-files
2022-06-22 16:36:02 +00:00
jan.nijtmans
daf02b80dd
No quotes when testing for TCL_MAJOR_VERSION
2022-06-22 14:24:51 +00:00
jan.nijtmans
35c8341ccb
Merge 8.7
2022-06-20 21:50:19 +00:00
jan.nijtmans
0cbabbe0d8
Merge 9.0
2022-06-20 21:49:28 +00:00
jan.nijtmans
26e99bad85
Fix (internal) TclFindElement() signature (int -> size_t)
2022-06-20 21:47:26 +00:00
jan.nijtmans
105bdf44be
More Tcl_Size
...
,
2022-06-20 21:26:54 +00:00
jan.nijtmans
c43ea691ad
Merge 8.7
2022-06-20 15:21:03 +00:00
jan.nijtmans
573a1e9219
More Tcl_Size
2022-06-20 15:13:48 +00:00
jan.nijtmans
7a44e1418d
indenting
2022-06-20 10:16:02 +00:00
jan.nijtmans
27975e7b9b
Merge 8.7
2022-06-20 10:11:16 +00:00
jan.nijtmans
ccabfb8506
update doc
2022-06-20 10:10:35 +00:00
jan.nijtmans
a9fa4bed1f
Merge 8.7
2022-06-20 09:47:14 +00:00
jan.nijtmans
8f87675b83
Merge 8.7
2022-06-19 20:27:55 +00:00
jan.nijtmans
d3517188b2
merge-mark
2022-06-19 20:26:02 +00:00
jan.nijtmans
e3b234e709
Implement Tcl_NRCallObjProc2
2022-06-19 19:32:59 +00:00
apnadkarni
31b740c312
Create new branch named "win-console"
2022-06-19 05:42:06 +00:00
jan.nijtmans
3233a0fe27
Merge 8.7
2022-06-15 20:49:42 +00:00
jan.nijtmans
474c08922f
(experimental) TclOO > 2**31 args
2022-06-15 15:12:27 +00:00
dgp
02669f7c03
merge 8.6
2022-06-15 12:46:04 +00:00
jan.nijtmans
d7db2aab5a
Merge 8.7
2022-06-15 12:24:51 +00:00
jan.nijtmans
a8ddc9d2a2
Merge 9.0
2022-06-15 12:23:22 +00:00
jan.nijtmans
de7e7bc0ba
Merge 9.0
2022-06-15 11:59:13 +00:00
jan.nijtmans
ba767ab772
Merge 9.0
2022-06-15 10:11:01 +00:00
jan.nijtmans
a24682c16d
Merge 9.0
2022-06-15 06:40:02 +00:00
jan.nijtmans
998ceebf50
Merge 8.7
2022-06-14 14:54:02 +00:00
jan.nijtmans
9e4e020313
Merge 8.7
2022-06-14 10:30:16 +00:00
apnadkarni
420a7fc15d
Start towards Tcl9 support
2022-06-13 16:15:15 +00:00
jan.nijtmans
94394a076d
Use Tcl_Size in dde/registry
2022-06-13 13:46:45 +00:00
jan.nijtmans
bde9c622c0
Merge 9.0
2022-06-13 12:11:38 +00:00
jan.nijtmans
887f84bb45
Use TCL_8_COMPAT to change Tcl_Size to ptrdiff_t
2022-06-13 07:32:21 +00:00
jan.nijtmans
21b4101075
Handle Tcl_GetByteArrayFromObj() better
2022-06-12 21:23:17 +00:00
jan.nijtmans
6187c67f3b
Handle list/dict compatibility better
2022-06-12 20:08:56 +00:00
jan.nijtmans
55031f3989
Handle Tcl_Close, Tcl_CallFrame and Tcl_StatBuf correctly
2022-06-12 19:27:26 +00:00
jan.nijtmans
778ad9fdfa
Enhance for Windows
2022-06-12 16:54:04 +00:00
jan.nijtmans
9aebf1d8a6
Merge 9.0
2022-06-12 16:35:57 +00:00
jan.nijtmans
98974ab123
Merge 9.0
2022-06-12 16:04:38 +00:00
jan.nijtmans
e396c1dd36
Make the idea (finally) work
2022-06-12 15:13:33 +00:00
jan.nijtmans
82fccbc6dc
Merge 9.0
2022-06-12 11:49:16 +00:00
apnadkarni
b5d8216129
Merge core-8-branch after TIP616
2022-06-12 03:05:41 +00:00
jan.nijtmans
3d3e5e89e2
Unicode 15.0.0 (Beta), to be released September 2022
2022-06-09 21:15:17 +00:00
jan.nijtmans
3c3ebea410
Merge 9.0
2022-06-09 20:25:18 +00:00
jan.nijtmans
a383c56d6c
Doc tweak
2022-06-09 12:39:29 +00:00
jan.nijtmans
54c3c4bc9b
Merge 8.7
2022-06-09 12:18:05 +00:00
jan.nijtmans
062bd7ee8f
Merge 8.7
2022-06-06 21:59:57 +00:00
dgp
9b1a7da59b
Bump to 8.6.13 for release
2022-06-06 16:51:24 +00:00
jan.nijtmans
cacfaf16ec
TIP #627 implementation
2022-06-01 19:34:43 +00:00
apnadkarni
830603d46e
Finish list performance scripts
2022-06-01 04:17:50 +00:00
apnadkarni
7d89acd1b2
Implement bidirection shift to distribute free space in list stores.
2022-05-29 11:44:27 +00:00
apnadkarni
7b9852676d
Rearrange output order to make comparisons easier.
2022-05-27 03:50:08 +00:00
apnadkarni
016ec0a646
Performance test scripts for list commands
2022-05-24 17:23:43 +00:00
apnadkarni
4c6744bbc9
TIP 625 - Re-implementation of lists
2022-05-24 17:20:33 +00:00
jan.nijtmans
d307130311
Merge 9.0
2022-05-19 15:05:42 +00:00
jan.nijtmans
59f20f23bd
Merge 9.0
2022-05-17 16:27:19 +00:00
jan.nijtmans
a83edfe07c
Update doc
2022-05-10 10:18:44 +00:00
jan.nijtmans
8e201fe70a
Merge 8.7. Update doc
2022-05-10 10:05:38 +00:00
jan.nijtmans
501eda93e6
Merge 8.7
2022-05-06 07:33:28 +00:00
jan.nijtmans
d3abc6b0f4
Merge 8.7
2022-04-29 20:10:31 +00:00
jan.nijtmans
d3662a9dca
re-structure, add more examples
2022-04-29 20:09:48 +00:00
jan.nijtmans
a77fa7db73
Merge 8.7
2022-04-26 17:15:30 +00:00
jan.nijtmans
c0d3b18e36
Merge 9.0
2022-04-26 16:02:00 +00:00
jan.nijtmans
77a24f6300
Merge 9.0
2022-04-26 07:19:51 +00:00
jan.nijtmans
af645c77b7
Merge 8.7
2022-04-21 15:37:15 +00:00
jan.nijtmans
43ea8e68e8
Simplify TclGetBoolFromObj() macro
2022-04-20 14:26:06 +00:00
jan.nijtmans
3073ed65fb
Merge 8.7
2022-04-20 14:08:24 +00:00
jan.nijtmans
f235d36b43
Merge 8.7
2022-04-15 15:08:54 +00:00
jan.nijtmans
ad9c975e41
Update documentation
2022-04-15 14:46:00 +00:00
jan.nijtmans
757c909881
Remove macro's for Tcl_GetBoolFromObj/Tcl_GetBool
2022-04-15 12:27:39 +00:00
jan.nijtmans
42cd1c73d2
Restore Tcl_GetBoolenanFromObj/Tcl_GetBoolenan signatures
2022-04-15 12:20:31 +00:00
jan.nijtmans
706ec57375
Use lower 5 bits of flags for sizeof(*(boolPtr))
2022-04-15 11:50:49 +00:00
jan.nijtmans
b668019660
Merge 8.7
2022-04-15 11:38:44 +00:00
jan.nijtmans
aabe2cbb33
Merge 9.0
2022-04-14 20:49:02 +00:00
jan.nijtmans
1391eda7db
Merge 9.0
2022-04-14 13:17:58 +00:00
jan.nijtmans
776820c81f
Merge 9.0
2022-04-08 13:01:04 +00:00
jan.nijtmans
cb0acd5a7d
Merge 9.0
2022-04-08 09:37:12 +00:00
jan.nijtmans
82a85e5b1e
RFE [655300]: Deprecate Tcl_MakeSafe()
2022-04-05 07:18:37 +00:00
jan.nijtmans
080dedf1a3
Merge 8.7
2022-04-04 11:58:34 +00:00
jan.nijtmans
2a97dea66c
Merge 8.7. Fix implementation as noted by Ashok.
2022-04-04 10:17:26 +00:00
apnadkarni
9b8a5d56d2
Panic if Testsaveresult call to Tcl_GetBoolFromObj overwrites memory.
2022-04-04 01:42:45 +00:00
jan.nijtmans
bcedb2cdf6
Add Ashok's example
2022-04-03 12:11:25 +00:00
jan.nijtmans
4717ea14fd
Merge 9.0
2022-04-01 13:12:08 +00:00
jan.nijtmans
05de893f6f
Fix some more testcases (involving string reverse/trim)
2022-04-01 09:48:44 +00:00
jan.nijtmans
9ad31cfcf3
Better errpr-handling
2022-03-31 13:48:51 +00:00
jan.nijtmans
d78db33c23
Handle objPtr == NULL / interp == NULL better
2022-03-31 13:37:09 +00:00
jan.nijtmans
c9e33a6348
uint??_t -> int??_t
2022-03-31 13:24:31 +00:00
jan.nijtmans
60308ec482
Merge 8.7. Make room for TIP #622 stub entries
2022-03-31 11:07:32 +00:00
jan.nijtmans
e0f543167d
Final tweaks in testcases
2022-03-31 10:08:13 +00:00
jan.nijtmans
e9f9cac4be
Oops
2022-03-31 09:44:20 +00:00
jan.nijtmans
e9e4041670
Minor change in utf.test
2022-03-31 07:20:00 +00:00
jan.nijtmans
3185a0b150
Merge 9.0. Restore some testcases working correctly with TCL_UTF_MAX=3
2022-03-31 07:08:34 +00:00
jan.nijtmans
a2a0ca2a17
Merge 9.0. Fix CONTINUATION macro, and testcases
2022-03-29 22:17:33 +00:00
jan.nijtmans
12e7efea0c
Merge 8.7. Renumber testcases in cmdAH.test.
2022-03-21 14:42:45 +00:00
jan.nijtmans
b19862400b
Merge 9.0
2022-03-18 14:04:05 +00:00
jan.nijtmans
a5055aa3db
Merge 9.0
2022-03-18 11:18:58 +00:00
jan.nijtmans
da9c340245
Rebase towards 8.7
2022-03-17 22:24:33 +00:00
oehhar
93218b5ab4
Merge fork
2022-03-17 19:57:38 +00:00
oehhar
ff13acf405
TIP607 encoding failindex: user documentation
2022-03-17 19:48:40 +00:00
jan.nijtmans
ce98d31d01
Eliminate "deprecated" constraint: doens't exist in 9.0 any more. Also remove unused variable
2022-03-17 17:52:46 +00:00
oehhar
ed7d678420
TIP607 encoding failindex: merge trunk. Correct the remaining use of TCL_ENCODING_STOPONERROR by !TCL_ENCODING_NOCOMPLAIN
2022-03-17 17:25:38 +00:00
oehhar
3fb8ab60ef
TIP607 encoding failindex: also implement encoding convertto, move tests to cmdAH.test, as the other user interface tests (expect one) is also there.
2022-03-17 16:30:59 +00:00
jan.nijtmans
e0cb5e5688
Merge fork
2022-03-17 15:40:37 +00:00
oehhar
6ab9fddde8
merge main
2022-03-17 14:12:07 +00:00
jan.nijtmans
63f259a68d
Merge 9.0
2022-03-17 13:34:35 +00:00
oehhar
190439cf96
TIP607 encoding failindex: correct error message, test bytecompiled version
2022-03-17 13:23:30 +00:00
oehhar
2370ce47bb
merge trunk
2022-03-16 18:26:01 +00:00
oehhar
48a30dd04e
TIP607 encoding failindex: revert ckeckin [add9ed8887] : just wait for symbol load in VS2015 and it will work. Sorry, Ashok !
2022-03-16 18:20:29 +00:00
jan.nijtmans
2ceb66085c
Merge 9.0. Don't combine surrogates when appending UTF-32 strings
2022-03-15 13:59:15 +00:00
oehhar
ea69616a5d
TIP607 encoding failindex: correct test which works now.
2022-03-15 10:28:48 +00:00
oehhar
60b2db50fc
win/makefile.vc: required correction for noembed,symbols to allow debugging with MS-VS2015. Otherwise, symbols are not detected within DLL.
2022-03-15 10:15:30 +00:00
oehhar
1975c98a5c
TIP607 encoding failindex: test correction
2022-03-15 07:09:40 +00:00
oehhar
fb7be1b475
TIP607 encoding failindex: get work out of 8.7 branch to this 9.0 branch. TIP is rebased.
2022-03-14 18:27:24 +00:00
oehhar
7413bedc26
Merge main
2022-03-14 18:25:32 +00:00
oehhar
99fa0d306f
TIP605 encoding failindex: prepare TCL 9.0 main branch with branch "encodings-with-flags" merged.
2022-03-14 18:06:31 +00:00
oehhar
938fc2c7a0
TIP607 encoding failindex: some tests and implementation (not working)
2022-03-14 17:39:22 +00:00
oehhar
e1f11871dd
TIP607 encoding failindex: options -failindex and -nocomplain may not both be specified
2022-03-14 16:10:27 +00:00
oehhar
9fdb32b8e2
TIP607 encoding failindex: start implementation
2022-03-14 15:46:35 +00:00
jan.nijtmans
e59865fa40
Merge 9.0
2022-03-11 15:20:04 +00:00
jan.nijtmans
02131d1f1b
Merge 9.0. Update documentation
2022-03-11 14:45:16 +00:00
jan.nijtmans
08666ed474
Merge 9.0
2022-03-03 16:06:27 +00:00
jan.nijtmans
b488f3edf6
TIP #619 implementation. tests not working yet
2022-03-03 13:05:38 +00:00
jan.nijtmans
1b24926d6b
Merge 8.7
2022-02-24 22:44:04 +00:00
jan.nijtmans
e3074edc8a
TIP #618 : New Tcl_GetBool* functions with INDEX_NULL_OK flag
2022-02-22 21:01:20 +00:00
jan.nijtmans
1a08f93391
Experiment: Make tcl.h from Tcl 9.0 usable to compile extensions for Tcl 8.x too (WIP)
2021-12-04 17:55:32 +00:00
jan.nijtmans
b6ce0622a6
Merge 8.7
2021-11-01 16:28:15 +00:00
dkf
136b650bda
Added a basic portable test of [fconfigure -stat]
2021-07-13 19:53:38 +00:00
dkf
65b685deca
Added documentation
2021-07-13 19:38:37 +00:00
jan.nijtmans
0865a0b6b0
Merge 8.7. Fix fstat() call in tclUnixChan.c, in case Tcl_StatBuf == struct stat64.
2021-06-29 15:02:53 +00:00
jan.nijtmans
79260bd695
Make tclWinChan.c compile again, fixing obvious implementation problems. Not tested if it actually works.
2021-06-29 08:54:19 +00:00
jan.nijtmans
1a062775d2
Fix iocmd-8.4 testcase
2021-06-28 12:32:35 +00:00
dkf
a855be143c
merge core-8-branch
2021-06-27 11:26:36 +00:00
dkf
5e07595538
First attempt at Windows implementation.
...
I don't develop on that platform, so this is extra dodgy!
2021-06-19 20:19:49 +00:00
dkf
5ed49bbc61
Added in missing field
2021-06-19 15:57:41 +00:00
dkf
fa0c0e6134
Start of implementing TIP 603: chan configure -stat
2021-06-19 14:59:05 +00:00
jan.nijtmans
a824edfe93
Fix filesystem-1.52* (since "//foo" is canonical now). Merge 8.7
2021-01-20 11:44:40 +00:00
jan.nijtmans
0fd2a17f4f
Merge 8.7
2021-01-19 13:54:31 +00:00
jan.nijtmans
f3b329dd28
Merge 8.7
2021-01-06 11:52:16 +00:00
dkf
496cff3ee1
merge core-8-branch
2021-01-05 20:41:27 +00:00
dkf
0f93742804
merge core-8-branch
2020-12-06 18:24:00 +00:00
kjnash
230aa0cc4b
Merge safe-extra-tests-8-7
2020-08-28 02:27:36 +00:00
kjnash
bba42d0251
Merge 8.7
2020-08-28 01:53:33 +00:00
kjnash
17058912aa
Merge 8.7
2020-08-11 18:23:18 +00:00
kjnash
c890584ff7
Merge 8.7
2020-07-30 11:51:27 +00:00
kjnash
6bad0fe2c0
Fix merge error in library/safe.tcl. Has effect only if using private command safe::DetokPath with interp name that has namespace separators.
2020-07-26 02:54:33 +00:00
kjnash
06feee5328
Merge tip-579-8-6. All tests now pass.
2020-07-25 13:13:14 +00:00
kjnash
0d094ff62a
Rename command safe::setAutoPathSync to safe::setSyncMode.
2020-07-25 12:24:26 +00:00
kjnash
f2815760c5
Rearrange tests in safe.test so they are in numerical order.
2020-07-25 12:15:14 +00:00
kjnash
fb22b96143
Merge safe-extra-tests-8-7; test safe-19.11 fails.
2020-07-25 03:12:43 +00:00
kjnash
1b7f4189f0
Rename command safe::setAutoPathSync to safe::setSyncMode. Add a section TYPICAL USE to doc/safe.n.
2020-07-25 02:08:08 +00:00
kjnash
b64759fbc4
Rearrange tests in safe.test so they are in numerical order, add 24 more tests of -accessPath/-autoPath cases.
2020-07-25 01:46:56 +00:00
kjnash
50e33715ba
For each slave, record a value of -autoPath instead of discarding it and relying on the value of ::auto_path in the slave. Clarify the distinction between the two, both in library/safe.tcl and in doc/safe.n. Amend four tests to expect the correct value. Add code to tests to examine both values where appropriate. Add three more tests for cases in which the distinction is important. Renumber and re-title tests in safe-stock86.test to correspond to those in safe.test, and add code to safe-stock86.test to set the Sync Mode.
2020-07-23 19:04:07 +00:00
kjnash
976ba568c7
Merge safe-bugfixes-8-6
2020-07-23 13:45:32 +00:00
kjnash
4d813970d4
Merge 8.7
2020-07-23 10:50:45 +00:00
kjnash
79e2759633
Merge tip-579-8-6
2020-07-23 10:18:27 +00:00
kjnash
a18c844695
Add tests for cases that might differ when ::auto_path is not synchronized. Renumber some tests not yet added to core, but do not yet reorder them. Change some test descriptions.
2020-07-23 10:12:25 +00:00
kjnash
e0834d672a
Merge tip-579-8-6
2020-07-23 01:17:48 +00:00
kjnash
ada13727e6
Merge safe-extra-tests-8-7
2020-07-23 01:08:23 +00:00
kjnash
142088c232
Merge safe-bugfixes-8-6
2020-07-23 01:02:44 +00:00
kjnash
356b2f5829
Move tests that depend on platform::shell from safe.test to safe-stock86.test, and replace with tests that use example packages.
2020-07-22 19:42:38 +00:00
kjnash
b7691676aa
Move tests that depend on platform::shell and http1.0 from safe.test to safe-stock86.test, and replace with tests that use example packages. Add -setup and -cleanup code where missing from tests that use AutoPathSync.
2020-07-22 19:38:22 +00:00
kjnash
9e0d60b4a2
Merge safe-extra-tests-8-7
2020-07-22 12:53:16 +00:00
kjnash
0839b91fcf
Merge safe-bugfixes-8-6
2020-07-21 22:48:30 +00:00
kjnash
969bd53c8a
Merge safe-extra-tests-8-7
2020-07-19 00:19:26 +00:00
kjnash
52aab51e7f
Merge safe-bugfixes-8-6
2020-07-18 23:20:21 +00:00
kjnash
3398002e97
Merge 8.7
2020-07-16 16:53:19 +00:00
kjnash
4e13b91290
Merge 8.6
2020-07-16 16:34:06 +00:00
kjnash
ba68516ddb
Merge safe-extra-tests-8-7
2020-07-16 16:23:55 +00:00
kjnash
574e588e3f
Merge safe-bugfixes-8-6
2020-07-16 10:58:04 +00:00
kjnash
ab138d729b
Merge 8.7
2020-07-14 17:29:09 +00:00
kjnash
eeb4747a4d
Rearrange tests in tests/safe.test to agree with upstream order
2020-07-14 16:57:38 +00:00
kjnash
b1d03f8f36
Sync with bugfixes and tests pushed upstream via safe-extra-tests-8-7 and safe-bugfixes-8-6 to core-8-branch
2020-07-14 16:49:10 +00:00
kjnash
0f4f22fb0d
Merge 8.6
2020-07-14 16:40:03 +00:00
kjnash
586ba27475
Sync with bugfixes and tests pushed upstream via safe-bugfixes-8-6 to core-8-6-branch.
2020-07-14 16:15:19 +00:00
kjnash
4d4cf2d35a
Revise tests safe-18.[24] to allow for -autoPath in interpConfigure output. Use opt in place of http 1.0 in positive/negative package search tests safe-7.[124], safe-18.[124].
2020-07-09 18:51:24 +00:00
kjnash
a6ad8c5f1b
Rename command ::safe::SetAutoPathSync to ::safe::setAutoPathSync and add to library/tclIndex.
2020-07-09 17:56:33 +00:00
kjnash
4ca3e59e50
Update safe(n) to document the changes.
2020-07-09 17:48:16 +00:00
kjnash
541671a2f1
Revise tests safe-18.2 and safe-18.4 to allow for -autoPath in interpConfigure output.
2020-07-09 17:37:34 +00:00
kjnash
a52e71f534
Rename command ::safe::SetAutoPathSync to ::safe::setAutoPathSync and add to library/tclIndex.
2020-07-09 17:03:02 +00:00
kjnash
2ccefe1d82
Update safe(n) to document the changes.
2020-07-09 16:26:35 +00:00
kjnash
05389ab996
Add code for -autoPath option in Safe Base.
2020-07-09 11:39:19 +00:00
kjnash
e2c60c3b2f
Apply patch for new features other than -autoPath
2020-07-09 11:13:41 +00:00
kjnash
35e1e904e5
Create new branch named "tip-579-8-7"
2020-07-09 10:15:15 +00:00
kjnash
40970bda37
Add code for -autoPath option in Safe Base.
2020-07-09 10:11:35 +00:00
kjnash
cbed1606a6
Apply patch for new features other than -autoPath
2020-07-09 10:01:51 +00:00
kjnash
3173a6ebc5
Create new branch named "tip-579-8-6"
2020-07-09 09:42:38 +00:00
dkf
7dd7fe1b6c
merge core-8-branch
2020-02-26 16:56:53 +00:00
dkf
bfcd8d392a
merge core-8-branch
2020-02-22 12:35:05 +00:00
dkf
004c1e1c8e
Less contorted code
2020-02-22 12:31:11 +00:00
dkf
99145db40b
There are subtle cases where an append-if-new operation is really useful for a slot.
2020-02-15 10:28:01 +00:00
jan.nijtmans
2569d6f81c
Merge 8.7
2020-02-12 13:24:16 +00:00
dkf
dafa1487f9
caching is one of the two hard things in CS (along with naming and off-by-one-errors)
2020-02-07 09:21:08 +00:00
dkf
743e0e4e1a
Move the TIP 558 tests into their own file
2020-01-01 16:57:08 +00:00
dkf
8249e877df
More error cases
2020-01-01 16:46:55 +00:00
dkf
b308bd97e6
Check for another tricky edge case
2020-01-01 16:01:36 +00:00
dkf
ae24dd87fa
merge core-8-branch
2019-12-31 23:27:01 +00:00
dkf
995eed36fd
Better error messages when a property has the wrong kind for the type of access desired
2019-12-31 23:25:58 +00:00
dkf
c4f94adb46
Other list-returning [info class] subcommands are plurals, so change property -> properties
2019-12-31 22:58:01 +00:00
dkf
d4b3d3a460
Added docs
2019-12-31 14:56:32 +00:00
dkf
6eb109c913
Even more tests, this time of the return-code semantics of property getters and setters.
2019-12-30 15:35:51 +00:00
dkf
edb3a561eb
merge core-8-branch
2019-12-30 10:13:25 +00:00
dkf
c15b6135d5
More tests, more fixes
2019-12-30 10:12:16 +00:00
dkf
a7a226fc49
Property definitions now work on instances.
2019-12-29 13:23:47 +00:00
dkf
76c3874ad8
Starting to do the testing.
2019-12-28 21:55:56 +00:00
dkf
c0eed541eb
Implementation of properties for TclOO
2019-12-28 13:24:59 +00:00
jan.nijtmans
e732b20a4d
Merge 8.7
2019-12-03 16:22:52 +00:00
jan.nijtmans
afff904993
Merge 8.7
2019-11-17 19:47:08 +00:00
jan.nijtmans
7c54b6f6fd
tclAppInit.c should be built without BUILD_tcl/USE_TCL_STUBS always. All build files should be adapted now to assure that.
2019-10-24 10:53:58 +00:00
jan.nijtmans
1f6c360968
Merge tip-468 branch
2018-10-28 19:36:34 +00:00
jan.nijtmans
ccb97d88ff
Merge 8.7
2018-10-28 19:26:49 +00:00
dgp
1b03667a27
merge 8.7
2018-10-17 19:47:01 +00:00
dgp
5c24bebd2b
merge 8.7
2018-06-04 13:16:39 +00:00
dgp
e51e79f343
merge 8.7
2018-05-24 13:12:26 +00:00
dgp
03fd40904f
merge 8.7
2018-05-11 11:38:54 +00:00
dgp
13bcd282e3
merge 8.7
2018-04-25 15:00:53 +00:00
dgp
26e714137a
merge 8.7
2018-03-15 13:40:40 +00:00
jan.nijtmans
63b8d1466d
Merge "tip-468" branch. Add new function Tcl_OpenTcpClientEx() with same change as Tcl_OpenTcpServerEx(): in stead of a port number, supplie a "service" string.
2017-04-10 11:01:52 +00:00
jan.nijtmans
3c4cc0a001
merge (minor style issues from) trunk
2017-04-10 09:35:51 +00:00
dkf
d64611a414
TIP 468 implementation from Shannon Noe.
2017-04-09 14:32:26 +00:00
avl
a457b16dfc
Deal with backslashes in ${...}, change "char" to "character" in error, fix tests.
2017-03-05 19:38:43 +00:00
avl
9372c6c29f
cherrypick 3bcf97f766: array index syntax done. ${...} not yet complete wrt backslashes.
2017-03-05 11:22:33 +00:00
avl
7ad70bd837
Create new branch named "tip-465"
2017-03-05 11:04:36 +00:00
jan.nijtmans
8c52e2d45d
Further experimental follow-up: Add internal function TclOpenTcpClientEx(), as companion to Tcl_OpenTcpServerEx(). Should be exported through new TIP.
2017-01-10 14:35:13 +00:00
jan.nijtmans
d61a4c1757
Experimental follow-up: Change internal TclCreateSocketAddress() signature, from using "int port" to "const char *service".
2017-01-10 13:56:10 +00:00
dkf
9244b6ed08
[85ce4bf928] Fix for problems with storing Inf with [binary format R].
2015-05-15 22:14:32 +00:00
jan.nijtmans
f942af920c
integrate QNX special path handling better with TIP #402
2012-08-02 15:44:12 +00:00
jan.nijtmans
b1098ebef4
merge trunk
2012-08-02 12:54:37 +00:00
jan.nijtmans
4f523fda09
merge trunk
2012-07-16 11:24:21 +00:00
jan.nijtmans
516f8e365d
Experimental support for UNC paths (through VFS) on UNIX/Mac
2012-06-27 15:12:46 +00:00