Bug in cut with field selector when LANG=en_US.utf8
From:
Zan Lynx
Subject:
Bug in cut with field selector when LANG=en_US.utf8
Date:
Thu, 31 Mar 2005 00:11:25 -0700
(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.
--
Zan Lynx <address@hidden>
signature.asc Description: This is a digitally signed message part