* Converting DOS files to UNIX...tr: Illegal byte sequence
tr: Illegal byte sequence
tr: Illegal byte sequence
tr: Illegal byte sequence
tr: Illegal byte sequence
tr: Illegal byte sequence
tr: Illegal byte sequence
tr: Illegal byte sequence
done
on mac leopard, doesn't seem to like \015 in `tr -d '\015' < $file > /tmp/.nquake.tmp`
I'm getting this too now. trying to fix it. annoying stuff.
it only happens when these files are processed:
nQuake/ezquake/cfg/eq260.cfg...
nQuake/ezquake/configs/config.cfg...
nQuake/ezquake/keymaps/es.kmap...
nQuake/ezquake/keymaps/fi.kmap...
nQuake/ezquake/keymaps/german.kmap...
nQuake/ezquake/keymaps/hungarian.kmap...
nQuake/ezquake/keymaps/se.kmap...
nQuake/ezquake/keymaps/uk.kmap...
any way to get rid of these error messages?
this is the line that causes them
tr -d '\r' < $filename > /tmp/.nquake.tmp
the files seem to have characters that cannot be read in a leopard terminal window, the uk.kmap for example contains these two characters:
£, ¬
if you remove those from the file, it parses fine with the tr command.
very very odd.
by the way. when tr fails to "translate" these files, they are simply cut where the strange character appears. this makes config.cfg cut in half, and I bet that has some nasty side-effects. also most of the keymaps are cut in half too (or less). so this needs to be fixed pretty quickly. I might need some help with this.
some interesting info:
dvorak.kmap: ASCII C++ program text, with CRLF line terminators
uk.kmap: ISO-8859 C++ program text, with CRLF line terminators
pt-br.kmap: ASCII C++ program text, with CRLF line terminators
se.kmap: Non-ISO extended-ASCII C++ program text, with CRLF line terminators
es.kmap: Non-ISO extended-ASCII C++ program text, with CRLF line terminators
fi.kmap: ISO-8859 C++ program text, with CRLF line terminators
german.kmap: Non-ISO extended-ASCII C++ program text, with CRLF line terminators
hungarian.kmap: ISO-8859 C++ program text, with CRLF line terminators
as you can see, the files that do get accepted by tr are ASCII C++ program text, with CRLF line terminators. the rest are ISO-8859 or Non-ISO extended ASCII.