lib/fluent/plugin/in_tail.rb in fluentd-0.10.18 vs lib/fluent/plugin/in_tail.rb in fluentd-0.10.19
- old
+ new
@@ -259,11 +259,11 @@
def initialize(io, pe, &receive_lines)
$log.info "following tail of #{io.path}"
@io = io
@pe = pe
@receive_lines = receive_lines
- @buffer = ''
- @iobuf = ''
+ @buffer = ''.force_encoding('ASCII-8BIT')
+ @iobuf = ''.force_encoding('ASCII-8BIT')
end
attr_reader :io
def on_notify