bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: awk on arm


From: Stepan Kasal
Subject: Re: awk on arm
Date: Fri, 29 Oct 2004 09:38:26 +0200
User-agent: Mutt/1.4.1i

Hello,

On Thu, Oct 28, 2004 at 01:03:18PM -0600, Ryan wrote:
> When I do something very simple:  awk -F: '{print $1}' /proc/cpuinfo
> 
> The entire file is displayed on the screen, instead of what I am awk'ing.

> Not sure if this is a bug,

this is definitely a bug.

First, please verify that you are using the C locale (a.k.a. POSIX).

Issue "export LC_ALL=C" in your bach prompt begore you run gawk.

If the bug persists, it's probably a bug specific to your platform.
As GNU on ARM is relatively rare, you might try to ask the ARM support
list (if you know about any) rather then this general GNU list...

If you could do the debugging and mail a patch, it would be very nice.

Perhaps it looks scary, to debug gawk, but it can be simple.
Start with the cross-compile tree, compile it.
Then add some printf's to the sources, issue "make" again, copy the new
gawk binary to the ARM and run it.
By several strategically placed printf's, you can watch what gawk does.
After a few hours, you get to the root of the evil.  ;-)

Do you have the resources and enthusiasm do volunteer for this?

With kind regards,
        Stepan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]