简介
这个iconv为gcc提供字符转换的支持。其实这个命令也是glibc提供的。有命令上的支持,也有功能库的支持。iconv库,方便gcc使用。
[root@vmtca-2101 test]# rpm -qf /usr/bin/iconv
glibc-common-2.28-211.el8.x86_64
相关的编译选项
-finput-charset=charset
Set the input character set, used for translation from the character set of the input file to the source character set used by GCC. If the locale does not specify, or GCC cannot get this information from the locale, the default is UTF-8. This can be overridden by either the locale or this command-line option. Currently the command-line option takes precedence if there’s a conflict. charset can be any encoding supported by the system’s iconv library routine.