summaryrefslogtreecommitdiffstats
path: root/tests/utf.test
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6jan.nijtmans2019-12-031-48/+51
|\
| * Fix [3cd9bea1e6]: check-in [43032d7ba3] potential problems. Also don't allow ↵jan.nijtmans2019-12-031-31/+41
| | | | | | | | surrogates in \U?????? syntax.
* | Merge 8.6jan.nijtmans2019-12-021-47/+50
|\ \ | |/
| * If TCL_UTF_MAX>=4, make Tcl_ParseBackslash combine two surrogates so they ↵jan.nijtmans2019-12-021-50/+53
| | | | | | | | appear as one 4-byte UTF-8 byte sequence from the start. Add test-case for this.
| * Add some new test-cases involving e.g. Unicode 11. Backported from Tcl 8.7a3jan.nijtmans2019-11-291-2/+26
| |
* | Minor simplification in test-suite: Because "teststringobj maxchars" has the ↵jan.nijtmans2019-08-141-8/+8
| | | | | | | | effect that the value is converted to Unicode for, we don't need a separate function "teststringobj getunicode" for that. So, merge the two functions to one.
* | Duplicate test names.dgp2019-04-171-3/+3
| |
* | Modify testbytestring such that is only produces pure byte-arrays, if not it ↵jan.nijtmans2019-04-011-2/+2
| | | | | | | | | | errors out. Modify Tcl_NewIntObj/Tcl_NewBooleanObj -> Tcl_NewWideIntObj. Less references to "long" datatype.
* | Add some test-cases with longer backslash sequences, to test for internal ↵jan.nijtmans2019-03-221-0/+6
| | | | | | | | buffer overflows.
* | Merge 8.6jan.nijtmans2019-02-191-6/+6
|\ \ | |/
* | Fix "string tolower" and friends for handling unpaired surrogates correctly. ↵jan.nijtmans2018-06-241-0/+15
| | | | | | | | | | Also add test-cases for those situations. Various typo's in comments.
* | Merge 8.6. And add more documentation and test-cases regarding the behavior ↵jan.nijtmans2018-06-181-0/+12
|\ \ | |/ | | | | of Tcl_UniCharToUtf()
* | Remove some tip389 restrictions in test-cases, which are no longer necessary. jan.nijtmans2018-05-071-10/+8
| | | | | | | | Eliminate gcc compiler warnings when compiling with -DTCL_UTF_MAX=6 Other code clean-up and comment improvements. No change in functionality.
* | Implement special "string totitle" for Extended Georgian characters (new ↵jan.nijtmans2018-05-011-0/+12
| | | | | | | | behavior in Unicode 11)
* | 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)!
* (cherry-pick from core-8-6-8-rc): Duplicate test namesjan.nijtmans2017-12-061-1/+1
|
* Fix Tcl_UtfFindFirst()/Tcl_UtfFindLast(), which were broken by [83c0c569d6]. ↵jan.nijtmans2017-11-291-2/+9
| | | | | Not detected, because those functions aren't used anywhere in Tcl. So, added new test-cases, makeing sure this doesn't happen again.
* Don't use Unicode character \udead in test-cases, because it is an invalid ↵jan.nijtmans2017-11-071-2/+2
| | | | Unicode code-point (lower surrogate). This will cause test-failures with TIP #389. Just use \ud0ad in stead. Also fix some other test-cases which fail for TCL_UTF_MAX == 4.
* Fix [2738427]: Tcl_NumUtfChars(...) no overflow check.jan.nijtmans2017-06-081-1/+5
|\
* | tclUtil.c: Use TclUtfToUniChar() in stead of handling ASCII characters ↵jan.nijtmans2017-06-081-4/+7
| | | | | | | | | | separately: This macro already does that. Add new test-case for Tcl_NumUtfChars(), for a knownBug still to be fixed.
* | Add more test-cases for UTF-8 parser, including test-cases for TCL_UTF_MAX=4 ↵jan.nijtmans2017-06-061-6/+32
| | | | | | | | or TCL_UTF_MAX=6
* | Fix [8663689908d3304a74fee525cd04aa4162e86391|8663689908d3]: regexp \\w ↵jan.nijtmans2016-04-081-1/+1
|\ \ | |/ | | | | missing characters
| * Fix [8663689908d3304a74fee525cd04aa4162e86391|8663689908d3]: regexp \\w ↵jan.nijtmans2016-04-081-1/+1
| | | | | | | | missing characters
* | Make sure all uses of the [testbytestring] command are constrained.dgp2014-11-071-20/+20
| |
* | Resolve test conflicts over global varsdgp2014-10-101-2/+4
| |
* | Modify the "gettimes" test-command to use the Tcl_Obj API. jan.nijtmans2014-07-161-46/+48
| | | | | | | | New "testbytestring" command which can be used to replace the (to-be-deprecated) "bytestring" command from tcltest and/or the "indentity" encoding. Adapt many testcases to use the "testbytestring" command.
* | Starting with Unicode 6.3, the mongolian vowel separator (U+180e) is no ↵jan.nijtmans2014-07-111-15/+15
|\ \ | |/ | | | | | | longer a whitespace, but for Tcl it still is. Update documentation accordingly, and extend test-cases for Unicode 7 compliance.
| * Starting with Unicode 6.3, the mongolian vowel separator (U+180e) is no ↵jan.nijtmans2014-07-111-15/+15
| | | | | | | | | | | | longer a whitespace, but for Tcl it still is. "NEL/Next Line" (U+0085) should have been a Unicode whitespace, but never was in Tcl. This is corrected in Tcl 8.6, but for legacy reasons not in Tcl 8.5. Update documentation accordingly, and extend test-cases for Unicode 7 compliance.
* | Fix uniClass tool which was the real cause for [a876646efe], and add ↵jan.nijtmans2013-06-181-2/+2
|\ \ | |/ | | | | test-case for it.
| * Fix uniClass tool which was the real cause for [a876646efe], and add ↵jan.nijtmans2013-06-181-2/+2
| | | | | | | | test-case for it.
* | 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 3464428] string is graph \u0120 is wrongjan.nijtmans2012-01-091-0/+28
|\ \ | |/
| * [Bug 3464428] string is graph \u0120 is wrongjan.nijtmans2012-01-091-0/+28
| |\
| | * [Bug 3464428] string is graph \u0120 is wrongjan.nijtmans2012-01-091-0/+28
| | |
* | | [Bug 3464428] string is graph \u0120 is wrongjan.nijtmans2011-12-241-0/+8
|\ \ \ | |/ /
| * | [Bug 3464428] string is graph \u0120 is wrongjan.nijtmans2011-12-241-3/+14
| |\ \ | | |/
| | * [Bug 3464428] string is graph \u0120 is wrongjan.nijtmans2011-12-231-3/+18
| | |
* | | Some Unicode 6.0 chars not in [:print:] classjan.nijtmans2011-12-111-0/+4
|\ \ \ | |/ /
| * | [Bug 3457031]: Some Unicode 6.0 chars not in [:print:] classjan.nijtmans2011-12-111-0/+4
| | |
* | | [Bug 3444754] string tolower \u01c5 is wrongjan.nijtmans2011-12-071-2/+2
|\ \ \ | |/ /
| * | [Bug 3444754] string tolower \u01c5 is wrongjan.nijtmans2011-12-071-2/+2
| |\ \ | | |/
| | * [Bug 3444754] string tolower \u01c5 is wrongjan.nijtmans2011-12-071-2/+2
| | |
* | | Merge to feature branchjan.nijtmans2011-08-181-2/+3
|\ \ \
| * \ \ [Bug 3393714] overflow in toupper deltajan.nijtmans2011-08-181-2/+3
| |\ \ \ | | |/ /
| | * | [Bug 3393714] overflow in toupper deltajan.nijtmans2011-08-181-2/+3
| | |\ \ | | | |/
| | | * [Bug 3393714] overflow in toupper deltajan.nijtmans2011-08-181-2/+3
| | | |
* | | | Merge to feature branchjan.nijtmans2011-08-171-3/+6
|\ \ \ \ | |/ / /
| * | | separate test for overflowed and negative Tcl_UniCharjan.nijtmans2011-08-171-3/+6
| |/ /
* | | TIP 388 implementationjan.nijtmans2011-08-121-1/+13
|/ /
* | 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.