[Bug 4099] New: cut utility from GNU coreutils works incorrect

bugzilla at busybox.net bugzilla at busybox.net
Sun Aug 28 21:43:49 UTC 2011


https://bugs.busybox.net/show_bug.cgi?id=4099

           Summary: cut utility from GNU coreutils works incorrect
           Product: uClibc
           Version: 0.9.32
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: stdio
        AssignedTo: unassigned at uclibc.org
        ReportedBy: aka at pxe.ru
                CC: uclibc-cvs at uclibc.org
   Estimated Hours: 0.0


GNU coreutils-8.9

Command line: 

echo '3:0:0:' | cut -d : -f 2

Correct output:

0

Compiled with uClibc, output is:

30

I think it is not uClibc bug but coreutils. In coreutils file lib/freadseek.c
function freadptrinc looks like stdio hack with a lot of #ifdefs for different
libs. stream becomes broken after "fp->__bufpos += increment;" code.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the uClibc-cvs mailing list