aboutsummaryrefslogtreecommitdiff
path: root/regc_locale.c
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-07-24 15:07:42 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-07-24 15:07:42 +0200
commit6b8cbeed6cd6e2a65b50e9e19910f928432434e3 (patch)
tree7a291a061e1d1c002b6a104bacc5bd9c73346f21 /regc_locale.c
parentb00e966f85221c3702a1f3f90e9494eb480876dd (diff)
downloadterex-6b8cbeed6cd6e2a65b50e9e19910f928432434e3.tar.gz
fixed REG_ICASE for non-ANSI (Unicode) characters in the regular expression
* This was a combination of conversion loss and a too small color map. * The test suite was actually broken for Unicode since we have to `setlocale(LC_ALL, "")` for the libc Unicode handling functions to work as expected. SciTECO already did that. * Added test cases for plain Unicode (Cyrillic) characters in the regexp and for character ranges.
Diffstat (limited to 'regc_locale.c')
-rw-r--r--regc_locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regc_locale.c b/regc_locale.c
index dcf8e59..9bda44e 100644
--- a/regc_locale.c
+++ b/regc_locale.c
@@ -1111,7 +1111,7 @@ allcases(
{
struct cvec *cv;
pchr c = pc;
- chr lc, uc, tc;
+ pchr lc, uc, tc;
lc = Tcl_UniCharToLower(c);
uc = Tcl_UniCharToUpper(c);