summaryrefslogtreecommitdiffstats
path: root/generic/tclEncoding.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.7jan.nijtmans2019-06-281-41/+185
|\
| * TIP #547 implementation: New encodings: UTF-16, UCS-2jan.nijtmans2019-05-311-41/+185
| |
* | Eliminate many (mostly harmless) MSVC warning messages. Tcl 9 compiles ↵jan.nijtmans2019-03-131-1/+1
| | | | | | | | warning-free now on MSVC.
* | Merge 8.7jan.nijtmans2019-03-111-8/+8
|\ \ | |/
| * Change TCHAR -> WCHAR in many places, since that's what it is since Windows NTjan.nijtmans2019-03-111-8/+8
| |
* | Merge 8.7jan.nijtmans2019-03-081-21/+28
|\ \ | |/
| * Fixes for TCL_UTF_MAX=6, (gcc compiler warnings). Also make everything work ↵jan.nijtmans2019-03-071-21/+28
| | | | | | | | on win32/win64. Patch adapted from Androwish (thanks, Werner!)
* | Merge 8.7jan.nijtmans2019-02-271-4/+4
|\ \ | |/
| * Fix [bd94500678e837d7]: SEGFAULT by conversion of unicode (out of BMP) to ↵jan.nijtmans2019-02-271-5/+5
| |\ | | | | | | | | | byte-array
| | * Minor optimizationsjan.nijtmans2019-02-191-7/+7
| | |
| | * Proposed fix for [bd94500678]: SEGFAULT by conversion of unicode (out of ↵jan.nijtmans2019-02-181-4/+4
| | | | | | | | | | | | BMP) to byte-array.
| * | More use of (efficient) TclHasIntRep() macro. Also eliminate many (size_t) ↵jan.nijtmans2019-02-271-5/+5
| |/ | | | | | | and (unsigned) type-casts, which don't make sense any more.
* | More size_t-related consolidations. Now regexp can handle strings >2GB and ↵jan.nijtmans2019-02-051-3/+1
| | | | | | | | more. Remove many type-casts which are not necessary any more.
* | Merge 8.7jan.nijtmans2019-01-281-1/+1
|\ \ | |/
| * New internal macro TclFetchIntRep, which is faster than Tcl_FetchIntRep. jan.nijtmans2019-01-281-1/+1
| | | | | | But ... don't use this function when the result is only compared to NULL: that's just overkill.
* | Merge 8.7jan.nijtmans2018-12-111-2/+2
|\ \ | |/ | | | | In test-cases, don't load Tcltest package if it isn't actually used. Another round of size_t related improvements. Nothing functional. Also improve some comments.
* | Eliminate gcc compiler warningjan.nijtmans2018-11-221-1/+1
|\ \ | |/
| * Make encodings work again ;-(jan.nijtmans2018-11-221-1/+1
| |
* | Fix encoding handling (check for TCL_IO_FAILURE was wrong). Eliminate ↵jan.nijtmans2018-11-221-6/+5
| | | | | | | | (size_t) type casts and use of ckalloc() -> Tcl_Alloc()
* | Merge 8.7jan.nijtmans2018-11-221-2/+7
|\ \ | |/
| * Merge 8.6jan.nijtmans2018-11-221-2/+7
| |\ | | | | | | In addition, tclWinSerial.c: Change back two internal variables from size_t -> int, shouldn't have been done here.
| | * More coverity issuesdkf2018-11-201-2/+7
| | |
* | | Implement TIP 445dgp2018-11-131-10/+26
|\ \ \ | |/ /
| * | merge 8.7dgp2018-10-181-1/+1
| |\ \
| * \ \ merge 8.7dgp2018-04-251-4/+21
| |\ \ \
| * \ \ \ merge 8.7dgp2018-01-181-0/+2
| |\ \ \ \
| * \ \ \ \ merge 8.7dgp2017-12-191-1/+1
| |\ \ \ \ \
| * \ \ \ \ \ merge 8.7dgp2017-11-301-4/+4
| |\ \ \ \ \ \
| * \ \ \ \ \ \ merge 8.7dgp2017-11-031-19/+23
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ merge trunkdgp2017-09-051-2/+2
| |\ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ merge trunkdgp2017-09-011-31/+40
| |\ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ merge trunkdgp2017-06-061-2/+2
| |\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ merge trunkdgp2016-12-191-6/+2
| |\ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ merge trunkdgp2016-11-161-11/+11
| |\ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ merge trunkdgp2016-11-141-1/+2
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Purge more direct accesses to bytes field.dgp2016-10-071-1/+1
| | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | merge trunkdgp2016-07-091-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | Revise encodingType to use proposed routines.dgp2016-05-101-10/+26
| | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | TIP #494 implementation: More use of size_t in Tcl 9jan.nijtmans2018-10-081-33/+35
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | Use more TCL_AUTO_LENGTH, when appropriatejan.nijtmans2018-10-061-9/+9
| | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | Change ckalloc and friends to Tcl_Alloc and friends. Add two defines, ↵jan.nijtmans2018-09-011-17/+17
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TCL_IO_FAILURE and TCL_NO_LENGTH (experimental, still open to be renamed following discussion)
| * | | | | | | | | | | | | | | | | remaining external API. Looks like complete now. Milestone! Still more ↵jan.nijtmans2018-07-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | testing needed
| * | | | | | | | | | | | | | | | | Improve many parsing-related functions to use size_tjan.nijtmans2018-06-291-18/+16
| | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | More API changes using size_t. Internal changes not complete yet (WIP)jan.nijtmans2018-06-281-6/+10
| |/ / / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | | | Merge 8.7jan.nijtmans2018-10-081-1/+1
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / / / / |/| | | | | | | | | | | | | | / / | | |_|_|_|_|_|_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | Merge 8.6 jan.nijtmans2018-10-081-1/+1
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | | | | / | | | |_|_|_|_|_|_|_|_|_|_|_|/ | | |/| | | | | | | | | | | | Also fix startup problems on win32, when the encoding path contains invalid UTF-8 (reported by François Vogel) Various other code cleanup, e.g. remove empty.zip file, as this didn't work quite as expected.
* | | | | | | | | | | | | | | merge 8.7jan.nijtmans2018-04-231-4/+21
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / /
| * | | | | | | | | | | | | | Some better surrogate handling in encodings. Not spotted before ...jan.nijtmans2018-04-231-4/+21
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / / / / / | | | | | | | | | | | | | | / | | |_|_|_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | |
| | * | | | | | | | | | | | Add some state to encodings, so we can do better surrogate handling for ↵jan.nijtmans2018-04-231-26/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TCL_UTF_MAX >= 4. Backported from TIP #389.
* | | | | | | | | | | | | | TIP #485 implementation, Tcl 9.0 part: Realy remove code which was declared ↵jan.nijtmans2018-01-171-62/+0
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / / / | | | | | | | | | | | | / / | |_|_|_|_|_|_|_|_|_|_|/ / |/| | | | | | | | | | | | deprecated in 8.7