1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix for bug #922. Fast path not called for strlower_m() and strupper_m().

From ab@samba.org (Alexander Bokovoy).
Jeremy.
(This used to be commit fac9e6d712)
This commit is contained in:
Jeremy Allison 2004-01-07 23:21:36 +00:00
parent 9919ab60ea
commit e82bfa5cf6

View File

@ -1298,7 +1298,7 @@ void strlower_m(char *s)
supported multi-byte character sets are ascii-compatible
(ie. they match for the first 128 chars) */
while (*s && !(((unsigned char)s[0]) & 0x7F)) {
while (*s && !(((unsigned char)s[0]) & 0x80)) {
*s = tolower((unsigned char)*s);
s++;
}
@ -1322,7 +1322,7 @@ void strupper_m(char *s)
supported multi-byte character sets are ascii-compatible
(ie. they match for the first 128 chars) */
while (*s && !(((unsigned char)s[0]) & 0x7F)) {
while (*s && !(((unsigned char)s[0]) & 0x80)) {
*s = toupper((unsigned char)*s);
s++;
}