为什么localeconv()在linux上意大利语(it_IT)返回空string(“”)为000_sep? 它在Mac OS X上工作正常。
#include <stdio.h> #include <locale.h> int main () { struct lconv * lc; printf("locale %sn",setlocale(LC_NUMERIC,"it_IT")); lc = localeconv(); printf("Thousands Sep: %sn",lc->thousands_sep); printf("Decimal Point = %sn",lc->decimal_point); printf("locale %sn","en_US")); lc = localeconv(); printf("Thousands Sep: %sn",lc->decimal_point); return 0; }
Mac OS X 10.9.1:
locale it_IT Thousands Sep: . Decimal Point =,locale en_US Thousands Sep:,Decimal Point = .
Ubuntu 12.10:
locale it_IT Thousands Sep: Decimal Point =,Decimal Point = .
CentOS 6.5:
如何在linux中获取给定语言环境的语言名称
修复awk命令中的数据和本地之间的不匹配
如何检查一个语言环境是否是UTF-8?
无Unicode库和windows语言环境
Locale.getDefault()总是返回en
locale it_IT Thousands Sep: Decimal Point =,Decimal Point = .
有没有办法find我的linux中使用Perl的有效区域设置列表?
邮编格式的PHP区域设置
SetThreadLocale在进程范围内
C ++相当于使用语言环境和stream的mbsrtowcs和wcsrtombs
在命令行上执行语言环境的问题
总结以上是内存溢出为你收集整理的为什么localeconv()在Linux上意大利语(it_IT)返回空string(“”)为000_sep?全部内容,希望文章能够帮你解决为什么localeconv()在Linux上意大利语(it_IT)返回空string(“”)为000_sep?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)