Bug 821259 - Cut multi-byte patch incompatibilities
Summary: Cut multi-byte patch incompatibilities
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-13 16:09 UTC by Andrej Antas
Modified: 2013-08-14 14:53 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-08-14 14:53:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch adding multi-byte functionality tests (15.45 KB, patch)
2012-05-13 16:51 UTC, Andrej Antas
no flags Details | Diff
Proposed patch to fix the issue (384 bytes, patch)
2012-07-24 14:31 UTC, Martin Bříza
no flags Details | Diff

Description Andrej Antas 2012-05-13 16:09:19 UTC
Description of problem:
As multibyte patch contains different paths from upstream and it is hard to
track the changes in behaviour, this bugzilla will be to track found
incompatibilites && fixes in coreutils-i18n patch for cut utility.


Version-Release number of selected component (if applicable):
coreutils-8.15-8.fc18


Steps to Reproduce:
1. Call following commands with LC_ALL=C and LC_ALL=fr_FR.UTF-8 locales

a) echo -n -e "x" "y" | cut -f2-

b) echo -n -e ":\n" | qw(cut -f --)

c) echo -n -e ":\n" | qw(cut -b '')

d) echo -n -e "" | qw(cut -f 2-0)
  
Actual results:
Results are different (or command fails)

Expected results:
Results should be same

Additional info:
mistakes found after applying attached patch (it adds multibyte tests for utilities cut, expand, fold, join, pr, sort, unexpand, uniq)

Comment 1 Andrej Antas 2012-05-13 16:51:51 UTC
Created attachment 584160 [details]
patch adding multi-byte functionality tests

Comment 2 Martin Bříza 2012-07-24 14:31:16 UTC
Created attachment 600041 [details]
Proposed patch to fix the issue

Hello,
this patch should fix the bug you reported. The original code wasn't ported to multi-byte processing as it should be and that caused the program to ignore lines that didn't contain the delimiter.
I'm afraid though there still are some bugs left, the whole i18n patch was written in a very non-sustainable way, I'm thinking of way how to improve it and I'll try to do it when I'm sure how to do it properly.

Comment 3 Martin Bříza 2012-07-24 14:36:00 UTC
I'm sorry - the _first_ bug, I'll have a look at the other ones later

Comment 4 Fedora End Of Life 2013-04-03 19:36:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 5 Ondrej Vasik 2013-08-14 14:53:05 UTC
Martin's patch already in Fedora, others seems to be just intentional change in the message format and should be handled otherwise if we want to enable the multibyte path in general. Closing RAWHIDE.


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