algernon/syslog-ng — pull request #35 by lbudai (2013-11-12 11:11:05+00:00)
Title: csvparser: escape related flags are incorrectly processed

The problem is that escape related flags just simply overwrite
default flags and overwritten by non-escape flags.
This patch is do the following in order to avoid undesired owerwrites:

If new flag is an escape flag (and does not contain any other flags),
previously set flags,without escape flags, are appended to that new flag.

If new flag does not contain escape flags, escape flags from previously
set flags are appended to that new flag.

Otherwise new flag is overwrite previously set flags.

Please note, that this solution is not the best( adding a new escape-mode()
argument would be better than this workaround ).