summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-10-03 14:55:45 +0000
committerAndrew Tridgell <tridge@samba.org>2001-10-03 14:55:45 +0000
commit9d4e919f4a3c901c9e70bd710335f94cc5b726df (patch)
treece41a6c71db0c4c271df141a1f1d7f8a393dee91 /source3
parentc388e744c4aee2f18d769cf3bedecf86a8b83126 (diff)
downloadsamba-9d4e919f4a3c901c9e70bd710335f94cc5b726df.tar.gz
samba-9d4e919f4a3c901c9e70bd710335f94cc5b726df.tar.bz2
samba-9d4e919f4a3c901c9e70bd710335f94cc5b726df.zip
fixed basic ucs2 operation on big endian boxes. Still a bit more to
do, but at least you can connect now. (This used to be commit 211aeffa1a770716f798fd6ba12ab29a95555526)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_unistr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index a0e1b88eb8..215a58669d 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -181,7 +181,7 @@ uint32 buffer2_to_uint32(BUFFER2 *str)
smb_ucs2_t toupper_w(smb_ucs2_t val)
{
- return upcase_table[val];
+ return upcase_table[SVAL(&val,0)];
}
/*******************************************************************
@@ -190,7 +190,7 @@ smb_ucs2_t toupper_w(smb_ucs2_t val)
smb_ucs2_t tolower_w( smb_ucs2_t val )
{
- return lowcase_table[val];
+ return lowcase_table[SVAL(&val,0)];
}
/*******************************************************************
@@ -198,7 +198,7 @@ determine if a character is lowercase
********************************************************************/
BOOL islower_w(smb_ucs2_t c)
{
- return upcase_table[c] != c;
+ return upcase_table[SVAL(&c,0)] != c;
}
/*******************************************************************
@@ -206,7 +206,7 @@ determine if a character is uppercase
********************************************************************/
BOOL isupper_w(smb_ucs2_t c)
{
- return lowcase_table[c] != c;
+ return lowcase_table[SVAL(&c,0)] != c;
}
@@ -215,7 +215,7 @@ determine if a character is valid in a 8.3 name
********************************************************************/
BOOL isvalid83_w(smb_ucs2_t c)
{
- return valid_table[c] != 0;
+ return valid_table[SVAL(&c,0)] != 0;
}
/*******************************************************************