Fix so that Windows paths are displayed correctly when reporting errors.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5600 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
72c68c375c
commit
ca2d01a081
1 changed files with 4 additions and 0 deletions
|
|
@ -176,6 +176,10 @@ Swig_open(const String_or_char *name) {
|
||||||
Delete(spath);
|
Delete(spath);
|
||||||
}
|
}
|
||||||
if (f) {
|
if (f) {
|
||||||
|
#if defined(_WIN32) /* Note not on Cygwin else filename is displayed with double '/' */
|
||||||
|
Replaceall(filename,"\\\\","\\"); /* remove double '\' in case any already present */
|
||||||
|
Replaceall(filename,"\\","\\\\");
|
||||||
|
#endif
|
||||||
Delete(lastpath);
|
Delete(lastpath);
|
||||||
lastpath = Copy(filename);
|
lastpath = Copy(filename);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue