about summary refs log tree commit diff
path: root/posix/tst-fnmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/tst-fnmatch.c')
-rw-r--r--posix/tst-fnmatch.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/posix/tst-fnmatch.c b/posix/tst-fnmatch.c
index 7e1b28832a..670a3c3c44 100644
--- a/posix/tst-fnmatch.c
+++ b/posix/tst-fnmatch.c
@@ -193,6 +193,19 @@ next_input (char **line, int first, int last)
 	      *wp++ = '\t';
 	    else if (*cp == 'n')
 	      *wp++ = '\n';
+	    else if (*cp >= '0' && *cp <= '7')
+	      {
+		int ndigits = 0;
+		int cval = 0;
+		while (ndigits < 3 && *cp >= '0' && *cp <= '7')
+		  {
+		    cval *= 8;
+		    cval += (*cp++) - '0';
+		    ndigits ++;
+		  }
+		*wp++ = cval;
+		--cp;
+	      }
 	    else
 	      *wp++ = *cp;