Mail Archives: djgpp/2001/02/18/03:56:26
On Sat, 17 Feb 2001, Martin Str|mberg wrote:
> 1. Try specify an alternative magic file with -m:
> file -m t:/magic /djgpp/bin/ranlib.exe
> file.exe: couldn't find any magic files!
>
> I worked around this by using "/dev/t/" instead of "t:/".
It's indeed not nice for a DJGPP port not to support native DOS/Windows
file names.
What happens if you use backslashes? Does it support something like
\foo\bar\baz? It should, IMHO.
> 3. If you do 2, you'll find a bug. In the line 365 of file.c you need
> to open the files in binary mode.
A utility such as `file', which reads arbitrary files, should indeed use
binary input. Text mode is too unreliable for files which are not text
files.
- Raw text -