[DRE-commits] [ruby-po-to-json] 03/03: Fix encoding errors

Balasankar C balasankarc-guest at moszumanska.debian.org
Tue Jun 20 11:40:04 UTC 2017


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

balasankarc-guest pushed a commit to branch master
in repository ruby-po-to-json.

commit 446a199103666abd2cb8940585eac79d3d4b9897
Author: Balasankar C <balasankarc at autistici.org>
Date:   Tue Jun 20 17:05:30 2017 +0530

    Fix encoding errors
---
 debian/control | 2 ++
 debian/rules   | 8 +++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index fbff475..b3af959 100644
--- a/debian/control
+++ b/debian/control
@@ -5,9 +5,11 @@ Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.al
 Uploaders: Balasankar C <balasankarc at autistici.org>
 Build-Depends: debhelper (>= 9~),
                gem2deb,
+               locales,
                rake,
                ruby-json (>= 1.6.0),
                ruby-rspec
+Build-Conflicts: locales-all
 Standards-Version: 4.0.0
 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-po-to-json.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-po-to-json.git
diff --git a/debian/rules b/debian/rules
index 3454d59..2a3ae47 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,4 +3,10 @@
 export GEM2DEB_TEST_RUNNER = --check-dependencies
 
 %:
-	dh $@ --buildsystem=ruby --with ruby
+	mkdir -p debian/build/locale
+	localedef -f UTF-8 -i en_US debian/build/locale/en_US.UTF-8
+	LOCPATH=$(CURDIR)/debian/build/locale LC_ALL=en_US.UTF-8 dh $@ --buildsystem=ruby --with ruby
+
+override_dh_clean:
+	LOCPATH=$(CURDIR)/debian/build/locale LC_ALL=en_US.UTF-8 dh_clean
+	rm -rf debian/build/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-po-to-json.git



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