This is an alternative patch for MR2339: It seems that Windows AD in
turkish locale is ASCII-compatible with 'i'. Björn tells me that the
turkish locale is the only one where upper/lower casing letters in the
ASCII range is not compatible to ASCII.
Simplify our code by not calling the locale-specific standard
toupper/tolower for the ASCII range but rely on our tables.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Apr 4 11:45:24 UTC 2022 on sn-devel-184
**/
_PUBLIC_ codepoint_t toupper_m(codepoint_t val)
{
- if (val < 128) {
- return toupper(val);
- }
if (val >= ARRAY_SIZE(upcase_table)) {
return val;
}
**/
_PUBLIC_ codepoint_t tolower_m(codepoint_t val)
{
- if (val < 128) {
- return tolower(val);
- }
if (val >= ARRAY_SIZE(lowcase_table)) {
return val;
}