I'm currently on GCC Cygwin trying to output my French translated content. The input source string, encoded in a UTF-8 file using Eclipse, and verified in Notepad as UTF-8 encoded is:
wchar_t **strings;
...
strings[NL_ARGUMENT_DESCRIPTION_ADD_METADATA] =
L"Ajouter du contenu de métadonnées.";
compiles just fine under GCC 11.2.0 with the -finput-charset=UTF-8
. The resulting output ends up messed up as:
Ajouter du contenu de m▒tadonn▒es.
Unless I pipe this to iconv --from-code=ISO-8859-1 --to-code=UTF-8
where the output ends up looking correct as:
Ajouter du contenu de métadonnées.
Is there any way to avoid having to pipe this to iconv
as I'm dealing with a GCC program with a CLI and do not want users to have to worry about piping to read their online help? I am using wprintf(L"%S")
-style format strings when generating output.