mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

With this patch the model is: - "print" cleans the data so that non-printable characters get escaped. This is not necessarily reversible. - to print in a reversible way, one can go through escape_string(); this escapes backslashes as well to make the decoding non-ambigious. - Logging always escapes similar to escape_string(), making it reversible. Compared to master, we also change the escaping as follows: - We now only escape with "\xXX", no more "^X" or "\0". Exception: backslashes. - We escape backlashes as "\\". - There's no "alternative" output style anymore, i.e., fmt() '%A' qualifier is gone. Baselines in testing/btest are updated, external tests not yet. Addresses BIT-1333.
18 lines
282 B
Text
18 lines
282 B
Text
#separator \x09
|
|
#set_separator ,
|
|
#empty_field (empty)
|
|
#unset_field -
|
|
#path test
|
|
#open 2015-04-15-23-47-40
|
|
#fields s
|
|
#types string
|
|
AB\x00CD\x00
|
|
AB\xffCD\x00
|
|
AB\\xffCD\x00
|
|
|
|
abc\\x00def
|
|
|
|
foo \xc2\xae bar \\xc2\\xae baz
|
|
foo\x00bar\\0baz
|
|
foo \x0e bar ^N baz
|
|
#close 2015-04-15-23-47-40
|