Utility class that turns on UTF-8 for most of CRT, and converts command-line arguments to UTF-8. This is really only needed on Windows, and this class does nothing on POSIX.
Use it like this:
int main(
int argc,
char **argv) {
try {
} catch (...) {
}
}
Definition: UnicodeCrt.h:29
Note that for this to work on older Windows versions, CRT should be statically linked. This is how OE releases are built right now.
Also note that while UnicodeCrt
constructor shouldn't normally throw, it can throw in theory.
- See also
- https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/setlocale-wsetlocale?view=msvc-170#utf-8-support