crt: Replace IsDBCSLeadByteEx() by isleadbyte() in mbrtowc()
CRT function mbrtowc() works with cp defined by current locale, so use the
CRT function isleadbyte() which returns info according to CRT current locale
instead of WinAPI function IsDBCSLeadByteEx() which takes explicit locale.
For CRT function implementation it is always better to use CRT functions
instead of WinAPI functions. Function isleadbyte() is available in all CRT
libraries.
Note that CRT function _ismbblead() works with cp set by CRT function
_setmbcp() (as opposite by CRT's current locale), so do not use
_ismbblead() function.
Signed-off-by: Martin Storsjö <martin@martin.st>
1 file changed