msvcrt: Use internal toupper implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
834134f284
commit
3f675c1a9d
|
@ -3007,7 +3007,7 @@ int CDECL MSVCRT_stat64(const char* path, struct MSVCRT__stat64 * buf)
|
|||
as a drive letter
|
||||
*/
|
||||
if (isalpha(*path)&& (*(path+1)==':'))
|
||||
buf->st_dev = buf->st_rdev = toupper(*path) - 'A'; /* drive num */
|
||||
buf->st_dev = buf->st_rdev = MSVCRT__toupper_l(*path, NULL) - 'A'; /* drive num */
|
||||
else
|
||||
buf->st_dev = buf->st_rdev = MSVCRT__getdrive() - 1;
|
||||
|
||||
|
|
|
@ -417,7 +417,7 @@ unsigned int CDECL _mbctoupper(unsigned int c)
|
|||
FIXME("Handle MBC chars\n");
|
||||
return c;
|
||||
}
|
||||
return toupper(c); /* ASCII CP or SB char */
|
||||
return MSVCRT__toupper_l(c, NULL); /* ASCII CP or SB char */
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
|
@ -1977,7 +1977,7 @@ unsigned char* CDECL _mbsupr(unsigned char* s)
|
|||
*s++=c;
|
||||
}
|
||||
}
|
||||
else for ( ; *s; s++) *s = toupper(*s);
|
||||
else for ( ; *s; s++) *s = MSVCRT__toupper_l(*s, NULL);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -2011,7 +2011,7 @@ int CDECL _mbsupr_s(unsigned char* s, MSVCRT_size_t len)
|
|||
*s++=c;
|
||||
}
|
||||
}
|
||||
else for ( ; *s && len > 0; s++, len--) *s = toupper(*s);
|
||||
else for ( ; *s && len > 0; s++, len--) *s = MSVCRT__toupper_l(*s, NULL);
|
||||
if (*s)
|
||||
{
|
||||
*s = '\0';
|
||||
|
|
|
@ -354,7 +354,7 @@ static inline void FUNC_NAME(pf_fixup_exponent)(char *buf, BOOL three_digit_exp)
|
|||
{
|
||||
char* tmp = buf;
|
||||
|
||||
while(tmp[0] && toupper(tmp[0])!='E')
|
||||
while(tmp[0] && MSVCRT__toupper_l(tmp[0], NULL)!='E')
|
||||
tmp++;
|
||||
|
||||
if(tmp[0] && (tmp[1]=='+' || tmp[1]=='-') &&
|
||||
|
@ -664,10 +664,10 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API
|
|||
sprintf(tmp, nan_str);
|
||||
if (strchr("EFG", flags.Format))
|
||||
for(i=0; tmp[i]; i++)
|
||||
tmp[i] = toupper(tmp[i]);
|
||||
tmp[i] = MSVCRT__toupper_l(tmp[i], NULL);
|
||||
} else {
|
||||
sprintf(tmp, float_fmt, val);
|
||||
if(toupper(flags.Format)=='E' || toupper(flags.Format)=='G')
|
||||
if(MSVCRT__toupper_l(flags.Format, NULL)=='E' || MSVCRT__toupper_l(flags.Format, NULL)=='G')
|
||||
FUNC_NAME(pf_fixup_exponent)(tmp, three_digit_exp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue