Fix so that Windows paths are displayed correctly when reporting errors.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5600 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-12-28 21:38:58 +00:00
commit 2b472c5aa6

View file

@ -176,6 +176,10 @@ Swig_open(const String_or_char *name) {
Delete(spath);
}
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);
lastpath = Copy(filename);
}