{"id":5098,"date":"2016-09-01T10:58:57","date_gmt":"2016-09-01T10:58:57","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=5098"},"modified":"2016-09-14T12:03:10","modified_gmt":"2016-09-14T12:03:10","slug":"terminal-emulator-wrong-locale","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=5098","title":{"rendered":"Terminal Emulator: Wrong Locale"},"content":{"rendered":"<p><a href=\"https:\/\/help.ubuntu.com\/community\/Locale\">Ubuntu Locale<\/a><br \/>\n<a href=\"https:\/\/wiki.archlinux.org\/index.php\/systemd\">archlinux: systemd<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ systemctl --failed\r\n$ systemctl --all\r\n$ systemctl list-unit-files\r\n<\/pre>\n<h3>FAQ<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n1. check which locales are supported:\r\n$ locale -a\r\n\r\n2. add the locales you want (for example ru):\r\n$ sudo locale-gen ru_RU\r\n$ sudo locale-gen ru_RU.UTF-8\r\n\r\n3. run this update comand\r\n$ sudo update-locale \r\n\r\nor\r\n\r\n$ sudo dpkg-reconfigure locales\r\n$ sudo dpkg-reconfigure tzdata\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ systemctl status\r\n&lt;E2&gt;&lt;97&gt;&lt;8F&gt; ubuntu1\r\n    State: running\r\n     Jobs: 0 queued\r\n   Failed: 0 units\r\n    Since: Wed 2016-08-31 15:23:26 CEST; 21h ago\r\n   CGroup: \/\r\n           &lt;E2&gt;&lt;94&gt;&lt;9C&gt;&lt;E2&gt;&lt;94&gt;&lt;80&gt;1 \/sbin\/init\r\n           &lt;E2&gt;&lt;94&gt;&lt;9C&gt;&lt;E2&gt;&lt;94&gt;&lt;80&gt;system.slice\r\n&#x5B;...]\r\n\r\n# cat \/etc\/default\/locale \r\nLANG=&quot;en_US.UTF-8&quot;\r\nLANGUAGE=&quot;en_US:en&quot;\r\n\r\n# cat \/etc\/environment \r\nPATH=&quot;\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/usr\/games:\/usr\/local\/games&quot;\r\n\r\n$ locale\r\nlocale: Cannot set LC_ALL to default locale: No such file or directory\r\nLANG=en_US.UTF-8\r\nLANGUAGE=en_US:en\r\nLC_CTYPE=&quot;en_US.UTF-8&quot;\r\nLC_NUMERIC=de_CH.UTF-8\r\nLC_TIME=de_CH.UTF-8\r\nLC_COLLATE=&quot;en_US.UTF-8&quot;\r\nLC_MONETARY=de_CH.UTF-8\r\nLC_MESSAGES=&quot;en_US.UTF-8&quot;\r\nLC_PAPER=de_CH.UTF-8\r\nLC_NAME=de_CH.UTF-8\r\nLC_ADDRESS=de_CH.UTF-8\r\nLC_TELEPHONE=de_CH.UTF-8\r\nLC_MEASUREMENT=de_CH.UTF-8\r\nLC_IDENTIFICATION=de_CH.UTF-8\r\nLC_ALL=\r\n\r\n# for y in $(locale | cut -d '=' -f 2| sort |uniq );do locale-gen $y; done\r\nlocale: Cannot set LC_ALL to default locale: No such file or directory\r\nGenerating locales...\r\n  de_CH.UTF-8... done\r\nGeneration complete.\r\nGenerating locales...\r\n  en_US.UTF-8... done\r\nGeneration complete.\r\n\r\n# dpkg-reconfigure locales\r\nGenerating locales...\r\n  de_CH.UTF-8... done\r\n  en_AG.UTF-8... done\r\n  en_AU.UTF-8... done\r\n  en_BW.UTF-8... done\r\n  en_CA.UTF-8... done\r\n  en_DK.UTF-8... done\r\n  en_GB.UTF-8... done\r\n  en_HK.UTF-8... done\r\n  en_IE.UTF-8... done\r\n  en_IN.UTF-8... done\r\n  en_NG.UTF-8... done\r\n  en_NZ.UTF-8... done\r\n  en_PH.UTF-8... done\r\n  en_SG.UTF-8... done\r\n  en_US.UTF-8... up-to-date\r\n  en_ZA.UTF-8... done\r\n  en_ZM.UTF-8... done\r\n  en_ZW.UTF-8... done\r\nGeneration complete.\r\n\r\n# systemctl status\r\n\u25cf ubuntu1\r\n    State: running\r\n     Jobs: 0 queued\r\n   Failed: 0 units\r\n    Since: Mit 2016-08-31 15:23:26 CEST; 21h ago\r\n   CGroup: \/\r\n           \u251c\u25001 \/sbin\/init\r\n           \u251c\u2500system.slice\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu Locale archlinux: systemd $ systemctl &#8211;failed $ systemctl &#8211;all $ systemctl list-unit-files FAQ 1. check which locales are supported: $ locale -a 2. add the locales you want (for example ru): $ sudo locale-gen ru_RU $ sudo locale-gen ru_RU.UTF-8 3. run this update comand $ sudo update-locale or $ sudo dpkg-reconfigure locales $ sudo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5098","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/5098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5098"}],"version-history":[{"count":6,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/5098\/revisions"}],"predecessor-version":[{"id":5200,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/5098\/revisions\/5200"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}