@@ -877,7 +877,9 @@ IO_stat MCDispatch::loadfile(const char *inname, MCStack *&sptr)
877877 if ((stream = MCS_open (fname, IO_READ_MODE , True, False, 0 )) != NULL )
878878 // SN-20015-06-01: [[ Bug 15432 ]] We want to use MCS_resolvepath to
879879 // keep consistency and let '~' be resolved as it is in MCS_open
880- openpath = MCS_resolvepath (fname);
880+ // MCS_resolve_path leaves a backslash-delimited path on Windows,
881+ // and MCS_get_canonical_path is made to cope with this.
882+ openpath = MCS_get_canonical_path (fname);
881883 else
882884 {
883885 char *tmparray = new char [strlen (fname) + 1 ];
@@ -890,7 +892,9 @@ IO_stat MCDispatch::loadfile(const char *inname, MCStack *&sptr)
890892 if ((stream = MCS_open (tname, IO_READ_MODE , True, False, 0 )) != NULL )
891893 // SN-20015-06-01: [[ Bug 15432 ]] We want to use MCS_resolvepath to
892894 // keep consistency and let '~' be resolved as it is in MCS_open
893- openpath = MCS_resolvepath (tname);
895+ // MCS_resolve_path leaves a backslash-delimited path on Windows,
896+ // and MCS_get_canonical_path is made to cope with this.
897+ openpath = MCS_get_canonical_path (tname);
894898 else
895899 {
896900 if (!openstartup (tname, &openpath, stream)
0 commit comments