[DRE-commits] [ruby-fast-gettext] 06/08: Add a patch to properly handle PO file encoding in PoFile.to_mo_file

Jérémy Bobbio lunar at moszumanska.debian.org
Mon May 5 17:02:14 UTC 2014


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

lunar pushed a commit to branch master
in repository ruby-fast-gettext.

commit c4e82e996578549e0f8e250311dc85dd30710a13
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Mon May 5 18:56:35 2014 +0200

    Add a patch to properly handle PO file encoding in PoFile.to_mo_file
    
    Closes: #718218
---
 .../0005-fix-encoding-handling-in-pofile.patch        | 19 +++++++++++++++++++
 debian/patches/series                                 |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/0005-fix-encoding-handling-in-pofile.patch b/debian/patches/0005-fix-encoding-handling-in-pofile.patch
new file mode 100644
index 0000000..64d5bae
--- /dev/null
+++ b/debian/patches/0005-fix-encoding-handling-in-pofile.patch
@@ -0,0 +1,19 @@
+Description: Properly handle PO files encoding in PoFile.to_mo_file
+Author: Jérémy Bobbio <lunar at debian.org>
+Last-Updated: 2014-05-05
+Bug: https://github.com/grosser/fast_gettext/issues/32
+Bug-Debian: http://bugs.debian.org/718218
+
+Index: git/lib/fast_gettext/po_file.rb
+===================================================================
+--- git.orig/lib/fast_gettext/po_file.rb	2014-05-05 17:59:51.115480487 +0200
++++ git/lib/fast_gettext/po_file.rb	2014-05-05 18:43:48.657826012 +0200
+@@ -12,7 +12,7 @@
+       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
diff --git a/debian/patches/series b/debian/patches/series
index 4db322b..a4c2835 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-fix-rspec-requires.patch
 0002-skip-safe-mode-test.patch
 0004-fix-tests-with-ruby-calls.patch
+0005-fix-encoding-handling-in-pofile.patch

-- 
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