You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm trying to build a simple test program using gcc with argument -fexec-charset, I got the following error:
In file included from D:/MinGW32/i686-w64-mingw32/include/fmt/format.h:48,
from test.cpp:1:
D:/MinGW32/i686-w64-mingw32/include/fmt/core.h:413:68: error: converting UCN to execution character set: Illegal byte sequence
FMT_MSC_WARNING(suppress : 4566) constexpr unsigned char micro[] = "\u00B5";
^~~~~~~~
The command used to compile is:
R:\RedPanda-Release\RedPandaIDE>gcc test.cpp -finput-charset=UTF-8 -fexec-charset=gbk
In file included from D:/MinGW32/x86_64-w64-mingw32/include/fmt/format.h:49,
from test.cpp:1:
D:/MinGW32/x86_64-w64-mingw32/include/fmt/core.h:411:68: error: converting UCN to execution character set: Illegal byte sequence
411 | FMT_MSC_WARNING(suppress : 4566) constexpr unsigned char micro[] = "\u00B5";
And the test problem is:
#include <fmt/format.h>
int main() {
fmt::print("test");
return 0;
}
The text was updated successfully, but these errors were encountered:
In general it's recommended to use Unicode instead of legacy encodings but this particular error has been fixed in fc07217 by switching to a more widely available character for Unicode detection.
When I'm trying to build a simple test program using gcc with argument -fexec-charset, I got the following error:
The command used to compile is:
And the test problem is:
The text was updated successfully, but these errors were encountered: