summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@gmail.com>2018-07-06 15:48:17 +0100
committerDominik Picheta <dominikpicheta@gmail.com>2018-07-06 15:48:17 +0100
commit5e338c371e56ff6193c8bc3581b0e268e9e5fa63 (patch)
tree25df571994f25bec593ca2eaf000230be5f50bd7
parenta1457bfa9ffad3e59b49380fce70d29720485e7d (diff)
downloadNim-5e338c371e56ff6193c8bc3581b0e268e9e5fa63.tar.gz
Use '\L' instead of '\n' in system for backwards compatibility.
See https://github.com/nim-lang/packages/pull/785.
-rw-r--r--lib/system.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 15f952feb..c611befff 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -3988,7 +3988,7 @@ proc addEscapedChar*(s: var string, c: char) {.noSideEffect, inline.} =
   of '\a': s.add "\\a" # \x07
   of '\b': s.add "\\b" # \x08
   of '\t': s.add "\\t" # \x09
-  of '\n': s.add "\\n" # \x0A
+  of '\L': s.add "\\n" # \x0A
   of '\v': s.add "\\v" # \x0B
   of '\f': s.add "\\f" # \x0C
   of '\c': s.add "\\c" # \x0D