C / C++ UTF-8 upper/lower case conversions
The Problem: There is a method with a corresponding test-case that works on one machine and fails on the other (details below). I assume there's something wrong with the code, causing it to work by chance on the one machine. Unfortunately I cannot find the problem. Please note that the usage of std::string and utf-8 encoding are requirements I have no real influence on. Using C++ methods would be totally fine, but unfortunately I failed to find anything. Hence the use of C-functions. The method: std::string firstCharToUpperUtf8(const string& orig) { std::string retVal; retVal.reserve(orig.size