summaryrefslogtreecommitdiffstats
path: root/tests/encoding.test
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6jan.nijtmans2020-09-041-3/+5
|\
| * Let all test-cases load the "tcltest" package the same way. Depend on ↵jan.nijtmans2020-09-041-3/+4
| | | | | | | | tcltest 2.5, since we never test with earlier tcltest versions
| * Merge 8.6. Mark testcase utf-4.11 as "knownBug": this one still doesn't give ↵jan.nijtmans2020-05-111-1/+1
| |\ | | | | | | | | | the right answer. Add testcase 4.14 with similar corner-case, this one is OK.
| | * occurance -> occurrence.jan.nijtmans2020-05-111-1/+1
| | |
| | * Merge bug-31aa44375d branch. Mark encoding-15.5 testcase as "knownBug". ↵jan.nijtmans2020-05-101-1/+1
| | |\ | |/ / | | | | | | Discussion is not over yet, but we need a base for comparision in order to come up with alternatives.
| | * split and constrain the failing test.dgp2020-05-071-1/+6
| |/
* | Merge 8.6jan.nijtmans2020-05-021-1/+1
|\ \ | |/
* | Never mind remark about TIP #573 in previous commit: Test failure was due to ↵jan.nijtmans2020-05-011-2/+1
| | | | | | | | typo. Fixed now.
* | Fix first part of [ed29806baf]: Tcl_UtfToUniChar reads more than TCL_UTF_MAX ↵jan.nijtmans2020-05-011-1/+2
|\ \ | |/ | | | | | | | | | | | | bytes. Tcl_UtfToUniChar() now never reads more than TCL_UTF_MAX bytes any more. Since the UtfToUtf encoder/decoder now uses TclUtfToUCS4() it doesn't join 2 surrogates as 2 x 3-byte sequences any more. Actually, it shouldn't, because such sequences are invalid UTF-8. Therefore, added the ucs2 constraint to testcase encoding-15.4. Let's see how TIP #573 goes, this TIP should make this change official. Other callers of Tcl_UtfToUniChar() needs to be revised for the same problem. Most callers will need to change Tcl_UtfToUniChar() -> TclUtfToUCS4() and Tcl_UtfCharComplete() -> TclUCS4Complete(), but that's not done yet.
* | Merge 8.6jan.nijtmans2020-04-301-1/+6
|\ \ | |/
| * Merge 8.5jan.nijtmans2020-04-301-0/+5
| |\
| | * New encoding-15.16 test-case. Fix title of utf 2 test-cases.jan.nijtmans2020-04-301-0/+5
| | |
| * | encoding-12.6 only works for "ucs2" for now. Don't use (deprecated) INLINE ↵jan.nijtmans2020-04-251-2/+3
| | | | | | | | | | | | and CONST
* | | Merge 8.6 (Except encoding-12.6 test-case still to be handled)jan.nijtmans2020-04-241-5/+5
|\ \ \ | |/ /
| | |
| | \
| *-. \ Merge from 8.5. Failing tests encoding-12.6, reg-13.3[34] appear to be realdgp2020-04-241-6/+9
| |\ \ \ | | | |/ | | | | failures reporting first contact with tests and code.
| | | * Missing '0'jan.nijtmans2020-04-241-1/+1
| | |/
| | * Add protections against overflow in Unicode values. Backported from 8.6. ↵jan.nijtmans2020-04-241-5/+9
| | | | | | | | | | | | Also remove some out-of-date comments.
| | * Attempt to fix [1004065] for TCL_UTF_MAX=4. Disallow building Tcl with ↵jan.nijtmans2020-04-221-4/+1
| | | | | | | | | | | | TCL_UTF_MAX>4
| | * Determine "testConstraint ucs2" without the need for a testcommand. Rename ↵jan.nijtmans2020-04-221-2/+1
| | | | | | | | | | | | "compat85" testConstraint to "ucs2", because that's what it actually is.
| | * Use new testing command to constrain tests to (sizeof(Tcl_UniChar) == 2)dgp2020-04-211-1/+5
| | | | | | | | | until bugs are fixed when (sizeof(Tcl_UniChar == 4).
* | | Merge 8.6jan.nijtmans2020-04-141-12/+2
|\ \ \ | |/ /
| * | Backport encoding-15.3 test-case from 8.7, together with missing ↵jan.nijtmans2020-04-141-13/+5
| | | | | | | | | | | | "teststringbytes" command: Usefull for testing byte strings without the need for the "identity" encoding
* | | merge 8.6dgp2020-04-141-2/+12
|\ \ \ | |/ /
| * | partially revert [e9f5ff2f6a] - encoding-15.3 used not existing command ↵sebres2020-04-141-2/+11
| | | | | | | | | | | | "teststringbytes" (should be "testbytesstring"? but it is not an opposite to get same result as convert to identity, so splitted to 3 new cases illustrating the results)
| * | amend to [e9f5ff2f6a]: added missing constraint (testbytestring)sebres2020-04-141-0/+1
| | |
| * | Don't use 'identiy' encoding in test-cases any more!jan.nijtmans2020-04-141-15/+11
| | |
| * | Merge 8.5. Failing tests highlight ticket [1b1f5f0b53].dgp2020-04-131-2/+2
| |\ \ | | |/
| | * Stop direct use of the identity encoding in tests.dgp2020-04-121-2/+2
| | |
* | | Some eol whitespace eliminationsjan.nijtmans2020-01-071-1/+1
| | |
* | | Fix test encoding-28.0, adapting for the correct number of available encodingsjan.nijtmans2020-01-071-1/+1
| | |
* | | Merge 8.6jan.nijtmans2020-01-061-0/+15
|\ \ \ | |/ /
| * | Add a test for issue [9128866ec8], encoding fails to loadpooryorick2020-01-041-0/+15
| | |
* | | Fix bug in tclEncoding.c, only manifesting in testcase encoding-15.4 for ↵jan.nijtmans2019-12-111-1/+1
| | | | | | | | | | | | TCL_UTF_MAX=6. (knownBug, fixed now)
* | | Merge 8.6jan.nijtmans2019-12-101-3/+39
|\ \ \ | |/ /
| * | Attempt to fix [5f236bc67a]: valgrind report for Tcl_UniCharToUtfjan.nijtmans2019-12-091-0/+36
| | |
* | | Merge 8.6jan.nijtmans2019-12-091-12/+22
|\ \ \ | |/ /
| * | Add special handling of lower surrogate to UtfToUtfProc(), so valgrind ↵jan.nijtmans2019-12-091-4/+14
| | | | | | | | | | | | should't complain in that situation. With new test-cases covering that.
| * | Fix 2 test-cases, which were failing when TCL_UTF_MAX=6. Add UTF_MAX=6 UNIX ↵jan.nijtmans2019-12-071-4/+4
| | | | | | | | | | | | build to Travis as proof that now all test-cases pass for UTF_MAX=6 (still not officially supported)
* | | Merge 8.6jan.nijtmans2019-12-031-2/+2
|\ \ \ | |/ /
| * | Fix encoding-15.6 testacase for TCL_UTF_MAX=6, due to changes escape ↵jan.nijtmans2019-12-031-2/+2
| | | | | | | | | | | | sequences for upper/lower surrogate combination.
* | | Merge 8.6. jan.nijtmans2019-11-151-3/+21
|\ \ \ | |/ / | | | Also fix the use of WUR (warn unused result) in libtommath function signatures: this cannot be used in combination with "deprecated" or "nostub"
| * | Protect additional Tcl_UtfToUniChar() call, for the case when not enough ↵jan.nijtmans2019-11-151-3/+21
| | | | | | | | | | | | | | | bytes are available in the buffer any more. Add additional test-cases for those situations (upper surrogate followed by somthing other than lower surrogate)
* | | Merge 8.6jan.nijtmans2019-11-141-0/+22
|\ \ \ | |/ /
| * | Better - more complete - fix for [d433c0e0ad]: TCL_UTF_MAX == 4 problems. It ↵jan.nijtmans2019-11-141-0/+16
| | | | | | | | | | | | | | | allows emoji to be produced by the system encoding, even for other values of TCL_UTF_MAX. Also added test-cases for this.
| * | oopsdgp2017-10-271-1/+0
| | |
| * | Update tests that were still written on the outdated premise that Tcl's ↵dgp2017-10-271-3/+4
| |\ \ | | |/ | | | | | | encoding subsystem had to initialize starting in the identity encoding.
| | * Update tests that were still written on the outdated premise that Tcl'sdgp2017-10-271-4/+4
| | | | | | | | | encoding subsystem had to initialize starting in the identity encoding.
* | | TIP #547 implementation: New encodings: UTF-16, UCS-2jan.nijtmans2019-05-311-6/+17
| | |
* | | Fixes for TCL_UTF_MAX=6, (gcc compiler warnings). Also make everything work ↵jan.nijtmans2019-03-071-4/+3
| | | | | | | | | | | | on win32/win64. Patch adapted from Androwish (thanks, Werner!)
* | | Update test-cases, so they are selected or not for -DTCL_UTF_MAX=6. Now all ↵jan.nijtmans2018-04-261-5/+5
| | | | | | | | | | | | relevant test-cases pass for TCL_UTF_MAX=6 builds on UNIX (but not yet on Windows)!