From 718f135da1d06ac922e15528baac52de104a4f9c Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Tue, 26 Oct 2010 11:34:37 +0200
Subject: [PATCH] Force UTF-8 locale for pandoc invocation

Pandoc 1.5.x uses the locale information to parse its input files (only
1.5, pre and post version use always UTF-8). Hence we need to enforce a
UTF-8 locale for proper parsing of input files.
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index a008e81ef..4dd4a4b05 100644
--- a/Makefile
+++ b/Makefile
@@ -25,10 +25,10 @@ test live-test: HEXTRA=-fhpc -Wwarn -fno-warn-missing-signatures \
 	-fno-warn-missing-methods -fno-warn-unused-imports
 
 $(DOCS) : %.html : %
-	pandoc -f rst -t html -o $@ $<
+	LANG=en_US.UTF-8 pandoc -f rst -t html -o $@ $<
 
 %.1: %.rst
-	pandoc -s -f rst -t man -o $@ $<
+	LANG=en_US.UTF-8 pandoc -s -f rst -t man -o $@ $<
 
 doc: $(DOCS) Ganeti/HTools/Version.hs
 	rm -rf $(HDDIR)/*
-- 
GitLab