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:
parent
ae9b0c90e4
commit
2b472c5aa6
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue