TextArea.getText() line ending discrepancy on Windows
mischnic opened this issue · 5 comments
mischnic commented
(from here: #84 (comment))
parro-it commented
I think we could solve the issue by replacing newlines in setText
mischnic commented
It's also interesting that textarea.getText() returns the text with "\n" (also on windows), but setText() requires the platform specific type.
@andlabs Is this the intended behavior?
andlabs commented
That means there is a bug in utf16.cpp CRLFtoLF()
. Will investigate later; please file this on libui.
And yes, that is the intended behavior; it needs to be documented. The Windows EDIT control requires CRLF line endings.