summaryrefslogtreecommitdiffstats
path: root/tests/encoding.test
Commit message (Collapse)AuthorAgeFilesLines
* Update many tools/encoding/*.txt files to the latest version, but leave out ↵jan.nijtmans2021-06-281-1/+1
|\ | | | | | | character changes. Only add the new "cns11643" encoding, which belongs to the same group as big5
* \ Update all "cp" and "iso8859-?" encodings to the latest version. This adds 3 ↵jan.nijtmans2021-06-181-1/+1
|\ \ | |/ | | | | new codepoints to iso8859-7, and adds a full new encoding iso8859-11
| * Test-case cleanup. Increase timeout a little bit in main.test, making Travis ↵jan.nijtmans2020-05-041-16/+16
| | | | | | | | build errors because of this less likely.
* | 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.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 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).
* | 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
* | 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
| |
* | Add a test for issue [9128866ec8], encoding fails to loadpooryorick2020-01-041-0/+15
| |
* | Attempt to fix [5f236bc67a]: valgrind report for Tcl_UniCharToUtfjan.nijtmans2019-12-091-0/+36
| |
* | 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)
* | 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.
* | 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)
* | 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.
* | Add more test-cases for UTF-8 parser, including test-cases for TCL_UTF_MAX=4 ↵jan.nijtmans2017-06-061-7/+13
| | | | | | | | or TCL_UTF_MAX=6
* | Follow-up to [67aa9a2070]: Use uppercase consistantly, slight optimization ↵jan.nijtmans2017-06-061-1/+1
|\ \ | |/ | | | | in character tests, comment fixes. No change in functionality.
| * [67aa9a2070] Tcl_UtfToUniChar returns single byte for invalid UTF-8 input as ↵jan.nijtmans2017-06-061-0/+25
| | | | | | | | documented.
* | Fix [67aa9a207037ae67f9014b544c3db34fa732f2dc|67aa9a2070]: Security: Invalid ↵jan.nijtmans2017-06-021-0/+25
| | | | | | | | UTF-8 can inject unexpected characters
* | unneeded variablejan.nijtmans2012-07-301-1/+0
| |
* | eliminate the "testfinexit" command. We have the TCL_FINALIZE_ON_EXIT ↵jan.nijtmans2012-07-301-4/+3
| | | | | | | | environment variable now, which makes "exit" do the same thing.
* | Fix various test when run outside of the build environment [3549770]jan.nijtmans2012-07-301-2/+6
| |
* | No longer build tcltest.exe to run the tests,but use tclsh86.exe in ↵jan.nijtmans2012-07-291-0/+3
| | | | | | | | combination with tcltest86.dll to do that (Windows only)
* | [Bug 3537605]: Make [encoding dirs ? ?] report the right error message.dkf2012-06-251-0/+8
|\ \ | |/
| * [Bug 3537605]: Make [encoding dirs ? ?] report the right error message.dkf2012-06-251-0/+8
| |
* | missing constraint and too brittle resultdgp2011-11-081-1/+2
| |
* | General cleanup of tests to promote intelligibility and to try to ensure thatdkf2011-08-011-94/+93
| | | | | | what is tested is just that which was the subject of the test.
* | 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.
| | * (Backport) Fix [Bug 2891556] and improve test to detect similar ↵ferrieux2009-11-161-1/+2
| | | | | | | | | | | | manifestations in the future.
| | * * generic/tcl.h: note limitation on changing Tcl_UniChar sizehobbs2006-10-051-3/+4
| | | | | | | | | | | | | | | | | | * generic/tclEncoding.c (UtfToUnicodeProc, UnicodeToUtfProc): * tests/encoding.test (encoding-16.1): fix alignment issues in unicode <> utf conversion procs. [Bug 1122671]