栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

GCC 4.7字符串文字的源字符编码和执行字符编码?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

GCC 4.7字符串文字的源字符编码和执行字符编码?

我不知道这些选项的实际效果如何(不使用atm;我仍然更喜欢将字符串文字视为“仅ASCII”,因为本地化的字符串无论如何都来自外部文件,因此大多是格式字符串或文件名之类的东西),但是它们添加了诸如

-fexec-charset=charsetSet the execution character set, used for string and character constants. The defaultis UTF-8. charset can be any encoding supported by the system's iconv library routine.-fwide-exec-charset=charsetSet the wide execution character set, used for wide string and character constants.The default is UTF-32 or UTF-16, whichever corresponds to the width of wchar_t. Aswith -fexec-charset, charset can be any encoding supported by the system's iconvlibrary routine; however, you will have problems with encodings that do not fitexactly in wchar_t.-finput-charset=charsetSet the input character set, used for translation from the character set of theinput 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 canbe overridden by either the locale or this command line option. Currently the commandline option takes precedence if there's a conflict. charset can be any encodingsupported by the system's iconv library routine.


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/383276.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号