Меняю кодировку у файла, так:
iconv -t UCS-2LE -f UTF-8 -o test_new test
Всё преобразуется правильно, но почему-то в начало файла не дописывается два байта FF FE. В чём может быть дело?
iconv -V
iconv (GNU libc) 2.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Ulrich Drepper.
cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)