Bug 1304839

Summary: cut with coreutils-i18n-cut.patch broken if field width >= 64 chars
Product: [Fedora] Fedora Reporter: Sandro Mani <manisandro>
Component: coreutilsAssignee: Ondrej Vasik <ovasik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, kdudka, kzak, ooprala, ovasik, p, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: coreutils-8.25-4.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-15 12:06:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1307420, 1307661    

Description Sandro Mani 2016-02-04 18:29:24 UTC
Description of problem:
Following applies to any coreutils version carrying coreutils-i18n-cut.patch:

$ echo 'a_long_field_wider_than_sixty_three_characters_XXXXXXXXXXXXXXXX::foo' > test
$ cut -d':' -f 3 test
a_long_field_wider_than_sixty_three_characters_XXXXXXXXXXXXXXXX

$ echo 'a_shorter_field::foo' > test
$ cut -d':' -f 3 test
foo
$

This is breaking jetring / debian-keyring builds.

Version-Release number of selected component (if applicable):
coreutils-8.24-107.fc24 onwards

How reproducible:
Always

Comment 1 Ondrej Vasik 2016-02-15 11:22:09 UTC
Thanks for report, reproducible, no workaround atm. (happens in LC_ALL=C as well :( )
Will try to fix this soon...

Comment 2 Ondrej Vasik 2016-02-15 12:06:49 UTC
Should be fixed in coreutils-8.25-4.fc24 . Closing RAWHIDE, feel free to reopen if some issues still persist.

Comment 3 Sandro Mani 2016-02-15 12:43:06 UTC
Seems to work, thanks!