[Groonga-commit] ranguba/epub-searcher at 740b54f [master] Write temporary EPUB file in ASCII-8BIT cos it's binary file

Back to archive index

KITAITI Makoto null+****@clear*****
Sun Feb 15 01:47:41 JST 2015


KITAITI Makoto	2015-02-15 01:47:41 +0900 (Sun, 15 Feb 2015)

  New Revision: 740b54fd532a2d91d11db6e6feeb428288ba2262
  https://github.com/ranguba/epub-searcher/commit/740b54fd532a2d91d11db6e6feeb428288ba2262

  Message:
    Write temporary EPUB file in ASCII-8BIT cos it's binary file

  Modified files:
    lib/epub-searcher/epub-file.rb

  Modified: lib/epub-searcher/epub-file.rb (+1 -1)
===================================================================
--- lib/epub-searcher/epub-file.rb    2015-02-15 01:02:26 +0900 (7ed8da5)
+++ lib/epub-searcher/epub-file.rb    2015-02-15 01:47:41 +0900 (922c1ca)
@@ -29,7 +29,7 @@ module EPUBSearcher
       basename = File.basename(url)
       local_path = make_temporary_local_path(basename)
       FileUtils.mkdir_p(File.dirname(local_path))
-      open(local_path, 'w') do |file|
+      open(local_path, 'w:ASCII-8BIT') do |file|
         file.puts download_remote_file(url)
       end
       return local_path
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index