Skip to content

tail_file: open the target file in binary mode#1113

Merged
edsiper merged 1 commit into
fluent:masterfrom
fujimotos:sf/tail-binary
Feb 18, 2019
Merged

tail_file: open the target file in binary mode#1113
edsiper merged 1 commit into
fluent:masterfrom
fujimotos:sf/tail-binary

Conversation

@fujimotos
Copy link
Copy Markdown
Contributor

Unless we open the file with O_BINARY, Windows will treat "\r\n" as
1 byte. This has been causing in_tail malfunctioning on Windows, due
to the read count never reaching the actual file size.

Part of #960

Unless we open the file with O_BINARY, Windows will treat "\r\n" as
1 byte. This has been causing in_tail malfunctioning on Windows, due
to the read count never reaching the actual file size.

Signed-off-by: Fujimoto Seiji <fujimoto@clear-code.com>
@edsiper edsiper merged commit 8b8bed8 into fluent:master Feb 18, 2019
@fujimotos fujimotos deleted the sf/tail-binary branch December 6, 2019 07:03
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.

2 participants