{"id":490,"date":"2013-07-11T18:07:09","date_gmt":"2013-07-11T16:07:09","guid":{"rendered":"http:\/\/songoku.homelinux.com\/wordpress\/?p=490"},"modified":"2013-07-11T18:07:09","modified_gmt":"2013-07-11T16:07:09","slug":"locale-problem-in-centos-5-6","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=490","title":{"rendered":"Locale problem in CentOS"},"content":{"rendered":"<p>\n\thello,\n<\/p>\n<p>\n\twhen executing some programs like bash, python, perl or yum you can sometimes encounter messages like these:\n<\/p>\n<p>\n\t<em>&quot;-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)&quot;<\/em>\n<\/p>\n<p>\n\tor\n<\/p>\n<p>\n\t<em>&quot;Please check that your locale settings:<br \/>\n\tLANGUAGE = (unset),<br \/>\n\tLC_ALL = (unset),<br \/>\n\tLANG = &quot;en_US.UTF-8&quot;&quot;<\/em>\n<\/p>\n<p>\n\tThe fix for this bug is quite simple, just add following line to your \/etc\/sysconfig\/i18n:\n<\/p>\n<p>\n\tLC_CTYPE=&quot;en_US.UTF-8&quot;\n<\/p>\n<p>\n\tand the world is nice again \ud83d\ude42\n<\/p>\n<p>\n\t<strong>Update:<\/strong><br \/>\n\tIf using the MacOSX Terminal you can also deactivate the option &quot;Set locale environment&#8230;&quot; in the Terminal -&gt; Settings -&gt; Advanced tab.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>hello, when executing some programs like bash, python, perl or yum you can sometimes encounter messages like these: &quot;-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)&quot; or &quot;Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = &quot;en_US.UTF-8&quot;&quot; The fix for this bug is quite simple, just add following line to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-490","post","type-post","status-publish","format-standard","hentry","category-linuxunix","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=490"}],"version-history":[{"count":0,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/490\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}