Fix to escape code handling.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4494 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-03-10 14:03:05 +00:00
commit 8b7b551f88
3 changed files with 13 additions and 5 deletions

View file

@ -81,7 +81,7 @@ String *Swig_string_escape(String *s) {
} else if (c == ' ') {
Putc(c,ns);
} else if (!isgraph(c)) {
Printf(ns,"\\0%o", c);
Printf(ns,"\\%o", c);
} else {
Putc(c,ns);
}