Bug 1314722 - cut does a strange cut
Summary: cut does a strange cut
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-04 10:40 UTC by Matteo Melli
Modified: 2016-03-05 21:22 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-05 21:22:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Matteo Melli 2016-03-04 10:40:59 UTC
Description of problem:
I found a bug on cut from coreutils that does not output extract fields as expected in specific Fedora rawhide version. 

I asked for help on GNU coreutils official bug mailing list. They tell me that Fedora patches GNU coreutils to add i18n support. So I get there to file the bug after failing at finding for similar bugs in this bugzilla.

Version-Release number of selected component (if applicable):
cut version (GNU coreutils) 8.25 in Fedora rawhide

How reproducible:
The bug is always reproducible.

Steps to Reproduce:
1. Execute shell command:
echo "https://github.com/dmak/jaxb-xew-plugin/archive/release-1.0.zip|zip|jaxb-xew-plugin-release-1.0|com.github.jaxb-xew-plugin:jaxb-xew-plugin:jar:1.0"|cut -d'|' -f2

Actual results:
https://github.com/dmak/jaxb-xew-plugin/archive/release-1.0.zip
jaxb-xew-plugin-release-1.0

Expected results:
zip

Additional info:
I can not reproduce in Fedora 23 (version (GNU coreutils) 8.24).

Comment 1 Ondrej Vasik 2016-03-05 14:23:07 UTC
Thanks for report, yes, this is reproducible with this new patch with implementation of i18n support. 

I already fixed one off-by-one issue there, but based on your report it seems there are more such flaws... I'll probably revert to the old implementation next week, as I don't trust the new patch anymore.

Comment 2 Ondrej Vasik 2016-03-05 14:57:04 UTC
Used the old cut i18n support patch again (just separated from the original one), seems to work properly. Building as coreutils-8.25-5.fc25 and coreutils-8.25-5.fc24 in koji.


Note You need to log in before you can comment on or make changes to this bug.