pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/finance/hledger Add a comment about the kludge



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bfcbe948780f
branches:  trunk
changeset: 451324:bfcbe948780f
user:      pho <pho%pkgsrc.org@localhost>
date:      Mon Apr 26 07:34:31 2021 +0000

description:
Add a comment about the kludge

diffstat:

 finance/hledger/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 5ff76a9de192 -r bfcbe948780f finance/hledger/Makefile
--- a/finance/hledger/Makefile  Mon Apr 26 07:15:24 2021 +0000
+++ b/finance/hledger/Makefile  Mon Apr 26 07:34:31 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2021/04/24 11:12:09 pho Exp $
+# $NetBSD: Makefile,v 1.4 2021/04/26 07:34:31 pho Exp $
 
 DISTNAME=      hledger-1.21
 PKGNAME=       ${DISTNAME}
@@ -46,3 +46,11 @@
 # let's pick a locale that is pretty universally supported even if not
 # exactly appropriate for this.
 MAKE_ENV+=     LC_ALL=en_US.UTF-8
+# The root cause of the problem is in hledger-lib/Hledger/Utils.hs
+# (embedFileRelative). It uses embedStringFile from file-embed
+# (devel/hs-file-embed) but without changing the locale encoding to
+# UTF-8, and the file to be embedded
+# (hledger/embeddedfiles/hledger.info) does contain non-ASCII
+# characters. Using with-utf8
+# (http://hackage.haskell.org/package/with-utf8) is probably the best
+# solution.



Home | Main Index | Thread Index | Old Index