diff options
author | 66maer <505670805@qq.com> | 2022-09-08 00:33:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 00:33:31 +0300 |
commit | f7cf84bd56b47728e4674f316d274b3d82a1cfb3 (patch) | |
tree | e8a52a8ea333578c61579a94ac1f3be17f2eca2f | |
parent | ab1dc0f68454982cb0d7d65872235bab25514d3e (diff) |
Fix std::isblank assertion error in Visual Studio Chinese Debug (#365)
-rw-r--r-- | include/cxxopts.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 76dcc1a..ee02c57 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -2090,12 +2090,12 @@ format_description { appendNewLine = false; - if (std::isblank(*previous)) + if (std::isblank(*previous, std::locale::classic())) { lastSpace = current; } - if (!std::isblank(*current)) + if (!std::isblank(*current, std::locale::classic())) { onlyWhiteSpace = false; } |