<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11139</bug_id>
          
          <creation_ts>2017-03-09 12:04:31 +0000</creation_ts>
          <short_desc>Locale settings does not have effects</short_desc>
          <delta_ts>2017-03-10 08:34:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.2.1</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yocto User">yoctouser</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>costamagnagianfranco</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>71163</commentid>
    <comment_count>0</comment_count>
    <who name="Yocto User">yoctouser</who>
    <bug_when>2017-03-09 12:04:31 +0000</bug_when>
    <thetext>Preconditions/Environment
-------------------------
Host system: Ubuntu 14.04.5 LTS (Trusty Tahr)
Yocto version: YP Core - Morty 2.2.1
Target: SABRE Board for Smart Devices based on i.MX 6Quad processor
Additional meta: meta-freescale, meta-freescale-3rdparty, meta-freescale-distro

Triggering Action/Cause
-----------------------
Modified the local.conf to specify the desired locales with the add of the following variable:
IMAGE_LINGUAS = &quot;de-de fr-fr en-gb&quot;

Built a base image with the command:
bitbake core-image-base

Booted the image into the SABRE board

Expectation
-----------
The filesystem contains the desired locales into the path:
/usr/share/locale

The generated locales do support UTF-8 encoding

The output of the command:
LANG=fr_FR df | head -n1

is translated in french.

Actual Result
-------------
The filesystem contains the desired locales:
root@imx6qsabresd:~# ls -la /usr/share/locale/
drwxr-xr-x    5 root     root          1024 Mar  8 10:34 .
drwxr-xr-x   13 root     root          1024 Mar  8 10:34 ..
drwxr-xr-x    3 root     root          1024 Mar  8 10:34 de
drwxr-xr-x    3 root     root          1024 Mar  8 10:34 en_GB
drwxr-xr-x    3 root     root          1024 Mar  8 10:45 fr

The output of the commands:
root@imx6qsabresd:~# LANG=fr_FR df | head -n1
Filesystem           1K-blocks      Used Available Use% Mounted on

root@imx6qsabresd:~# LANG=fr df | head -n1
Filesystem           1K-blocks      Used Available Use% Mounted on

is in english. No french translation.

Reproducibility
---------------
Always</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71175</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-03-09 17:19:26 +0000</bug_when>
    <thetext>Update: df is a bad choice as busybox doesn&apos;t support locales.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71177</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-03-09 17:53:34 +0000</bug_when>
    <thetext>root@bob:/usr/lib/locale/fr_FR# LANG=fr_FR sed --help
Utilisation: sed [OPTION]... {script-seulement-si-pas-d&apos;autre-script}

It&apos;s not totally broken, just need to make sure you don&apos;t use a busybox binary as that doesn&apos;t support translations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71192</commentid>
    <comment_count>3</comment_count>
    <who name="Yocto User">yoctouser</who>
    <bug_when>2017-03-10 08:34:21 +0000</bug_when>
    <thetext>Not a bug, the problem was caused by the fact that the &quot;df&quot; tool from BusyBox v1.24.1 does not support translations. When checking locales be sure to use a binary that supports them.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>