<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Dear all,</p>
    <p>I'm trying to configure locale support in Yocto. My taget machine
      is: imx6qsabresd (i.MX 6Quad Processor), yocto version is: morty.</p>
    <p>I've created a base image with the command: bitbake
      core-image-base, then I've booted the image in my sabre board.
      Everything works fine except locales.</p>
    <p>Reading in the docs I've found:</p>
    <p>
      <blockquote type="cite">You can set <code class="filename">GLIBC_GENERATE_LOCALES</code>
        in your <code class="filename">local.conf</code> file. By
        default, all locales are generated. </blockquote>
      Link: <a
href="http://www.yoctoproject.org/docs/1.8/mega-manual/mega-manual.html#var-GLIBC_GENERATE_LOCALES">http://www.yoctoproject.org/docs/1.8/mega-manual/mega-manual.html#var-GLIBC_GENERATE_LOCALES</a><br>
    </p>
    <p>In my build I've found only a locale, path:
      /usr/share/locale/en_GB, no other locales are generated. Executing
      the "locale" command I've got:</p>
    <p>
      <blockquote type="cite">root@imx6qsabresd:/usr/share/locale#
        locale<br>
        LANG=<br>
        LC_CTYPE="POSIX"<br>
        LC_NUMERIC="POSIX"<br>
        LC_TIME="POSIX"<br>
        LC_COLLATE="POSIX"<br>
        LC_MONETARY="POSIX"<br>
        LC_MESSAGES="POSIX"<br>
        LC_PAPER="POSIX"<br>
        LC_NAME="POSIX"<br>
        LC_ADDRESS="POSIX"<br>
        LC_TELEPHONE="POSIX"<br>
        LC_MEASUREMENT="POSIX"<br>
        LC_IDENTIFICATION="POSIX"<br>
        LC_ALL=</blockquote>
      Default locale is POSIX, not en_GB.</p>
    <p>I've tried several options in my local.conf:</p>
    <ul>
      <li>ENABLE_BINARY_LOCALE_GENERATION = "1" to enable the generation
        of locales at build time</li>
      <li>IMAGE_INSTALL_append = " glibc-utils localedef" to add to the
        build locale and localdef</li>
      <li>IMAGE_LINGUAS = "en-gb en-us zh-cn" to specify the add of
        additional packages</li>
    </ul>
    <p>None of this options had effects.</p>
    <p>Looking in the features list of the next yocto release I've found
      this bug:</p>
    <p>
      <blockquote type="cite"><a
          href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=9070">https://bugzilla.yoctoproject.org/show_bug.cgi?id=9070</a></blockquote>
      is it possible that curreny release has problems respect to locale
      generation?<br>
    </p>
    <p><u><i>Why locales are not generated? What do I have to configure
          to generate them?</i></u><br>
    </p>
    <p>Thanks in advance for your time</p>
    <p>Regards,</p>
    <p>Fabio Emiliani<br>
    </p>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
@font-face
        {font-family:"Century Schoolbook";
        panose-1:2 4 6 4 5 5 5 2 3 4;}
@font-face
        {font-family:"Gill Sans MT";
        panose-1:2 11 5 2 2 1 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><b><span
              style="font-size:12.0pt;color:#002060;mso-fareast-language:IT"
              lang="EN-US">Fabio Emiliani<o:p></o:p></span></b></p>
        <p class="MsoNormal"><b><i><span style="mso-fareast-language:IT"
                lang="EN-US">Software Engineer<o:p></o:p></span></i></b></p>
        <p class="MsoNormal"><i><span style="font-family:"Gill Sans
              MT",sans-serif;mso-fareast-language:IT" lang="EN-US">
              Ph. +39 075 8298 530 Â </span></i></p>
        <p class="MsoNormal"><span style="mso-fareast-language:IT"><a
              href="mailto:fabio.emiliani@artgroup-spa.com"><i><span
                  style="font-family:"Gill Sans
                  MT",sans-serif;color:#0563C1" lang="EN-US">fabio.emiliani@artgroup-spa.com</span></i></a></span><span
            style="mso-fareast-language:IT" lang="EN-US"><o:p></o:p></span></p>
        <div style="mso-element:para-border-div;border-top:solid
          windowtext 1.0pt;border-left:none;border-bottom:solid
          windowtext 1.0pt;border-right:none;padding:1.0pt 0cm 1.0pt
          0cm">
          <p class="MsoNormal" style="border:none;padding:0cm"><span
style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:IT"
              lang="EN-US">DISCLAIMER<br>
              This email and any attachment may contain confidential
              information. If you are not the intended recipient you are
              not authorised to copy or disclose all or any part of it
              without the prior written consent of ART SpA.</span><span
style="font-size:12.0pt;color:black;mso-fareast-language:IT"
              lang="EN-US"><o:p></o:p></span></p>
        </div>
        <p class="MsoNormal"><span style="mso-fareast-language:IT"
            lang="EN-US"><o:p> </o:p></span></p>
        <p class="MsoNormal"><i><span style="font-family:"Gill Sans
              MT",sans-serif;mso-fareast-language:IT" lang="EN-US">ART
              SpA â€“ Step Forward With US - </span></i><span
            style="mso-fareast-language:IT"><a
              href="www.artgroup-spa.com"><i><span
                  style="font-family:"Gill Sans
                  MT",sans-serif;color:#0563C1" lang="EN-US">www.artgroup-spa.com</span></i></a></span><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter" />
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0" />
<v:f eqn="sum @0 1 0" />
<v:f eqn="sum 0 0 @1" />
<v:f eqn="prod @2 1 2" />
<v:f eqn="prod @3 21600 pixelWidth" />
<v:f eqn="prod @3 21600 pixelHeight" />
<v:f eqn="sum @0 0 1" />
<v:f eqn="prod @6 1 2" />
<v:f eqn="prod @7 21600 pixelWidth" />
<v:f eqn="sum @8 21600 0" />
<v:f eqn="prod @7 21600 pixelHeight" />
<v:f eqn="sum @10 21600 0" />
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" />
<o:lock v:ext="edit" aspectratio="t" />
</v:shapetype><v:shape id="Immagine_x0020_1" o:spid="_x0000_s1026" type="#_x0000_t75" alt="logo_ART_firma-1" style='position:absolute;margin-left:0;margin-top:0;width:108.7pt;height:26.5pt;z-index:-251657216;visibility:visible;mso-wrap-style:square;mso-width-percent:0;mso-height-percent:0;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:text;mso-width-percent:0;mso-height-percent:0;mso-width-relative:page;mso-height-relative:page'>
<v:imagedata src="http://www.artgroup-spa.com/wp-content/uploads/2016/07/logo_ART_firma-1.jpg" o:title="logo_ART_firma-1" />
<w:wrap type="tight"/>
</v:shape><![endif]--><!--[if !vml]--><img
            style="width:1.5104in;height:.3645in"
            src="cid:part5.45BC4325.4366F686@artgroup-spa.com"
            alt="logo_ART_firma-1" v:shapes="Immagine_x0020_1"
            height="35" hspace="12" align="left" width="145"><!--[endif]--><i><span
              style="font-family:"Gill Sans
              MT",sans-serif;mso-fareast-language:IT" lang="EN-US"><o:p></o:p></span></i></p>
        <div
          style="mso-element:para-border-div;border:none;border-bottom:solid
          windowtext 1.0pt;padding:0cm 0cm 1.0pt 0cm">
          <p class="MsoNormal" style="border:none;padding:0cm"><i><span
                style="font-size:10.0pt;font-family:"Gill Sans
                MT",sans-serif;mso-fareast-language:IT"
                lang="EN-US">Ph. +39 075 8298 501 â€“ Fax +39 075 8298 525
                <o:p></o:p></span></i></p>
        </div>
        <p class="MsoNormal"><span
style="font-size:21.0pt;font-family:Webdings;color:green;mso-fareast-language:IT">P</span><b><span
              style="font-size:7.5pt;font-family:"Century
              Gothic",sans-serif;color:green;mso-fareast-language:IT"
              lang="EN-US"> Please consider our environment  before
              printing this e-mail</span></b><b><span
              style="font-family:"Century
              Schoolbook",serif;color:green;mso-fareast-language:IT"
              lang="EN-US"><o:p></o:p></span></b></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
      </div>
    </div>
  </body>
</html>