Fix std::isblank assertion error in Visual Studio Chinese Debug (#365)

This commit is contained in:
66maer 2022-09-08 05:33:31 +08:00 committed by GitHub
parent ab1dc0f684
commit f7cf84bd56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }