summaryrefslogtreecommitdiffstats
path: root/doc/v6compatibility.html
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-09-13 09:30:20 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-09-13 09:30:20 +0200
commit10bef02e8f8f6bec4f1c18d9c634aa6927f4611a (patch)
tree778f982d6aa0d1ccda31c8b011418587c04437af /doc/v6compatibility.html
parent4f0672f601c74cb60ae32dfa67cccc3336dd674d (diff)
downloadrsyslog-10bef02e8f8f6bec4f1c18d9c634aa6927f4611a.tar.gz
rsyslog-10bef02e8f8f6bec4f1c18d9c634aa6927f4611a.tar.xz
rsyslog-10bef02e8f8f6bec4f1c18d9c634aa6927f4611a.zip
bugfix: missing support for escape sequences in RainerScript
Only \' was supported. Now the usual set is supported. Note that v5 used \x as escape where x was any character (e.g. "\n" meant "n" and NOT LF). This also means there is some incompatibility to v5 for well-know sequences. Better break it now than later.
Diffstat (limited to 'doc/v6compatibility.html')
-rw-r--r--doc/v6compatibility.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/v6compatibility.html b/doc/v6compatibility.html
index 1f830854..c1799974 100644
--- a/doc/v6compatibility.html
+++ b/doc/v6compatibility.html
@@ -162,6 +162,15 @@ As you see, here you may include spaces between user names.
so it is a wise decision to change config files at least to the legacy
format (with ":omusrmsg:" in front of the name).
+<h2>Escape Sequences in Script-Based Filters<h2>
+<p>In v5, escape sequences were very simplistic. Inside a string, "\x" meant
+"x" with x being any character. This has been changed so that the usual set of
+escapes is supported, must importantly "\n", "\t", "\xhh" (with hh being hex digits)
+and "\ooo" with (o being octal digits). So if one of these sequences was used
+previously, results are obviously different. However, that should not create any
+real problems, because it is hard to envision why someone should have done that
+(why write "\n" when you can also write "n"?).
+---------------------------------------------------------------------------
<p>[<a href="manual.html">manual index</a>] [<a href="http://www.rsyslog.com/">rsyslog site</a>]</p>
<p><font size="2">This documentation is part of the
<a href="http://www.rsyslog.com/">rsyslog</a> project.<br>