Description of problem: I have a bunch of utf-16 text files, and less can't read them. Here is a quick patch for lesspipe which allows less to read them.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Created attachment 463524 [details] diff against lesspipe on F-13 I thought I'd added this when I opened the bug, sorry...
Thank you, James. I will include this in next less release.
I will rewrite the patch, because we can't rely on less running on UTF-8 environment only. I will also use /usr/bin/iconv instead of /usr/bin/recode, as it is in glibc-common package.
Fixed in less-436-12.fc16 and less-436-12.fc15.
less-436-10.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/less-436-10.fc14
less-436-9.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/less-436-9.fc13
less-436-12.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/less-436-12.fc15
less-436-10.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
less-436-12.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
less-436-9.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
This causes a regression: Any file that has the string "UTF-16" in the *name* of the file is displayed as if it was UTF-16. For example try this sequence of commands: $ echo "hello, world" > hello.txt $ less hello.txt $ mv hello.txt hello-UTF-16.txt $ less hello-UTF-16.txt I would suggest investigating the file -b option.
Thanks Richard, I am going to fix this soon.
less-436-13.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/less-436-13.fc15
less-436-11.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/less-436-11.fc14
less-436-10.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/less-436-10.fc13
less-436-13.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
less-436-11.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.