[uClibc]busybox ps garbled characters

Stuart Hughes seh at zee2.com
Thu Jun 26 08:39:06 UTC 2003


Erik Andersen wrote:
> 
> On Wed Jun 25, 2003 at 05:16:41PM +0100, Stuart Hughes wrote:
> > I looked a bit further, and if I change line 155 of ps.c in busybox-0.52
> > from:
> >       while (((c = getc(file)) != EOF) && (i < (terminal_width-len))) {
> > to:
> >       while ((fread(&c, 1,1,file) != 0) && (i < (terminal_width-len))) {
> >
> > The output is okay.  I guessed there may be a problem with getc on
> > uClibc, is this likely or known ??
> 
> No such problem with getc is known...  What compiler you are using.

Hi Erik,

My toolchain is built using your toolchain build script, it contains:

binutils-2.12.1.tar.bz2  
kernel-headers-2.4.18.tar.bz2
gcc-3.2.tar.gz
uClibc-0.9.19.tar.bz2

Regards, Stuart




More information about the uClibc mailing list