1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

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)
This commit is contained in:
Andrew Tridgell 2001-10-03 14:55:45 +00:00
parent c388e744c4
commit 9d4e919f4a

View File

@ -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;
}
/*******************************************************************