mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
msvcrt: Use correct locale when validating character in _ismbcl0_l and _ismbcl1_l.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a808235e45
commit
7d383d573d
1 changed files with 2 additions and 2 deletions
|
@ -2566,7 +2566,7 @@ int CDECL _ismbcl0_l(unsigned int c, MSVCRT__locale_t locale)
|
|||
if(mbcinfo->mbcodepage == 932)
|
||||
{
|
||||
/* JIS non-Kanji */
|
||||
return _ismbclegal(c) && c >= 0x8140 && c <= 0x889e;
|
||||
return _ismbclegal_l(c, locale) && c >= 0x8140 && c <= 0x889e;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -2595,7 +2595,7 @@ int CDECL _ismbcl1_l(unsigned int c, MSVCRT__locale_t locale)
|
|||
if(mbcinfo->mbcodepage == 932)
|
||||
{
|
||||
/* JIS level-1 */
|
||||
return _ismbclegal(c) && c >= 0x889f && c <= 0x9872;
|
||||
return _ismbclegal_l(c, locale) && c >= 0x889f && c <= 0x9872;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue