<?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>10908</bug_id>
          
          <creation_ts>2017-01-10 22:15:13 +0000</creation_ts>
          <short_desc>devtool needs to check to see if locales are set properly for utf-8</short_desc>
          <delta_ts>2017-12-06 17:22:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>eSDK</product>
          <component>eSDK</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>henry.bruce</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>69691</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-01-10 22:15:13 +0000</bug_when>
    <thetext>Using either :
http://downloads.yoctoproject.org/releases/yocto/yocto-2.2/toolchain/x86_64/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.2.sh

or building an esdk from morty and installing it result in  the following failure if locales are not set:


[cow@6a64b6e9c963 ~]$ . ./poky_sdk-morty/environment-setup-i586-poky-linux               
[cow@6a64b6e9c963 ~]$ devtool build-image core-image-minimal 
Parsing recipes..Traceback (most recent call last):
  File &quot;/home/cow/poky_sdk-morty/sysroots/x86_64-pokysdk-linux/usr/bin/devtool&quot;, line 344, in &lt;module&gt;
    ret = main()
  File &quot;/home/cow/poky_sdk-morty/sysroots/x86_64-pokysdk-linux/usr/bin/devtool&quot;, line 331, in main
    ret = args.func(args, config, basepath, workspace)
  File &quot;/home/cow/poky_sdk-morty/layers/poky/scripts/lib/devtool/build_image.py&quot;, line 63, in build_image
    result, outputdir = build_image_task(config, basepath, workspace, image, add_packages)
  File &quot;/home/cow/poky_sdk-morty/layers/poky/scripts/lib/devtool/build_image.py&quot;, line 88, in build_image_task
    tinfoil = setup_tinfoil(basepath=basepath)
  File &quot;/home/cow/poky_sdk-morty/layers/poky/scripts/lib/devtool/__init__.py&quot;, line 116, in setup_tinfoil
    tinfoil.prepare(config_only)
  File &quot;/home/cow/poky_sdk-morty/layers/poky/bitbake/lib/bb/tinfoil.py&quot;, line 91, in prepare
    self.parseRecipes()
  File &quot;/home/cow/poky_sdk-morty/layers/poky/bitbake/lib/bb/tinfoil.py&quot;, line 74, in parseRecipes
    self.cooker.updateCache()
  File &quot;/home/cow/poky_sdk-morty/layers/poky/bitbake/lib/bb/cooker.py&quot;, line 1602, in updateCache
    raise bb.BBHandledException()
bb.BBHandledException

-------
The cause of this was not evident to me at first glance.
[cow@6a64b6e9c963 ~]$ export LANG=en_US.UTF-8                                                       

fixes it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69834</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-01-16 20:04:02 +0000</bug_when>
    <thetext>What is LANG set to on your system if not en_US.UTF-8?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69860</commentid>
    <comment_count>2</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-01-17 16:48:30 +0000</bug_when>
    <thetext>Containers typically come with locales unset. Before I changes it on my ubuntu box it was either C or POSIX.

That&apos;s why bitbake does:
bitbake/bin/bitbake:    sys.exit(&quot;Please use a locale setting which supports utf-8.\nPython can&apos;t change the filesystem locale after loading so we need a utf-8 when python starts or things won&apos;t work.&quot;)
bitbake/bin/bitbake-worker:    sys.exit(&quot;Please use a locale setting which supports utf-8.\nPython can&apos;t change the filesystem locale after loading so we need a utf-8 when python starts or things won&apos;t work.&quot;)

Before that was added in, bitbake also errorred out in a hard to follow fashion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70033</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-01-23 18:19:50 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=61f206195d8624380bb342e39992247157e24d63</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70098</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-01-24 21:44:47 +0000</bug_when>
    <thetext>*** Bug 10892 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>