fix input filename containing a path on windows
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5f9e0707b5
commit
9a94969fdd
4 changed files with 18 additions and 6 deletions
|
|
@ -183,12 +183,8 @@ static FILE *Swig_open_file(const String_or_char *name, int sysfile, int use_inc
|
|||
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);
|
||||
lastpath = Swig_filename_escape(filename);
|
||||
}
|
||||
Delete(filename);
|
||||
return f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue