Open karlwilcox opened 1 year ago
Further investigation suggests that the things that look like '-' are not ASCII, removing them solves the problem so this is likely something related to character mapping.
It is \u2013 that seems to cause the problem.
Actually everything non-ASCII in the input file seems to cause a problem with the command line search hits. In PHP,
iconv("UTF-8", "ASCII//TRANSLIT", $content);
Fixes the problem
This may even be documented somewhere so I'll shut up now...
With the following input file (named gallery.toml)
We run the command:
And then try a command line search for a known hit, e.g.
We get the message:
(Byte 540 is just before the final "gules" in the content string)
Other information:
(So this is Ubuntu Linux running under WSL2, although I can reproduce on a native Ubuntu installation also)
Please let me know if you need anything else. Hope this is useful!