>> If we get an invalid UTF-8 sequence, I'm all for it. But it is not >> too difficult to not get invalid sequences but still have wrong >> output. > > Theoretically. But it is impossible to write just a single > non-ASCII byte without hitting an invalid sequence since all > non-ASCII bytes must be part of multi-byte sequences. Only > combinations of non-ASCII bytes can form valid utf-8 sequences, and > the probability of several of them being "just right" is not all > that high.
For single-byte encodings, you are correct. However, the probability is *much* higher if you consider legacy two-byte encodings for CJK scripts. Werner _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond