diff --git a/cpp/ycm/Result.cpp b/cpp/ycm/Result.cpp index 26b18812..fb4789b8 100644 --- a/cpp/ycm/Result.cpp +++ b/cpp/ycm/Result.cpp @@ -21,6 +21,7 @@ #include #include #include +#include using boost::algorithm::istarts_with; @@ -29,9 +30,9 @@ namespace YouCompleteMe { namespace { char ChangeCharCase( char c ) { - if ( std::isupper( c ) ) - return std::tolower( c ); - return std::toupper( c ); + if ( std::isupper( c, std::locale() ) ) + return std::tolower( c, std::locale() ); + return std::toupper( c, std::locale() ); }