Bug 1314722 - cut does a strange cut
cut does a strange cut
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: coreutils (Show other bugs)
rawhide
x86_64 Linux
unspecified Severity high
: ---
: ---
Assigned To: Ondrej Vasik
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-03-04 05:40 EST by Matteo Melli
Modified: 2016-03-05 16:22 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-03-05 16:22:10 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Matteo Melli 2016-03-04 05:40:59 EST
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 09:23:07 EST
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 09:57:04 EST
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.