summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1994-12-03 13:43:17 +0000
committerVern Paxson <vern@ee.lbl.gov>1994-12-03 13:43:17 +0000
commitc4511aac3fd8292048bda43b91281bab7cf7204b (patch)
treee0e1b4d1fb4c1c1ac1ce41573ce216902b22e95c /misc.c
parentf1c073a74cb18742279f42fd3863886ac3456895 (diff)
\n -> '\012'
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 8cca842..6ee4f79 100644
--- a/misc.c
+++ b/misc.c
@@ -537,10 +537,17 @@ Char array[];
{
case 'b': return '\b';
case 'f': return '\f';
- case 'n': return '\n';
case 'r': return '\r';
case 't': return '\t';
+ case 'n':
+ /* Special case. flex.skl takes care to map
+ * incoming '\n's to '\012', even on systems that
+ * don't use that value. We need to be consistent
+ * with that choice.
+ */
+ return '\012';
+
#if __STDC__
case 'a': return '\a';
case 'v': return '\v';