https://access.redhat.com/solutions/3394991
How to specify character set for execution file in gcc
SOLUTION UNVERIFIED - 已更新 2018年三月29日14:21 -
环境
- Red Hat Enterprise Linux 7
问题
- How to specify character set for execution file in gcc.
决议
Use -fexec-charset, for example:
$ gcc -fexec-charset=sjis example.c
根源
- GCC(1) explains the option.
-fexec-charset=charset
Set the execution character set, used for string and character
constants. The default is UTF-8. charset can be any encoding
supported by the system's "iconv" library routine.
GCC中设置执行文件字符集

本文介绍如何在GCC编译器中使用-fexec-charset选项来指定执行文件的字符集,例如设置sjis字符集。默认情况下,GCC使用的是UTF-8字符集。
592

被折叠的 条评论
为什么被折叠?



