Index: source/lib/file/file.cpp =================================================================== --- source/lib/file/file.cpp +++ source/lib/file/file.cpp @@ -29,6 +29,21 @@ #include "lib/file/common/file_stats.h" +#include + +using namespace std::literals; + +// Examples from https://en.wikipedia.org/w/index.php?title=UTF-8&oldid=1100616583#Examples +static_assert( + "\u0024"sv == "\x24"sv && + "\u00A3"sv == "\xC2\xA3"sv && + "\u0939"sv == "\xE0\xA4\xB9"sv && + "\u20AC"sv == "\xE2\x82\xAC"sv && + "\uD55C"sv == "\xED\x95\x9C"sv && + "\U00010348"sv == "\xF0\x90\x8D\x88"sv, + "0ad has to be compiled with UTF-8 as character set. " + "If you see this message you have to set the according compiler-flag: on msvc /utf-8."); + static const StatusDefinition fileStatusDefinitions[] = { { ERR::FILE_ACCESS, L"Insufficient access rights to open file", EACCES }, { ERR::FILE_NOT_FOUND, L"No such file or directory", ENOENT }