Convert Unix.access to support Windows Unicode#1446
Conversation
Missed in GPR#1200.
|
I believe that this patch is correct (cc @nojb ?). I have a minor question. I thought that the caml/misc.h thing was used for C functions occurring in the OCaml runtime (byterun/foo.c), here it is used for a function in otherlibs/unix (while those have their own system-distinction layer of sort in having both unix and win32unix). Is it common for misc.h to have definitions only used in otherlibs, or a new trend? (I've seen another patch, from @nojb I think, also doing that just today). |
|
Looks OK to me as well. @gasche Indeed, |
|
I'll cc @xavierleroy in case he knows about whether a Has one of you to checked whether other Unix functions have been forgotten? |
|
Thanks. You could perhaps shorten the first line of the Changes entry by
splitting it before (rather than after) "GPR#1398"?
The rest looks good to me.
|
|
I just went over the list. There are two functions that MSDN tells me they exist in Unicode flavor that I had not considered: I will submit a PR adapting these two functions but I think we can safely leave it for 4.07. I mean, has anyone ever seen a non-ASCII host name?? 😃 |
|
Is this an approval for 4.06 as well? |
|
@alainfrisch yes. I am operating under the assumption that this code would have been included with the general PR if it hadn't been omitted -- it's not a new risk. Are you positively or negatively surprised? |
|
@gasche: yes, there is probably too many things defined in |
|
@nojb: concerning Unicode in host names, see https://en.wikipedia.org/wiki/Internationalized_domain_name . Standards exist but don't seem widely used, in part by fear of spoofing of ASCII domain names by similarly-looking-but-different Unicode names. |
I'm not surprised, but it's good to get an explicit agreement to push to 4.06. Merged and cherry-picked to 4.06 (d9db5be). I've also fixed the GPR reference in Changes in a later commit (also cherry-picked). |
|
Just for the record, I did do a check by looking for files which validated paths (which we've been unsurprisingly thorough on) and which didn't appear to be using caml_stat_strdup_to_os |
|
See #1454 for |
Missed in GPR#1200.
For 4.06 and trunk; see #1444