<?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>5272</bug_id>
          
          <creation_ts>2013-09-26 05:35:12 +0000</creation_ts>
          <short_desc>slang test case strops.sl  failed in x86-64</short_desc>
          <delta_ts>2013-10-01 06:46:16 +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>devtools / tool chain</component>
          <version>1.5</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>major</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="LiRongQing">rongqing.li</reporter>
          <assigned_to name="Irina Patru">irina.patru</assigned_to>
          <cc>irina.patru</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37222</commentid>
    <comment_count>0</comment_count>
    <who name="LiRongQing">rongqing.li</who>
    <bug_when>2013-09-26 05:35:12 +0000</bug_when>
    <thetext>1. compile the slang test case by adding compile append in bb file

do_compile_append() {
cd src; make all; pwd; cd test; make sltest
}

2. put the sltest, strops.sl, and inc.sl from src/test to target


3. run test case, it failed.
./sltest strops.sl

4. simplify the test case as below:
4.1 the test script as below
root@qemu0:~# cat my1.sl 
printf(&quot;%s&quot;, sprintf(&quot;%c&quot;, &apos;,&apos;));
4.2 if it work well, it should be print out &quot;,&quot;, but it failed to print
root@qemu0:~# ./sltest my1.sl
root@qemu0:~# ,

5. I think it is toolchain bug, since I only need to add a print in source code,
this bug will disappear,
diff --git a/src/slstrops.c b/src/slstrops.c
index af915a5..15b12f9 100644
--- a/src/slstrops.c
+++ b/src/slstrops.c
@@ -2083,6 +2083,7 @@ static char *SLdo_sprintf (char *fmt) /*{{{*/
                  else if (NULL == SLutf8_encode_null_terminate (wc, utf8_buf))
                    return out;
                  ch = &apos;s&apos;;
+                 printf(&quot;%s&quot;, utf8_buf);
                  str = (char *)utf8_buf;
                  use_string = 1;
               }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37379</commentid>
    <comment_count>1</comment_count>
    <who name="Irina Patru">irina.patru</who>
    <bug_when>2013-10-01 06:46:16 +0000</bug_when>
    <thetext>patch merged to master
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=331159d90db7b115fc1422e761a7e73f956a4421</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>