summaryrefslogtreecommitdiff
path: root/cups/ipp-file.c
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-05-03 14:35:04 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-05-03 14:35:04 -0400
commit0c178dec4864ae5ecf4086d8cc1d2db614d83eab (patch)
tree1c9fce53d03585a88ca4c6e10918bc5557283cdd /cups/ipp-file.c
parent5da48e461472590caea416fda443c3c8be3373c4 (diff)
downloadcups-0c178dec4864ae5ecf4086d8cc1d2db614d83eab.tar.gz
Support C-style character escapes in IPP files.
Diffstat (limited to 'cups/ipp-file.c')
-rw-r--r--cups/ipp-file.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/cups/ipp-file.c b/cups/ipp-file.c
index a0b2bb0c3..0bba21d51 100644
--- a/cups/ipp-file.c
+++ b/cups/ipp-file.c
@@ -366,6 +366,20 @@ _ippFileReadToken(_ipp_file_t *f, /* I - File to read from */
f->linenum ++;
DEBUG_printf(("1_ippFileReadToken: quoted LF, linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp)));
}
+ else if (ch == 'a')
+ ch = '\a';
+ else if (ch == 'b')
+ ch = '\b';
+ else if (ch == 'f')
+ ch = '\f';
+ else if (ch == 'n')
+ ch = '\n';
+ else if (ch == 'r')
+ ch = '\r';
+ else if (ch == 't')
+ ch = '\t';
+ else if (ch == 'v')
+ ch = '\v';
}
if (tokptr < tokend)