spdlog icon indicating copy to clipboard operation
spdlog copied to clipboard

converting UCN to execution character set: Invalid or incomplete multibyte or wide character

Open SilhouettesForYou opened this issue 1 year ago • 1 comments

I got an error when use spdlog

/usr/include/fmt/core.h:430:68: error: converting UCN to execution character set: Invalid or incomplete multibyte or wide character

  430 | FMT_MSC_WARNING(suppress : 4566) constexpr unsigned char micro[] = "\u00B5";

      |                                                                    ^~~~~~~~

CMakeLists.txt:

...
add_compile_options(-finput-charset=utf-8)
add_compile_options(-fexec-charset=GB2312)
...

SilhouettesForYou avatar Sep 06 '24 09:09 SilhouettesForYou

This is a fmt library issue (fmtlib/fmt#3154) and already fixed. And you are using external fmt, so it is not the source code maintained in this repository. Please upgrade your fmt.

tt4g avatar Sep 06 '24 10:09 tt4g