Apart from this, my limited WINAPI knowledge suggests it's mostly OK.  Though, 
[the MSDN 
docs](https://msdn.microsoft.com/en-us/library/windows/desktop/dd319072%28v=vs.85%29.aspx)
 states that MultiByteToWideWhar can also return U+FFFD on invalid input:
> If the input byte/char sequences are invalid, returns U+FFFD for UTF 
> encodings. 

Maybe this should be handled too?

@zhekov if you don't mind, can we get your opinion on this?

---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/809#issuecomment-164451057

Reply via email to