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:
parent
09d047285c
commit
8b7b551f88
3 changed files with 13 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue