[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in cut with field selector when LANG=en_US.utf8
From: |
Tim Waugh |
Subject: |
Re: Bug in cut with field selector when LANG=en_US.utf8 |
Date: |
Thu, 31 Mar 2005 16:06:42 +0100 |
User-agent: |
Mutt/1.4.2.1i |
On Thu, Mar 31, 2005 at 12:11:25AM -0700, Zan Lynx wrote:
> (not subscribed, please CC replies to me.)
>
> In cut_fields_mb in cut.c, wint_t wc is not initialized before being
> compared to WEOF. It just so happens that when I compile it on my
> system, through some miracle of perversity and stack layout, wc picks up
> -1 as its initial value.
>
> On cut.c line 836, change wint_t wc; to wint_t wc = 0; That fixes it
> for me.
I don't think that function exists in stock coreutils-5.2.1 (not sure
which version you are using though). There is a function of that name
added in the coreutils-i18n.patch that we apply for Fedora Core, and
the fix you mention has been there since at least Fedora Core 3.
Tim.
*/
pgpacNMZEic0s.pgp
Description: PGP signature