diff options
author | Jeremy Allison <jra@samba.org> | 2005-12-27 20:52:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:58 -0500 |
commit | c2752347eb2deeb2798c580ec7fc751a847717e9 (patch) | |
tree | f0f957d3aca809dfdb85e5c999c39384c5a57f84 /source/include/smb.h | |
parent | c007f20c955f224c6a8deeb0b1f82e8432f1b9ab (diff) | |
download | samba-c2752347eb2deeb2798c580ec7fc751a847717e9.tar.gz samba-c2752347eb2deeb2798c580ec7fc751a847717e9.tar.xz samba-c2752347eb2deeb2798c580ec7fc751a847717e9.zip |
r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")
and replace calls to isupper/islower/toupper/tolower with
ASCII equivalents (mapping into _w variants).
Jeremy.
Diffstat (limited to 'source/include/smb.h')
-rw-r--r-- | source/include/smb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/include/smb.h b/source/include/smb.h index fc256c6f698..4f378f822e2 100644 --- a/source/include/smb.h +++ b/source/include/smb.h @@ -172,6 +172,9 @@ typedef smb_ucs2_t wfstring[FSTRING_LEN]; /* turn a 7 bit character into a ucs2 character */ #define UCS2_CHAR(c) ((c) << UCS2_SHIFT) +/* return an ascii version of a ucs2 character */ +#define UCS2_TO_CHAR(c) ((c) & 0xff) + /* Copy into a smb_ucs2_t from a possibly unaligned buffer. Return the copied smb_ucs2_t */ #define COPY_UCS2_CHAR(dest,src) (((unsigned char *)(dest))[0] = ((unsigned char *)(src))[0],\ ((unsigned char *)(dest))[1] = ((unsigned char *)(src))[1], (dest)) |