aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/make_documentation_reproducible.patch
blob: 105766a9f2f8ec572a3a934b3b6e02a4a0101594 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: "jumapico@gmail.com" <jumapico@gmail.com>
Date: Mon, 11 Sep 2023 14:00:42 -0600
Subject: Make documentation reproducible

Last-Update: 2019-01-06

Add LC_ALL=C.UTF-8 to w3m to avoid changes in the output when build the
documentation with different locales.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index b9b0f83..5f11912 100644
--- a/configure.ac
+++ b/configure.ac
@@ -647,7 +647,7 @@ JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl-ns/current/manp
 
 AC_PATH_PROG([BROWSER], [w3m])
 if test -n "$BROWSER"; then
-     BROWSER="$BROWSER -T text/html -dump"
+     BROWSER="LC_ALL=C.UTF-8 $BROWSER -T text/html -dump"
 else
      AC_PATH_PROG([BROWSER], [elinks])
      if test -n "$BROWSER"; then