Commit f7cf84bd56b47728e4674f316d274b3d82a1cfb3

Authored by 66maer
Committed by GitHub
1 parent ab1dc0f6

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

Showing 1 changed file with 2 additions and 2 deletions
include/cxxopts.hpp
... ... @@ -2090,12 +2090,12 @@ format_description
2090 2090 {
2091 2091 appendNewLine = false;
2092 2092  
2093   - if (std::isblank(*previous))
  2093 + if (std::isblank(*previous, std::locale::classic()))
2094 2094 {
2095 2095 lastSpace = current;
2096 2096 }
2097 2097  
2098   - if (!std::isblank(*current))
  2098 + if (!std::isblank(*current, std::locale::classic()))
2099 2099 {
2100 2100 onlyWhiteSpace = false;
2101 2101 }
... ...