lib:ldb: Use ldb_ascii_toupper() for case folding
authorAndreas Schneider <asn@samba.org>
Thu, 10 Nov 2022 13:44:59 +0000 (14:44 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 23 Dec 2022 13:23:29 +0000 (13:23 +0000)
commit24275cd800b05538ae32e29cbe74529076184954
treec9ac7499500cd1554c00df01eb190428c57f2df2
parenta8f6fa03ef68f086e46539af4d4594b35e638e37
lib:ldb: Use ldb_ascii_toupper() for case folding

For example there are at least two locales (tr_TR and az_AZ) in glibc
having dotless i transformation different from Latin scripts and GUID
versus Guid comparison would be different there (attribute name would
not match in the test).

See also
https://en.wikipedia.org/wiki/Dotted_and_dotless_I
https://lists.samba.org/archive/samba-technical/2019-December/134659.html

This fixes: LC_ALL=tr_TR.UTF-8 make test

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15248

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/ldb/common/attrib_handlers.c
lib/ldb/common/ldb_utf8.c
lib/ldb/include/ldb.h