How to fix 'character map file `UTF-8' not found' : <p>I'm setting up a  UBI rhel8 container. I need to execute this command:</p>

<pre class="lang-sh prettyprint-override"><code>localedef -f UTF-8 -i en_US en_US.UTF-8
</code></pre>

<p>which failed with:</p>

<pre><code>character map file `UTF-8' not found: No such file or directory
cannot read character map directory `/usr/share/i18n/charmaps': No such file or directory
</code></pre>
