summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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';