Join Nostr
2026-05-09 06:12:58 UTC
in reply to

LR on Nostr: how does LSP encode text file positions: UTF-8? (what sxpp uses) UTF-32? (also ...

how does LSP encode text file positions: UTF-8? (what sxpp uses) UTF-32? (also sensible i guess)

neither. (well since 3.17 yes, but only if the client feels that way)

it's UTF-16. UTF-16 support is mandatory. why? because it's a damn microsoft protocol that's why¹. 😫

fortunately character offsets are line-relative so fixing that up is not too expensive.


¹ yes it's also because Javascript.

#devlog #sxpp #lsp