Created for mldonkey by spiralvoice : http://savannah.nongnu.org/patch/?4515
Problems with this patch (from the windows user point of view) :
caml_sys_getcwd()which causes buffer overflow at startup (when compiled with msvc at least).
_wgetcwd()accepts the number of characters, not bytes, as the length of the supplied buffer
Modified patch fixes bug in
caml_sys_getcwd(), unicode'fies more functions (I needed
caml_sys_is_directory() in particular), uses WideCharToMultiByte api for utf8 conversions and
compiles cleanly with msvc.
It worked pretty well for me (to create windows COM inproc server dll module with Ocaml 3.10 and MSVC 8.0 (2005)).
The patch was proposed for inclusion upstream, see PR#3771 for details.