{"id":388,"date":"2009-06-09T10:05:07","date_gmt":"2009-06-09T18:05:07","guid":{"rendered":"http:\/\/wp.colliertech.org\/cj\/?p=388"},"modified":"2010-03-01T18:45:21","modified_gmt":"2010-03-02T02:45:21","slug":"using-en_usutf-8-locale-on-debianubuntu","status":"publish","type":"post","link":"https:\/\/wp.c9h.org\/cj\/?p=388","title":{"rendered":"Using en_US.UTF-8 locale on Debian\/Ubuntu"},"content":{"rendered":"<p><b>NB:<\/b> this write-up has been superseded.  You should be reading <a href=\"http:\/\/wp.colliertech.org\/cj\/?p=757\">this article<\/a> instead.<\/p>\n<p>It took me a while to figure out how to make Larry&#8217;s postings to #perl6 not break my screen session.  Now that I&#8217;ve figured it out, I&#8217;ll see if I can share it with y&#8217;all.  In addition to screen and irssi displaying garbage, I also got a lot of these errors (I hope this helps those of you who use google to search for error strings):<\/p>\n<pre>\r\nperl: warning: Setting locale failed.\r\nperl: warning: Please check that your locale settings:\r\n\tLANGUAGE = (unset),\r\n\tLC_ALL = \"en_US.UTF-8\",\r\n\tLANG = \"en_US.UTF-8\"\r\n    are supported and installed on your system.\r\nperl: warning: Falling back to the standard locale (\"C\").\r\nlocale: Cannot set LC_CTYPE to default locale: No such file or directory\r\nlocale: Cannot set LC_MESSAGES to default locale: No such file or directory\r\nlocale: Cannot set LC_ALL to default locale: No such file or directory\r\n<\/pre>\n<div>\nFirst of all, install the locales package:<\/p>\n<pre>$ sudo apt-get install locales<\/pre>\n<p>Then re-configure it and mark the tick by &#8216;en_US.UTF-8&#8217;:<\/p>\n<pre>$ sudo dpkg-reconfigure locales<\/pre>\n<p><a href=\"https:\/\/i0.wp.com\/wp.colliertech.org\/cj\/wp-content\/uploads\/2009\/06\/configuring_locales.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/wp.colliertech.org\/cj\/wp-content\/uploads\/2009\/06\/configuring_locales-300x173.png?resize=300%2C173\" alt=\"configuring_locales\" title=\"configuring_locales\" width=\"300\" height=\"173\" class=\"alignright size-medium wp-image-389\" srcset=\"https:\/\/i0.wp.com\/wp.c9h.org\/cj\/wp-content\/uploads\/2009\/06\/configuring_locales.png?resize=300%2C173&amp;ssl=1 300w, https:\/\/i0.wp.com\/wp.c9h.org\/cj\/wp-content\/uploads\/2009\/06\/configuring_locales.png?w=840&amp;ssl=1 840w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\n<\/div>\n<p><\/a><br clear=\"all\"><\/p>\n<p>At this point, you should be good.  If you&#8217;re using screen, remember to pass the -U argument when re-attaching.  I usually do something like this:<\/p>\n<pre>$ screen -rxU irc<\/pre>\n\n<div class=\"twitter-share\"><a href=\"https:\/\/twitter.com\/intent\/tweet?via=cjamescollier\" class=\"twitter-share-button\">Tweet<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>NB: this write-up has been superseded. You should be reading this article instead. It took me a while to figure out how to make Larry&#8217;s postings to #perl6 not break my screen session. Now that I&#8217;ve figured it out, I&#8217;ll see if I can share it with y&#8217;all. In addition to screen and irssi displaying [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[181,116,18],"tags":[],"class_list":["post-388","post","type-post","status-publish","format-standard","hentry","category-irc","category-language","category-perl"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1YDIB-6g","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=388"}],"version-history":[{"count":8,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/388\/revisions"}],"predecessor-version":[{"id":762,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=\/wp\/v2\/posts\/388\/revisions\/762"}],"wp:attachment":[{"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.c9h.org\/cj\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}