Fix std::isblank assertion error in Visual Studio Chinese Debug (#365)
This commit is contained in:
parent
ab1dc0f684
commit
f7cf84bd56
@ -2090,12 +2090,12 @@ format_description
|
|||||||
{
|
{
|
||||||
appendNewLine = false;
|
appendNewLine = false;
|
||||||
|
|
||||||
if (std::isblank(*previous))
|
if (std::isblank(*previous, std::locale::classic()))
|
||||||
{
|
{
|
||||||
lastSpace = current;
|
lastSpace = current;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!std::isblank(*current))
|
if (!std::isblank(*current, std::locale::classic()))
|
||||||
{
|
{
|
||||||
onlyWhiteSpace = false;
|
onlyWhiteSpace = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user