[DRE-commits] [ruby-fast-gettext] 04/05: Properly handle PO files encoding in PoFile.to_mo_file

Dmitry Borodaenko angdraug at moszumanska.debian.org
Sat Oct 18 20:00:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

angdraug pushed a commit to branch patch-queue/master
in repository ruby-fast-gettext.

commit 59ab2bc2503f00eaf87270649f16ca5eb7e29af3
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Mon May 5 18:43:48 2014 +0200

    Properly handle PO files encoding in PoFile.to_mo_file
---
 lib/fast_gettext/po_file.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/fast_gettext/po_file.rb b/lib/fast_gettext/po_file.rb
index 9f3d7cc..6996a61 100644
--- a/lib/fast_gettext/po_file.rb
+++ b/lib/fast_gettext/po_file.rb
@@ -12,7 +12,7 @@ module FastGettext
       parser.report_warning = options.fetch(:report_warning, true)
 
       mo_file = FastGettext::GetText::MOFile.new
-      parser.parse(File.read(file), mo_file)
+      parser.parse_file(file, mo_file)
       MoFile.new(mo_file)
     end
   end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-fast-gettext.git



More information about the Pkg-ruby-extras-commits mailing list