summaryrefslogtreecommitdiffstats
path: root/tests/binary.test
Commit message (Collapse)AuthorAgeFilesLines
* re-trigger Travis build (and fix some eol-spacing)jan.nijtmans2020-10-261-1/+1
|
* Copied man page and test from Androwish ↵oehhar2020-10-261-1/+10
| | | | https://www.androwish.org/home/ci/bc8b7e8094b66169
* Merge 8.6jan.nijtmans2020-09-041-1/+1
|\
| * Let all test-cases load the "tcltest" package the same way. Depend on ↵jan.nijtmans2020-09-041-2/+2
| | | | | | | | tcltest 2.5, since we never test with earlier tcltest versions
* | simplify check for ::tcltest namespace in testcasesjan.nijtmans2020-07-161-1/+1
| |
* | Add test-cases handling TclGetBytesFromObj() ( actually Tcl_UtfToUniChar too)jan.nijtmans2020-04-201-1/+14
| |
* | Use new utility routine so that error characters using surrogates aredgp2020-04-021-7/+7
| | | | | | reported correctly.
* | merge 8.6dgp2020-03-311-3/+9
|\ \ | |/
| * Retrict -wrapchar values to those that can be decoded.dgp2020-03-311-4/+4
| |
| * Other suggested solution for [b8e82d293b]jan.nijtmans2020-03-311-3/+9
| |
* | merge 8.6dgp2020-03-281-0/+3
|\ \ | |/
| * Add a test for fixed bug.dgp2020-03-281-0/+3
| |
* | merge 8.6dgp2020-03-281-1/+4
|\ \ | |/
| * [ffeb2097af] Restore the standard and original practice of ignoring invaliddgp2020-03-281-1/+4
| | | | | | characters when decoding base64. Error only in -strict mode. See RFC 2045.
* | Merge 8.6jan.nijtmans2020-03-271-5/+5
|\ \ | |/
| * Repair bad test labels.dgp2020-03-271-5/+5
| |
| |
| \
*-. \ Merge new tests. Reveals crash in Tcl 8.7 implementation.dgp2020-03-121-0/+12
|\ \ \ | | |/
| | * Renumber tests to account for later releases.dgp2020-03-121-2/+2
| |/
| * Add some testing of Tcl_SetByteArrayLength().dgp2020-03-121-0/+11
| |
* | TIP #547 implementation: New encodings: UTF-16, UCS-2jan.nijtmans2019-05-311-1/+1
| |
* | fixes segfault [bd94500678]: Tcl_UtfToUniChar/TclUtfToUniChar could don't ↵sebres2019-02-051-0/+6
| | | | | | | | advance source pointer in case it produce high surrogate, so it should be repeated with the same value of ch (returned previously), in order to generate low surrogate hereafter (and to avoid endless cycle).
* | merge 8.6dgp2018-11-161-0/+40
|\ \ | |/
| * test cases for decode base64, bug [00d04c4f12], unfulfilled base64 (strict ↵sebres2018-11-151-0/+40
| | | | | | | | and non-strict mode, etc).
* | Fix [540bed4bde]: binary format can result in "integer value too large to ↵jan.nijtmans2018-09-041-16/+25
| | | | | | | | | | | | | | represent". Implemented a new utility function TclGetWideBitsFromObj(), which handles the overflowing of integers using bignums. This function can be used in a _LOT_ of other places, preventing code duplication. Done that as well. Those changes have no effect on other commands, only two new "binary format" test-cases for this specific situation: binary-44.5 and binary-44.6
* | [6015221f59] Segfault after overflow of [binary] field specifier numeric count.dgp2017-05-051-0/+12
|\ \ | |/
| * [6015221f59] Segfault after overflow of [binary] field specifier numeric count.dgp2017-05-051-0/+12
| |\
| | * [6015221f59] Segfault after overflow of [binary] field specifier numeric count.dgp2017-05-051-0/+12
| | |
* | | Coverage tests for INST_STR_CONCAT1 byterarray ops.dgp2016-10-311-0/+13
|/ /
* | Add back -wrapchar option to "binary encode uuencode"jan.nijtmans2013-09-151-13/+4
|\ \
| * | Add back -wrapchar option to "binary encode uuencode".jan.nijtmans2013-09-141-13/+4
| | |
* | | And the decoder too.dkf2013-09-141-19/+22
|/ /
* | [2152292] Corrected implementation of uuencoding.dkf2013-09-141-13/+30
| |
* | [b98fa55285]: Fix handling of whitespace at end of hex strings to decode.dkf2013-09-011-0/+28
| |
* | [Bug 3605721]: Test independence fixes for binary-41.*dkf2013-02-251-24/+32
| |
* | Contributed patch from Andy Goth.dgp2012-11-151-0/+21
| |
* | 3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex).dgp2011-09-011-0/+17
|\ \ | |/ | | [scan Inf %g] is portable; remove constraint.
| * 3402540 Corrections to TclParseNumber() to make it reject invalid Nan(Hex)dgp2011-09-011-0/+18
| | | | | | [scan Inf %g] is portable; remove constraint.
* | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ | |/ | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * tests/binary.test: Corrected flawed tests revealed by a -debug 1dgp2008-06-201-7/+1
| | | | | | | | | | | | * tests/io.test: -singleproc 1 test suite run.
| | * Backported fix for #1923966patthoyts2008-03-241-1/+19
| | |
| | * * generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Allow emptydgp2006-04-051-3/+3
| | | | | | | | | | | | | | | strings to be matched by the Tcl_GetIndexFromObj machinery, in the same manner as any other key. [Bug 1464039]
| | * Fix [Bug 1116542]dkf2005-09-271-1/+5
| | |
| | * Stop losing references when variables are repeated in [binary scan]. [851747]dkf2003-12-021-1/+9
| | |
| | * Documented and tested for the current behaviour of [binary format a] anddkf2003-07-111-1/+23
| | | | | | | | | | | | [binary scan ? a]. This is what they've been doing all along. [Bug 735364]
* | | Revert previous commit at request of KBK.dkf2010-11-091-5/+1
| | |
* | | Added test case for [Bug #3105247] -NaN?nijtmans2010-11-091-1/+5
| | |
* | | * generic/tclBinary.c (TclAppendBytesToByteArray): [Bug 3067036]: Makedkf2010-09-151-2/+23
| | | | | | | | | | | | | | | sure we never try to double zero repeatedly to get a buffer size. Also added a check for sanity on the size of buffer being appended.
* | | Handle completely invalid input to the decode methods [Bug 2922555]patthoyts2009-12-291-6/+15
| | |