summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorDmitry Bogatov <KAction@debian.org>2018-11-13 07:18:25 +0000
committerDmitry Bogatov <KAction@debian.org>2018-11-13 07:18:25 +0000
commit2821228c49572c7c03793c47772757371c2957a5 (patch)
treed1336df596dc541e124a72304c990a6f83bce739 /debian/rules
parent055c1e15eabc51c35e375017aeddce39a60939a8 (diff)
Patch to use "utf-8" as master encoding
I have rather vague understanding, what `master_encoding' is, but using any encoding but "utf-8" looks suspicios. Actually, with master_encoding, provided by upstream, I get garbled output when trying to write commit message in non-english language. Hope it will not break anything else. (Maybe it is required for python2 version?)
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 926ac25..6f02ed0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,12 @@ override_dh_installchangelogs:
override_dh_auto_install:
dh_auto_install
sed -i '1s:.*:#!/usr/bin/python3:' debian/src/usr/bin/src
+ # I have rather vague understanding, what `master_encoding' is,
+ # but using any encoding but "utf-8" looks suspicios. Actually,
+ # with master_encoding, provided by upstream, I get garbled
+ # output when trying to write commit message in non-english
+ # language. Hope it will not break anything else.
+ sed -i '/^master_encoding/s:.*:master_encoding = "utf-8":' src
# Test suite requires working git installation, with user.email and
# user.name set. It is quite complicated to set up on buildd.