title: why do I get a locale error even though it is set?
body: <p>When I run <code>bitbake</code>, I'm getting the following:</p>
  <pre><code>$ bitbake core-image-base
  Please use a locale setting which supports utf-8.
  Python can't change the filesystem locale after loading so we need a utf-8 when python starts or things won't work.
  </code></pre>
  <p>even though my locale is set to <code>en_US.UTF-8</code>, why is this?</p>
  <pre><code>$ echo $LC_ALL
  en_US.UTF-8
  </code></pre>
  <p>For additional background information, please also see <a href="https://unix.stackexchange.com/questions/626916/how-to-set-locale-correctly-manually/626919">https://unix.stackexchange.com/questions/626916/how-to-set-locale-correctly-manually/626919</a></p>
  <p><strong>UPDATE:</strong></p>
  <pre><code>$ locale
  locale: Cannot set LC_CTYPE to default locale: No such file or directory
  locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  locale: Cannot set LC_ALL to default locale: No such file or directory
  LANG=en_US.UTF-8
  LANGUAGE=en_US.UTF-8
  LC_CTYPE=&quot;en_US.UTF-8&quot;
  LC_NUMERIC=&quot;en_US.UTF-8&quot;
  LC_TIME=&quot;en_US.UTF-8&quot;
  LC_COLLATE=&quot;en_US.UTF-8&quot;
  LC_MONETARY=&quot;en_US.UTF-8&quot;
  LC_MESSAGES=&quot;en_US.UTF-8&quot;
  LC_PAPER=&quot;en_US.UTF-8&quot;
  LC_NAME=&quot;en_US.UTF-8&quot;
  LC_ADDRESS=&quot;en_US.UTF-8&quot;
  LC_TELEPHONE=&quot;en_US.UTF-8&quot;
  LC_MEASUREMENT=&quot;en_US.UTF-8&quot;
  LC_IDENTIFICATION=&quot;en_US.UTF-8&quot;
  LC_ALL=en_US.UTF-8
  </code></pre>
  <p>My <code>~/.bashrc</code> looks like:</p>
  <pre><code>$ cat ~/.bashrc
  export LC_ALL=en_US.UTF-8
  export LANG=en_US.UTF-8
  export LANGUAGE=en_US.UTF-8
  </code></pre>
  <p>and when opening a new shell I get:</p>
  <pre><code>$ bash
  bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  </code></pre>