While porting a simple Python script to D, I found the following
problem.
I need to read in some thousand of little text files and search
every one for a match with a given regular expression.
Obviously, the program can't (and it should not) be certain about
the encoding of each input file.
I mean a code fragment like this:
foreach(i; 1..2085)
{
// Bugbug: when we read in the buffer, we can't know anything
about its encoding...
// But REGEX could fail if it contained unknown chars!
Latin1String buf;
string s;