summaryrefslogtreecommitdiffstats
path: root/generic/tclEncoding.c
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up the interface to the normalisation codedkf2025-09-161-36/+107
|
* Minor indent fixesdkf2025-09-041-14/+14
|
* Fix bogus assert in unicode normalizationapnadkarni2025-08-291-1/+1
|
* Fix unsigned char* to char* conversion warningapnadkarni2025-08-281-1/+1
|
* Merge mainapnadkarni2025-08-281-10/+21
|\
| * merge 9.0sebres2025-08-251-4/+4
| |\
| | * amend to [0433b67adc] (ticket [87b69745be]): don't return with OK (swallow ↵sebres2025-08-251-4/+4
| | | | | | | | | | | | the error) if encoding cannot be loaded, and current system encoding is NULL for whatever reason
| * | Merge 9.0jan.nijtmans2025-08-191-12/+12
| |\ \ | | |/
| | * Fixed inconsistent indenting, introduced [0433b67adc|here]. See also ↵jan.nijtmans2025-08-181-12/+12
| | | | | | | | | | | | [87b69745be]
| * | Merge 9.0 - Fix [87b69745be] - move zipfs encoding initialization outside of ↵apnadkarni2025-08-141-11/+22
| |\ \ | | |/ | | | | | | interp creation. Avoid unnecessary file system epoch bump.
| | * Only update file system epoch if system encoding changesapnadkarni2025-08-061-11/+22
| | |
| | * Backport: Add [[unreachable]] and [[fallthrough]] from C23 (where available)jan.nijtmans2025-06-021-2/+4
| | |
* | | Add tests Tcl_UtfToNormalized APIapnadkarni2025-07-271-1/+1
| | |
* | | Add C API Tcl_UtfToNormalizedapnadkarni2025-07-271-53/+160
| | |
* | | Add tests for C APIapnadkarni2025-07-161-16/+23
| | |
* | | Implement Tcl_UtfToNormalizedDStringapnadkarni2025-07-141-0/+85
|/ /
* | merge trunkdkf2025-05-291-2/+2
|\ \
| * \ Merge 9.0 - Fix [7346adc50f] - memory runaway on truncated iso2022 encodingapnadkarni2025-05-261-2/+26
| |\ \ | | |/
| | * Handle tcl8 and replace profiles for truncated escape encodings. Add tests.apnadkarni2025-05-261-1/+25
| | |
| | * Start on [7346adc50f]. Now raise error on truncated encoding. Still have to ↵apnadkarni2025-05-251-1/+1
| | | | | | | | | | | | handle replace and tcl8 profiles.
* | | put back accidentally removed codedkf2025-05-291-0/+24
| | |
* | | more unreachable/fallthrough marksdkf2025-05-291-2/+4
|/ /
* | Clean up indentation and overlong linesdkf2025-05-231-52/+50
| |
* | Fully functional now, with a lot of examples for the improvement. Also, ↵jan.nijtmans2025-04-131-3/+3
| | | | | | | | merge trunk
* | Mostly whitespace fixes, but also a bug in Tcl_SetWideUIntObjdkf2025-03-031-1/+1
|/
* Convert defines to an enum.dkf2024-12-131-6/+8
|
* Merge 8.7. Eliminate some code duplication. (void *)NULL -> (char *)NULLjan.nijtmans2024-10-221-47/+30
|\
| * (cherry-pick): Fix [66da4d4228] - UTF-16 encoder buffer overflowjan.nijtmans2024-10-221-179/+191
| |
* | Fix [66da4d4228] - UTF-16 encoder buffer overflowapnadkarni2024-10-191-1/+11
| |
* | Merge-mark 8.7. Indenting (8 spaces -> tabs)jan.nijtmans2024-10-091-227/+227
|\ \ | |/
* | Don't use "9.0b3" any more. Spacingjan.nijtmans2024-09-261-1/+1
|\ \ | |/
* | Fix ungrammatical doubling of words in commentsminordkf2024-09-211-1/+1
| |
* | Fix [63325009a8]: \u0400 conversion to and from cesu-8 failsjan.nijtmans2024-09-131-3/+3
|\ \ | |/
| * Fix [63325009a8]: \u0400 conversion to and from cesu-8 fails.jan.nijtmans2024-09-131-1/+1
| |
* | Also fix charlimit for cesu-8apnadkarni2024-08-231-1/+6
| |
* | Reenable utf16 tests after fixesapnadkarni2024-08-231-13/+9
| |
* | Proposed fixes for [945d2387d7], [f2e924e881], [33f9b4de51]apnadkarni2024-08-221-82/+140
| |
* | Merge trunkapnadkarni2024-08-221-15/+149
|\ \
| * | Deal with fragmented and split cesu-8 surrogates.apnadkarni2024-08-191-5/+7
| | |
| * | Start on [304d30677a]. Passes test suite but needs clean up. But see ↵apnadkarni2024-08-181-16/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | comments below. It seems to me that the UtfToUtfProc function has jumped the shark and needs refactoring. While at one time, CESU-8 and UTF-8 could be combined into one function with minor differences, over the years the function has grown to of be completely unwieldy and difficult to understand/modify. The combination of UTF-8/CESU-8 x 3 profiles x flag combinations x possible invalid sequences is head-spinning. It really needs refactoring, possibly split into two or more functions, but I'm hesitant to do that before 9.0.
* | | Start on bug [945d2387d7]apnadkarni2024-08-211-0/+3
|/ /
* | Fix [2f22a7364d]: cesu-8 encoding gives same result for different stringsjan.nijtmans2024-08-131-1/+1
|\ \ | |/
| * Fix [2f22a7364d]: cesu-8 encoding gives same result for different stringsjan.nijtmans2024-08-131-1/+1
| |
| * Missed some backports from 9.0. Some indentingjan.nijtmans2024-08-051-2/+2
| |
* | Proposed fix for crash [201c7a3aa6] - crash on non-BMPapnadkarni2024-08-091-0/+9
| |
* | Fix some indentation/wrapping for styledkf2024-06-121-127/+153
| |
* | Make function definitions have right argument styledkf2024-06-041-1/+2
| |
* | Space before tab is an extremely unlikely to be correct indentation patterndkf2024-06-041-1/+1
| |
* | Merge 8.7dkf2024-05-261-8/+4
|\ \ | |/
| * merge 8.6dkf2024-05-261-8/+4
| |\