Package: file Version: 4.23-2 Severity: normal The magic format does not seem to include any way to handle length-prefixed strings with a non-byte length. I want to handle a file format which prefixes strings with their 32-bit length, but I see no way to do this with the current magic format as specified in magic(5).
Ideally, I'd like some way to tell a pstring where to get its length from, using a syntax like that of computed offsets. For instance: .... >>>>&4 pstring(&0.L) \b, name "%s" Alternatively, introducing new types like pstring which use 16-bit and 32-bit lengths would work, but that would require specifying all the details of length endianness in the name of the type, and the magic format already includes a perfectly good syntax for that. - Josh Triplett -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages file depends on: ii libc6 2.7-8 GNU C Library: Shared libraries ii libmagic1 4.23-2 File type determination library us file recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]