ocaml / flexdll

a dlopen-like API for Windows
Other
97 stars 30 forks source link

Fix encoding of high surrogate in UTF-16 #47

Closed dra27 closed 6 years ago

dra27 commented 6 years ago

Found while torturing AppVeyor by compiling OCaml in a directory called :camel:

dra27 commented 6 years ago

I'll review #46 tomorrow so that that could be included too, but I think there should be a release pre-4.06.0 containing this fix (it'd be hard to attack, but it feels wrong for OCaml to depend on a program with a faulty Unicode conversion)

nojb commented 6 years ago

Unrelated to this PR of course, but the UTF-16 encoding could be done with Buffer. add_utf_16le_uchar from 4.06 onwards and we could add the present code to the Compat module.

dra27 commented 6 years ago

Actually, that's a much better idea - I'll add that to tomorrow's train-list!

dra27 commented 6 years ago

And three more commits to do that:

alainfrisch commented 6 years ago

@dra27 Do you want to give a look at #46, or do you prefer me to create a release now?

dra27 commented 6 years ago

Sorry - I had, but I see that I was clearly expecting you to know my thoughts psychically! I'll go and commit them now...