mirror of
https://github.com/samba-team/samba.git
synced 2025-09-04 09:44:20 +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:
@@ -1298,7 +1298,7 @@ void strlower_m(char *s)
|
|||||||
supported multi-byte character sets are ascii-compatible
|
supported multi-byte character sets are ascii-compatible
|
||||||
(ie. they match for the first 128 chars) */
|
(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 = tolower((unsigned char)*s);
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
@@ -1322,7 +1322,7 @@ void strupper_m(char *s)
|
|||||||
supported multi-byte character sets are ascii-compatible
|
supported multi-byte character sets are ascii-compatible
|
||||||
(ie. they match for the first 128 chars) */
|
(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 = toupper((unsigned char)*s);
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user