1268515SdelphijMost TODOs live in the TODO section of doc/file.man (i.e. file(1)). 2268515SdelphijThey are more visible there, so please add any further TODOs to that 3268515Sdelphijfile, not here. More speculative material can live here. 4191771Sobrien 5234449Sobrien(This change was made when Reuben Thomas noticed that all the bugs 6234449Sobrienlisted in the BUGS section of the man page had been fixed!) 7268515Sdelphij 8268515Sdelphij--- 9268515Sdelphij 10268515SdelphijIt would be nice to simplify file considerably. For example, 11268515Sdelphijreimplement the apprentice and non-pattern magic methods in Python, 12268515Sdelphijand compile the magic patterns to a giant regex (or something similar; 13268515Sdelphijmaybe using Ragel (http://www.complang.org/ragel/)) so that only a 14268515Sdelphijsmall amount of C is needed (because fast execution is typically only 15268515Sdelphijrequired for soft magic, not the more detailed information given by 16268515Sdelphijhard-wired routines). In this regard, note that hplip, which is 17268515SdelphijBSD-licensed, has a magic reimplementation in Python. 18284193Sdelphij 19284193SdelphijRead the kerberos magic entry for more ideas. 20