summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* Fix "possibly uninitialized variable" warning, seen with gcc-11 (however ↵jan.nijtmans2021-05-271-1/+1
| | | | harmless)
* Fix [a73c79081e]: Doc fix in tcl.h, by not suggesting wchar_t any more for ↵jan.nijtmans2021-05-261-4/+2
|\ | | | | | | Tcl_UniChar.
| * Fix [a73c79081e]: Doc fix in tcl.h, by not suggesting wchar_t any more for ↵jan.nijtmans2021-05-261-4/+2
| | | | | | | | Tcl_UniChar.
* | Fix [52cc90776c]: Warning when compile with gcc v9.3.0jan.nijtmans2021-05-201-2/+2
| |
* | Remove the refCount increment that accompanied the decrement removed in thepooryorick2021-05-181-1/+0
| | | | | | last commit.
* | Remove unnecessary refCount decrement.pooryorick2021-05-171-1/+0
| |
* | Fix for [688fcc7082fa99a4], trace on imported alias deletes alias and thenpooryorick2021-05-171-14/+13
| | | | | | calls import and triggers memory error.
* | Remove TODO comment which is already donejan.nijtmans2021-05-071-2/+0
| |
* | Handle POSIX error EILSEQ: "invalid byte sequence"jan.nijtmans2021-05-061-0/+6
| |
* | Fix [24b9181478]: Fix unsafe buffer lifetimejan.nijtmans2021-05-031-1/+2
|\ \ | |/
| * Fix [24b9181478]: Fix unsafe buffer lifetimejan.nijtmans2021-05-031-1/+2
| |
* | merge 8.5; adapt fix for 8.6dgp2021-04-141-1/+8
|\ \ | |/
| * Bug fixdgp2021-04-141-1/+2
| |
* | 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
* | 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.
* | Remove incorrect/useless commentjan.nijtmans2021-03-181-2/+1
| |
* | Repair Tcl_UniCharNcasecmp() in the same way as Tcl_UniCharNcmp() for fix ↵jan.nijtmans2021-03-101-0/+17
| | | | | | | | [4c591fa487]. Also put back minor optimization for big-endian machines removed in the previous commit
* | Fix [4c591fa487]: [string compare] EIAS violationjan.nijtmans2021-03-103-11/+10
| |
* | Merge 8.5. Add unused stub table entriesjan.nijtmans2021-03-047-6/+46
|\ \ | |/
| * Add some more unused entries to the stub table, keeping up with the table ↵jan.nijtmans2021-03-046-6/+50
| | | | | | | | size increase of higher Tcl versions
| * Backport improvements in UTF-8 handling for Tcl_UtfPrev/Tcl_UtfNext from 8.7 ↵jan.nijtmans2021-03-032-23/+35
| | | | | | | | (through 8.6). No change for TCL_UTF_MAX=3. Adapt test-cases accordingly
* | Using 0xFC00 is more readable here than ~0x3FF. It's sufficient becauwe ch1 ↵jan.nijtmans2021-03-021-3/+3
| | | | | | | | and ch2 are only 16-bit. Backported from 8.7
* | Backport some UTF-8-related changed from 8.7 to 8.6, only for TCL_UTF_MAX > ↵jan.nijtmans2021-03-021-3/+17
| | | | | | | | | | 3. No change for TCL_UTF_MAX=3. Also adapt test-cases accordingly, and add comments why the changes were done.
* | Use _wgetenv() in stead of getenv() on Windows: The wide environment is not ↵jan.nijtmans2021-02-233-11/+48
| | | | | | | | always well-synchonized with the locale environment. Problem detected on the sebres-8-6-clock-speedup-cr2, but this branch only exposed the bug, it did not cause it.
* | Fix [7c64aa5e1a]: Another uninitialized-variable bug in BRE-mode parsing. ↵jan.nijtmans2021-02-191-1/+1
|\ \ | |/ | | | | Thanks to Tom Lane for the bug-report and the fix
| * Fix [7c64aa5e1a]: Another uninitialized-variable bug in BRE-mode parsing. ↵jan.nijtmans2021-02-191-1/+1
| | | | | | | | Thanks to Tom Lane for the bug-report and the fix.
* | Performance optimization in TzsetIfNecessary() function. Cherry-picked from ↵jan.nijtmans2021-02-183-1/+34
| | | | | | | | sebres-8-6-clock-speedup-cr2 branch
* | Fix bug in previous commit: Don't update stringPtr->numChars when doing a ↵jan.nijtmans2021-02-161-3/+0
| | | | | | | | "string reverse", because TclUtfToUCS4() doesn't count surrogate pairs as 2
* | Fix [22324bcbd]: string reverse is broken for Emoji. Thanks to Chrisian ↵jan.nijtmans2021-02-161-3/+41
| | | | | | | | Werner for bug report and POC patch.
* | Fix Tcl_UtfPrev for TCL_UTF_MAX>3, so it can jump back over Emoji. ↵jan.nijtmans2021-02-162-5/+5
| | | | | | | | | | Backported from 8.7, no change for TCL_UTF_MAX=3. This way, the previous fix can be slightly more simplified, and working for TCL_UTF_MAX>3 too.
* | Fix [d43f96c1a8]: string trimright is broken for Emojijan.nijtmans2021-02-151-8/+9
| |
* | More implicit type-casts, for better compatibility with C++jan.nijtmans2021-02-056-93/+92
| |
* | *.decls files are now in UTF-8. Use "in" operator in stead of "lsearch -exact".jan.nijtmans2021-01-274-8/+8
| |
* | Fix [8c025f8f0d]: Run-time error on tcl 8.6.11 32 bits (from cross-compile ↵jan.nijtmans2021-01-211-0/+9
|\ \ | |/ | | | | Centos6.9 64-bits)
| * Fix [8c025f8f0d]: Run-time error on tcl 8.6.11 32 bits (from cross-compile ↵jan.nijtmans2021-01-211-0/+9
| |\ | | | | | | | | | Centos6.9 64-bits)
| | * Possible fix (workaround) for [8c025f8f0d]: Run-time error on tcl 8.6.11 32 ↵jan.nijtmans2021-01-201-0/+9
| | | | | | | | | | | | | | | bits (from cross-compile Centos6.9 64-bits). Since autoconf-2.59 has limited support for cross-compilation, a better fix has to wait for Tcl 8.7 (which uses autoconf-2.70)
* | | Make tclCkalloc.c and tclExecute warning-free on Windows when compiled with ↵jan.nijtmans2021-01-202-17/+17
| |/ |/| | | | | --enable-memory=(mem|all).
* | Fix [1dab713a38]: Uninitialized-variable use while parsing '*' in BRE-mode ↵jan.nijtmans2021-01-111-1/+1
|\ \ | |/ | | | | regexps
| * Fix [1dab713a38]: Uninitialized-variable use while parsing '*' in BRE-mode ↵jan.nijtmans2021-01-111-1/+1
| | | | | | | | regexps
* | Fix mingw-w64 compiler warnings when using __USE_MINGW_ANSI_STDIO=1. Not ↵jan.nijtmans2021-01-071-162/+132
| | | | | | | | recommended, but it should work. See: [https://sourceforge.net/p/mingw-w64/wiki2/gnu%20printf/|gnu printf]
* | Fix [c376607b22]: Tcl 8.6: Extended plane character does not encode ↵jan.nijtmans2021-01-041-3/+3
| | | | | | | | correctly to UTF-16 with TCL_UTF_MAX==5
* | merge 8.6dgp2020-12-151-1/+1
|\ \
| * | Fix C:\test\tcl8.6.11_rc0\win\..\generic\tclStubInit.c(107) : warning C4761:jan.nijtmans2020-12-141-1/+1
| | | | | | | | | | | | integral size mismatch in argument; Only happening on 32-bit Windows
* | | merge 8.6dgp2020-12-101-2/+2
|\ \ \ | |/ /