If I call fold and input long line ffffff... - fold breaks it for 80 columns. If I input long line ыыыыы... - fold breaks it for 40 columns. If I input long line ы ы ы ... - fold breaks it for 53 columns. If I call enconv -x cp1251 | fold |enconv and input all these samples again - all will breaked for 80 lines, as expected. Reproducible: Always Steps to Reproduce: 1. Run fold 2. Input long line with non-english characters in UTF8 encoding Actual Results: Line will be breaked for wrong line lenght (1...2 times shorter than maximum line length specified in -w parameter (80 characters by default)) Expected Results: Line should be breaked for the maximum line length specified in -w parameter (80 characters by default) Bug appears on x86 and amd64 architectures on sys-apps/coreutils-8.5 (sys-apps/coreutils-8.4 don't have this bug and works right).
this is currently expected behavior
added the i18n patch from Fedora to 8.5-r1