, Sven Groot wrote

While using std::wstring would avoid that issue it's not a good idea on Linux because it's very wasteful (wchar_t is 4 bytes on Linux, unlike the 2 bytes it takes on Windows), and there's pretty much no APIs that accept wide strings.

If your computer can't cope with double the memory footprint of all of the strings in your application, you probably need a new computer.

The no-apis accepting wide strings is a bit more of a problem though.