Second part of fix for bug 8310 - toupper_ascii() is broken on big-endian systems.
authorJeremy Allison <jra@samba.org>
Tue, 19 Jul 2011 20:08:31 +0000 (13:08 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Jul 2011 19:54:36 +0000 (21:54 +0200)
commit669c6b00753487955a03312f5aab3a455b04df61
treebe9a1cd87f92a46a39818ce8fbace41a7c1e20bf
parent9deadb668d82a0b608123c3940075e92ea93c009
Second part of fix for bug 8310 - toupper_ascii() is broken on big-endian systems.

Re-add:
    smb_ucs2_t toupper_w(smb_ucs2_t v);
    bool isupper_w(smb_ucs2_t v);
    smb_ucs2_t tolower_w(smb_ucs2_t v);
    bool islower_w(smb_ucs2_t v);

and ensure they are called whenever we are operating on smb_ucs2_t
variables. I'd like to make the definition of smb_ucs2_t incompatible
with int and codepoint_t so they can't be mixed, but that's a patch
for another time.
(cherry picked from commit bdc078a81e49bce3b51560a75984e0306c387573)
source3/include/proto.h
source3/lib/charcnv.c
source3/lib/ms_fnmatch.c
source3/lib/util_str.c
source3/lib/util_unistr.c