I want to print chinese character with fmt::print. Here is my code.
#define FMT_HEADER_ONLY
#include <fmt/printf.h>
int main() {
fmt::print(" 我喜欢fmt \n");
fmt::print("I like fmt\n");
while (1) {
// do nothing
}
return 0;
}
My toolchain is mingw-w64 + gcc8.5.0, and my source file is saved as utf-8. When built with options -finput-charset=utf-8 -fexec-charset=gb2312, the generated exe prints nothing but just exits.
FMT-11.0.2 and FMT-10.2.1 are both tested, and the results are same.
I want to print chinese character with fmt::print. Here is my code.
My toolchain is mingw-w64 + gcc8.5.0, and my source file is saved as utf-8. When built with options -finput-charset=utf-8 -fexec-charset=gb2312, the generated exe prints nothing but just exits.
FMT-11.0.2 and FMT-10.2.1 are both tested, and the results are same.