bug#9420: cut: --output-delimiter ignored in combination with -c

2011-09-02 Thread Philipp Thomas
* Jim Meyering (j...@meyering.net) [20110901 21:35]: > > $ echo 12 | cut --output-delimiter=X -c1,2 > > 12 > > $ echo 12 | LANG=C cut --output-delimiter=X -c1,2 > > 1X2 Found and fixed. The function called for the multibyte case simply had no provision for an output delimiter. Simply copying and

bug#9420: cut: --output-delimiter ignored in combination with -c

2011-09-01 Thread Jim Meyering
Pádraig Brady wrote: > On 09/01/2011 07:33 PM, Philipp Thomas wrote: >> >> Cut from older coreutils (at least until 7.1) honoured --output-delimiter in >> combination with -c. Newer coreutils don't, i.e. with the older cut you get >> >> $ echo 12 | cut --output-delimiter=X -c1,2 >> 1X2 >> >> And

bug#9420: cut: --output-delimiter ignored in combination with -c

2011-09-01 Thread Philipp Thomas
* Jim Meyering (j...@meyering.net) [20110901 20:42]: > Same for the last few (8.8-8.12). > Has your version been patched? SUSE's coreutils carry a varying number of patches, as does Fedora/RH. Sorry for the noise, I should have checked with vanilla coreutils. So it's bisecting time again ... Phi

bug#9420: cut: --output-delimiter ignored in combination with -c

2011-09-01 Thread Pádraig Brady
On 09/01/2011 07:33 PM, Philipp Thomas wrote: > > Cut from older coreutils (at least until 7.1) honoured --output-delimiter in > combination with -c. Newer coreutils don't, i.e. with the older cut you get > > $ echo 12 | cut --output-delimiter=X -c1,2 > 1X2 > > And with the newer ones > > $ e

bug#9420: cut: --output-delimiter ignored in combination with -c

2011-09-01 Thread Jim Meyering
Philipp Thomas wrote: > Cut from older coreutils (at least until 7.1) honoured --output-delimiter in > combination with -c. Newer coreutils don't, i.e. with the older cut you get > > $ echo 12 | cut --output-delimiter=X -c1,2 > 1X2 > > And with the newer ones > > $ echo 12 | cut --output-delimiter

bug#9420: cut: --output-delimiter ignored in combination with -c

2011-09-01 Thread Philipp Thomas
Cut from older coreutils (at least until 7.1) honoured --output-delimiter in combination with -c. Newer coreutils don't, i.e. with the older cut you get $ echo 12 | cut --output-delimiter=X -c1,2 1X2 And with the newer ones $ echo 12 | cut --output-delimiter=X -c1,2 12 Is this a regression o