diff --git a/lib/fluent/plugin/out_file.rb b/lib/fluent/plugin/out_file.rb
index <HASH>..<HASH> 100644
--- a/lib/fluent/plugin/out_file.rb
+++ b/lib/fluent/plugin/out_file.rb
@@ -223,7 +223,12 @@ module Fluent::Plugin
 
     def write_without_compression(path, chunk)
       File.open(path, "ab", @file_perm) do |f|
-        chunk.write_to(f)
+        if @append
+          content = chunk.read()
+          f.puts content
+        else
+          chunk.write_to(f)
+        end
       end
     end
Make out_file append option work without compression

For Ruby <I>.x and <I>.x, out_file append option without compression
does not work. The cause is the following Ruby language bug:

<URL>