Skip to content

formatter_ltsv: suppress delimiters in output#3288

Merged
ashie merged 2 commits into
fluent:masterfrom
ashie:ltsv-escape
Mar 9, 2021
Merged

formatter_ltsv: suppress delimiters in output#3288
ashie merged 2 commits into
fluent:masterfrom
ashie:ltsv-escape

Conversation

@ashie

@ashie ashie commented Mar 8, 2021

Copy link
Copy Markdown
Member

Which issue(s) this PR fixes:
Revise #1666

What this PR does / why we need it:
formatter_ltsv creates malformed LTSV files when values include tabs.
This PR prevent it by replacing tabs with spaces.

Docs Changes:
replacement should be added to https://docs.fluentd.org/parser/ltsv

Release Note:
Same with the title

MikePlayle and others added 2 commits December 8, 2020 20:06
Replace tabs with spaces before writing them to the output, to prevent
creating malformed LTSV files.

Also add test cases to verify this behaviour.

Signed-off-by: Mike Playle <mike@mythik.co.uk>
Signed-off-by: Takuro Ashie <ashie@clear-code.com>
@ashie ashie changed the title formatter_ltsv: Escape separator in value formatter_ltsv: suppress delimiters in output Mar 8, 2021
@ashie ashie merged commit 3e812a8 into fluent:master Mar 9, 2021
@ashie ashie deleted the ltsv-escape branch March 9, 2021 05:46
@ashie

ashie commented Mar 9, 2021

Copy link
Copy Markdown
Member Author

Thanks @MikePlayle!

ashie added a commit to ashie/fluentd that referenced this pull request Mar 9, 2021
Line breaks should be "\r\n".

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
cosmo0920 added a commit that referenced this pull request Mar 9, 2021
Fix some failed tests of #3288 on Windows
ashie added a commit to ashie/fluentd-docs-gitbook that referenced this pull request Mar 17, 2021
It's introduced by fluent/fluentd#3288

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants