summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Set errorcode for STOPONERRORjan.nijtmans2021-04-011-3/+11
|
* Add experimental "-nothrow" option to encoding convertfrom|convertto. If ↵jan.nijtmans2021-04-013-20/+55
| | | | compiled with -DTCL_NO_DEPRECATED (meant for Tcl 9.0), -stoponerror is the default for all IO
* Merge tip-597jan.nijtmans2021-04-013-7/+108
|\
| * Merge 8.7jan.nijtmans2021-04-013-9/+114
| |\
| | * Merge 8.6jan.nijtmans2021-04-011-18/+33
| | |\
| | | * Follow-up to [15c7b4f93e]: "Implement TCL_ENCODING_STOPONERROR flag for ↵jan.nijtmans2021-04-011-6/+6
| | | | | | | | | | | | | | | | UtfToUtf encoder/decoder". Only do this check when pureNullMode == 0, otherwise we violate EIAS.
| | | * remove useless save/restorejan.nijtmans2021-03-301-2/+0
| | | |
| | | * Merge 8.5jan.nijtmans2021-03-221-1/+1
| | | |\
| | | | * Fix incorrect comment: underscore ('_') is allowed in a packageNamejan.nijtmans2021-03-221-1/+1
| | | | |
| | | | * Backport Tcl_UtfCharComplete() functionality from 8.6 for TCL_UTF_MAX>3. ↵jan.nijtmans2021-03-111-1/+18
| | | | | | | | | | | | | | | | | | | | This makes Tcl_UtfCharComplete() usable to protect Tcl_UtfNext() calls for overflow. No change for TCL_UTF_MAX=3 (default build)
| | | * | Implement TCL_ENCODING_STOPONERROR flag for UtfToUtf encoder/decoder. ↵jan.nijtmans2021-03-211-7/+25
| | | | | | | | | | | | | | | | | | | | Backported from 8.7
| | * | | Add 3 undocumented #defines. To be formalized by TIP #595 (currently being ↵jan.nijtmans2021-03-311-0/+5
| | | | | | | | | | | | | | | | | | | | voted on)
| | * | | RFE 4b4830eb54: reflected channel truncate methodjan.nijtmans2021-03-301-3/+97
| | |\ \ \
| | | * | | Proposed implementation of RFE [4b4830eb54]jan.nijtmans2021-03-181-5/+98
| | | | | |
* | | | | | More bugfixes (and testcases showing this)jan.nijtmans2021-04-012-7/+12
| | | | | |
* | | | | | Merge tip-597jan.nijtmans2021-03-311-5/+12
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Re-use TCL_ENCODING_MODIFIED flag value for TCL_ENCODING_LE too, since they ↵jan.nijtmans2021-03-311-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | are used for different encoders.
| * | | | | Bugfix (backported from encodings-with-flags branch): Use correct byte/char ↵jan.nijtmans2021-03-301-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | positions in error-situation
* | | | | | Merge tip-597. More testcasesjan.nijtmans2021-03-308-33/+133
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Merge 8.7jan.nijtmans2021-03-301-1/+1
| |\ \ \ \ \ | | |/ / / /
| * | | | | Finish CESU-8 encoder/decoderjan.nijtmans2021-03-291-1/+8
| | | | | |
| * | | | | Make a start with CESU-8 encoder/decoder. Not finished yetjan.nijtmans2021-03-281-8/+17
| | | | | |
| * | | | | Merge 8.7jan.nijtmans2021-03-2816-493/+580
| |\ \ \ \ \
| * | | | | | Add wtf-16 encodings to the set. With testcasesjan.nijtmans2021-03-171-66/+53
| | | | | | |
| * | | | | | Merge 8.7jan.nijtmans2021-03-1716-967/+1436
| |\ \ \ \ \ \
| * | | | | | | TIP #597 implementation: "string is unicode" and new wtf-8 encodingjan.nijtmans2021-03-108-26/+81
| | | | | | | |
* | | | | | | | Better error-messagesjan.nijtmans2021-03-301-7/+16
| | | | | | | |
* | | | | | | | add testcase for "encoding convertto". Move stub table one positionsjan.nijtmans2021-03-305-12/+16
| | | | | | | |
* | | | | | | | Add documentation. Do a better job of counting exactly which byte/character ↵jan.nijtmans2021-03-305-39/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | caused the encoding/decoding error
* | | | | | | | Merge 8.7jan.nijtmans2021-03-301-10/+9
|\ \ \ \ \ \ \ \ | | |_|_|/ / / / | |/| | | | | |
| * | | | | | | Thanks to TIP #587, convert many escapes in the testcases into the actual ↵jan.nijtmans2021-03-301-1/+1
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | (UTF-8) character.
| * | | | | | Change TCL_ENCODING_EXTERNAL flag into TCL_ENCODING_MODIFIED, but with ↵jan.nijtmans2021-03-281-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | opposite meaning. Simplify code.
* | | | | | | More WIP: Add -stoponerror flag to "encoding convertfrom/converto"jan.nijtmans2021-03-261-8/+40
| | | | | | |
* | | | | | | New Tcl_ExternalToUtfDStringEx/Tcl_UtfToExternalDStringEx functions. Not ↵jan.nijtmans2021-03-234-11/+68
|/ / / / / / | | | | | | | | | | | | | | | | | | used yet
* | | | | | Rename MODULESCOPE TclGetLoadedPackagesEx() to TclGetLoadedLibraries()jan.nijtmans2021-03-224-5/+5
| | | | | |
* | | | | | Rename internal variables, making it more clear that tclLoad.c is not part ↵jan.nijtmans2021-03-221-162/+162
| | | | | | | | | | | | | | | | | | | | | | | | of Tcl's "package" mechanism.
* | | | | | Fix [0221b993a1]: Tcl command [update idletasks] doesn't skip main loop in ↵jan.nijtmans2021-03-191-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Tcl_DoOneEvent
| * | | | | | Suggested fix for [0221b993a1]: Tcl command [update idletasks] doesn't skip ↵jan.nijtmans2021-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | main loop in Tcl_DoOneEvent
* | | | | | | Fully implement TCL_ENCODING_STOPONERROR flag for Utf2Utf encoder/decoder.jan.nijtmans2021-03-191-3/+8
| | | | | | |
* | | | | | | Merge 8.6jan.nijtmans2021-03-1910-154/+152
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | |
| * | | | | | Change Tcl_StaticPackage's "pkgName" argument to "prefix" and improve ↵jan.nijtmans2021-03-196-38/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | documentation, describing better what this argument does.
| * | | | | | Delete some useless code. Was only place where we fed an uncontrolled value ↵dkf2021-03-181-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to %f, and it was actually a conversion we didn't need to do at all.
* | | | | | | Handle the encoding of filenames in ZIPs correctly. (This is awful. The ↵dkf2021-03-182-39/+215
| |/ / / / / |/| | | | | | | | | | | | | | | | | awful isn't Tcl's fault. Terrible spec...)
* | | | | | Merge 8.6jan.nijtmans2021-03-181-2/+1
|\ \ \ \ \ \ | |/ / / / / | | | | / / | |_|_|/ / |/| | | |
| * | | | Remove incorrect/useless commentjan.nijtmans2021-03-181-2/+1
| | | | |
* | | | | More simplification of UtfToUtfProc(). Get rid of wrapper functions ↵jan.nijtmans2021-03-181-126/+24
| | | | | | | | | | | | | | | | | | | | UtfIntToUtfExtProc/UtfExtToUtfIntProc. This can be handled by additional flags.
* | | | | Simplify UtfToUtfProc() and UtfToUtf16Proc(): Using TclUtfToUCS4() ↵jan.nijtmans2021-03-172-59/+32
| |_|/ / |/| | | | | | | | | | | | | | | internally means that we don't have to keep track of internal state any more (Tcl_EncodingState) Also, add (HMODULE) cast (back) in tclZipfs.c
* | | | Fix MSVC buildjan.nijtmans2021-03-171-1/+1
| | | |
* | | | More cleaning up of zipfsdkf2021-03-161-46/+56
| | | | | | | | | | | | Don't put straight binary data in a Tcl string, and other better API uses.
* | | | Fix gcc warningsjan.nijtmans2021-03-162-4/+3
| | | |