diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-02-16 16:30:56 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-02-18 17:00:34 +1100 |
commit | 92faeaeea841dd0bce9460d25429846ae2fdc0af (patch) | |
tree | 1280a8722d974c46e767047fe8ec9a65442dd5d7 /source3/lib/charcnv.c | |
parent | 0bad0e3ff2063f009557ab6ad7a442ceaed593ee (diff) | |
download | samba-92faeaeea841dd0bce9460d25429846ae2fdc0af.tar.gz samba-92faeaeea841dd0bce9460d25429846ae2fdc0af.tar.bz2 samba-92faeaeea841dd0bce9460d25429846ae2fdc0af.zip |
charset Remove use of {isupper,islower,toupper,tolower}_w functions
These now call the common _m functions that consider UTF16 code points.
This removes the code which will make up a 'lame' table in memory, as
this can just as correctly be handled by running the algorithm at runtime (which is to call toupper() and tolower() on characters < 128).
When used, a top level waf build will always locate the correct table
- in the build tree or outside - due to relinking the installed
binary.
Andrew Bartlett
Diffstat (limited to 'source3/lib/charcnv.c')
-rw-r--r-- | source3/lib/charcnv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index 3b6dfc5099..f79785ef15 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -1229,7 +1229,7 @@ size_t push_ucs2(const void *base_ptr, void *dest, const char *src, size_t dest_ terminated if STR_TERMINATE isn't set. */ for (i = 0; i < (ret / 2) && i < (dest_len / 2) && dest_ucs2[i]; i++) { - smb_ucs2_t v = toupper_w(dest_ucs2[i]); + smb_ucs2_t v = toupper_m(dest_ucs2[i]); if (v != dest_ucs2[i]) { dest_ucs2[i] = v; } |