<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi all,</div><div>while reviewing compiler warnings via MSVC for WIN-64 SPUR VM, I saw that we incorrectly pass a TCHAR * (via fromSqueak() function) to a function (isAccessiblePathName) expecting a WCHAR * (that is UTF-16 encoded wide char).</div><div><br></div><div>TCHAR is a facade, it might be char *, or it might be WCHAR *, depending on -DUNICODE compiler flag, or #define UNICODE preprocessor macro.</div><div><br></div><div>fromSqueak() just copies the image-side ByteString to a null terminated string. If -DUNICODE, it copies to a WCHAR *, but this only work for ASCII strings.</div><div><br></div><div>I suggest to rather interpret every path passed to the VM as UTF-8 encoded, and for that purpose I've committed a change to sqWin32Security.c.</div><div><a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/b52caab76f7f6b91c1f16d9037e0b0a43d968176">https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/b52caab76f7f6b91c1f16d9037e0b0a43d968176</a></div><div><br></div><div>But I see that other platforms flavours (unix at least) require the same kind of changes. Any thought before i proceeed?</div><div><br></div><div><br></div><div><br></div></div></div></div>