{"id":6379,"date":"2020-01-19T19:49:45","date_gmt":"2020-01-19T11:49:45","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6379"},"modified":"2020-01-21T16:33:36","modified_gmt":"2020-01-21T08:33:36","slug":"locale","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/locale","title":{"rendered":"locale\u547d\u4ee4 – \u8bbe\u7f6e\u5b57\u7b26\u96c6"},"content":{"rendered":"\n
locale\u662flinux\u7cfb\u7edf\u4e2d\u591a\u8bed\u8a00\u73af\u5883\u7684\u8bbe\u7f6e\u63a5\u53e3\uff0cLocale\u6839\u636e\u8ba1\u7b97\u673a\u7528\u6237\u6240\u4f7f\u7528\u7684\u8bed\u8a00\uff0c\u6240\u5728\u56fd\u5bb6\u6216\u8005\u5730\u533a\uff0c\u4ee5\u53ca\u5f53\u5730\u7684\u6587\u5316\u4f20\u7edf\u6240\u5b9a\u4e49\u7684\u4e00\u4e2a\u8f6f\u4ef6\u8fd0\u884c\u65f6\u7684\u8bed\u8a00\u73af\u5883\u3002<\/p>\n\n\n\n
\u901a\u8fc7locale\u6765\u8bbe\u7f6e\u7a0b\u5e8f\u8fd0\u884c\u7684\u4e0d\u540c\u8bed\u8a00\u73af\u5883\uff0clocale\u7531ANSI C\u63d0\u4f9b\u652f\u6301\u3002locale\u7684\u547d\u540d\u89c4\u5219\u4e3a<\u8bed\u8a00>_<\u5730\u533a>.<\u5b57\u7b26\u96c6\u7f16\u7801>\uff0c\u5982zh_CN.UTF-8\uff0czh\u4ee3\u8868\u4e2d\u6587\uff0cCN\u4ee3\u8868\u5927\u9646\u5730\u533a\uff0cUTF-8\u8868\u793a\u5b57\u7b26\u96c6\u3002\u5728locale\u73af\u5883\u4e2d\uff0c\u6709\u4e00\u7ec4\u53d8\u91cf\uff0c\u4ee3\u8868\u56fd\u9645\u5316\u73af\u5883\u4e2d\u7684\u4e0d\u540c\u8bbe\u7f6e\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>locale [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u663e\u793a\u9ed8\u8ba4\u7684\u8bed\u8a00\u5b57\u7b26\u96c6\uff1a<\/p>\n\n\n\n \u67e5\u770b\u53ef\u7528\u7684\u8bed\u8a00\u73af\u5883\uff1a<\/p>\n\n\n\n locale\u662flinux\u7cfb\u7edf\u4e2d\u591a\u8bed\u8a00\u73af\u5883\u7684\u8bbe\u7f6e\u63a5\u53e3\uff0cLocale\u6839\u636e\u8ba1\u7b97\u673a\u7528\u6237\u6240\u4f7f\u7528\u7684\u8bed\u8a00\uff0c\u6240\u5728\u56fd\u5bb6\u6216\u8005\u5730\u533a\uff0c […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6379"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6379"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6379\/revisions"}],"predecessor-version":[{"id":6552,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6379\/revisions\/6552"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-a<\/td> \u5199\u5165\u53ef\u7528\u533a\u57df\u8bbe\u7f6e\u7684\u540d\u79f0<\/td><\/tr> -m<\/td> \u5199\u5165\u53ef\u7528\u5b57\u7b26\u6620\u5c04\u7684\u540d\u79f0<\/td><\/tr> -c<\/td> \u5199\u5165\u9009\u5b9a\u7c7b\u522b\u7684\u540d\u79f0<\/td><\/tr> -k<\/td> \u5199\u5165\u9009\u5b9a\u5173\u952e\u5b57\u7684\u540d\u79f0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# locale<\/pre>\n\n\n\n
[root@linuxcool ~]# locale -a<\/pre>\n","protected":false},"excerpt":{"rendered":"