X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/agedu/blobdiff_plain/c47f39de1c2de25aa70a5f3040c531e6589420cf..HEAD:/TODO diff --git a/TODO b/TODO index 4220a4d..cc9fb0b 100644 --- a/TODO +++ b/TODO @@ -8,6 +8,40 @@ TODO list for agedu enable other modes of use like the built-in --cgi mode, without me having to anticipate them in detail.) + - non-ASCII character set support + + could usefully apply to --title and also to file names + + how do we determine the input charset? Via locale, presumably. + + how do we do translation? Importing my charset library is one + heavyweight option; alternatively, does the native C locale + mechanism provide enough functionality to do the job by itself? + + in HTML, we would need to decide on an _output_ character set, + specify it in a tag, and translate to it from + the input locale + - one option is to make the output charset the same as the + input one, in which case all we need is to identify its name + for the tag + - the other option is to make the output charset UTF-8 always + and translate to that from everything else + - in the web server and CGI modes, it would probably be nicer + to move that tag into a proper HTTP header + + even in text mode we would want to parse the filenames in some + fashion, due to the unhelpful corner case of Shift-JIS Windows + (in which backslashes in the input string must be classified as + path separators or the second byte of a two-byte character) + - that's really painful, since it will impact string processing + of filenames throughout the code + - so perhaps a better approach would be to do locale processing + of filenames at _scan_ time, and normalise to UTF-8 in both + the index and dump files? + + involves incrementing the version of the dump-file format + + then paths given on the command line are translated + quickly to UTF-8 before comparing them against index paths + + and now the HTML output side becomes easy, though the text + output involves translating back again + + but what if the filenames aren't intended to be + interpreted in any particular character set (old-style + Unix semantics) or in a consistent one? + - we could still be using more of the information coming from autoconf. Our config.h is defining a whole bunch of HAVE_FOOs for particular functions (e.g. HAVE_INET_NTOA, HAVE_MEMCHR, @@ -21,11 +55,6 @@ TODO list for agedu controversial; IIRC it's all in POSIX, for one thing. So more likely this should simply wait until somebody complains. - - IPv6 support in the HTTP server - * of course, Linux magic auth can still work in this context; we - merely have to be prepared to open one of /proc/net/tcp or - /proc/net/tcp6 as appropriate. - - run-time configuration in the HTTP server * I think this probably works by having a configuration form, or a link pointing to one, somewhere on the report page. If you @@ -64,7 +93,7 @@ TODO list for agedu but would certainly be strange and confusing to others. - it might conceivably be useful to support a choice of indexing - strategies. The current "continuous index" mechanism' tradeoff of + strategies. The current "continuous index" mechanism's tradeoff of taking O(N log N) space in order to be able to support any age cutoff you like is not going to be ideal for everybody. A second more conventional "discrete index" mechanism which allows the