On 17/10/2026 16:56, Werner LEMBERG wrote:
I apologize for this omission: I am running LilyPond on Windows. I installed LilyPond 2.26.0 via Frescobaldi and then used the command-line to invoke the lilypond.exe that Frescobaldi installed. I did not expect this bug to be Windows-specific.Expected behaviorThe text “AB & CD” should be formatted in SVG as “AB & CD”. The resulting SVG should be valid. Actual behavior The actual output from Lilypond is: “AB & &D”. The resulting SVG is invalid.I cannot reproduce that. For me, both the 2.26.0 GNU/Linux binary from lilypond.org and a self-compiled version from current git yield the expected result.
[Note that your MWE has an ordinary space between »B« and »&«, so I've replaced it manually with U+200A.]
Thank you for that. I am not sure what happened there: I was reasonably confident that I typed an ordinary space and therefore concluded that it was LilyPond that replaced it with U+200A. However, I can no longer reproduce that, so I’ll chalk that up to a mistake on my part.
Nevertheless, if I now manually replace the spaces with U+200A on my end, or indeed any other Unicode characters that are 3 bytes in UTF-8, such as AB“&”CD, I can still reproduce the issue as described.
Please try the binaries from lilypond.org and check the output.
I have manually downloaded and extracted the file lilypond-2.26.0-mingw-x86_64.zip from lilypond.org and can confirm that it is binary-identical with the binaries installed by Frescobaldi. Nevertheless, I ran the example through it as well, and this also reproduces the issue as described.
Timwi
