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("%s", sprintf("%c", ',')); 4.2 if it work well, it should be print out ",", 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 = 's'; + printf("%s", utf8_buf); str = (char *)utf8_buf; use_string = 1; }
patch merged to master http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=331159d90db7b115fc1422e761a7e73f956a4421