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 unexpand 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\t\t .\n" | unexpand -t 1,2 b) echo -n -e " b c d\n" | unexpand -t 1 c) echo -n -e " a a a\n" | unexpand -t 1 d) echo -n -e "1234567\t1\n" | unexpand -a 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)
Created attachment 584161 [details] patch adding multi-byte functionality tests
Created attachment 697263 [details] Proposed patch
Looks a bit hacky, but solves the problem. Thanks for the patch. Adding Bernhard Voelker to CC so the change could get into OpenSUSE as well. (Note: there are others rh-bzillas with discovered incompatibilities in i18n patch.)