diff options
author | Araq <rumpf_a@web.de> | 2018-09-03 08:37:32 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-09-03 08:37:32 +0200 |
commit | fa338768a3f6aac03e4c76bcfdd660716a9bf926 (patch) | |
tree | 8198dda07dc25281ca786ca4c756dc98f913596b /lib | |
parent | dc67dd3bef80bec6f91961347ed3c45af7b2b5c9 (diff) | |
download | Nim-fa338768a3f6aac03e4c76bcfdd660716a9bf926.tar.gz |
fixes #8847
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim index 92f51fe7e..bfd8a31e5 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3972,7 +3972,7 @@ proc addQuoted*[T](s: var string, x: T) = ## tmp.add(", ") ## tmp.addQuoted('c') ## assert(tmp == """1, "string", 'c'""") - when T is string: + when T is string or T is cstring: s.add("\"") for c in x: # Only ASCII chars are escaped to avoid butchering |