[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Case modification fails for Unicode characters
From: |
Andreas Schwab |
Subject: |
Re: Case modification fails for Unicode characters |
Date: |
Fri, 13 Jul 2012 09:39:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
It _is_ a bash bug.
diff --git a/lib/sh/casemod.c b/lib/sh/casemod.c
index 3127d8c..d58b216 100644
--- a/lib/sh/casemod.c
+++ b/lib/sh/casemod.c
@@ -227,8 +227,8 @@ sh_modcase (string, pat, flags)
{
default:
case CASE_NOOP: nwc = wc; break;
- case CASE_UPPER: nwc = TOUPPER (wc); break;
- case CASE_LOWER: nwc = TOLOWER (wc); break;
+ case CASE_UPPER: nwc = _to_wupper (wc); break;
+ case CASE_LOWER: nwc = _to_wlower (wc); break;
case CASE_TOGGLEALL:
case CASE_TOGGLE: nwc = TOGGLE (wc); break;
}
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."