summaryrefslogtreecommitdiff
blob: 20118037b779375ff7277d1ace4cffcdd4d77022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
https://github.com/ihhub/fheroes2/commit/e55c33c1bc7ac1b8c2ffc6e4ca61ab47921ec1b1
https://bugs.gentoo.org/908863

--- a/files/lang/Makefile
+++ b/files/lang/Makefile
@@ -19,7 +19,8 @@
 ###########################################################################
 
 ICONV  = iconv
-MSGFMT = sed -e '1,20 s/UTF-8/$(1)/' $< | $(ICONV) -f utf-8 -t $(1) | msgfmt - -o $@
+# TODO: consider converting game fonts and texts to UTF-8 in the engine instead
+MSGFMT = sed -e '1,20 s/UTF-8/$(1)/' $< | $(ICONV) -f utf-8 -t $(1) | if msgfmt --help | grep -q no-convert >/dev/null 2>/dev/null; then msgfmt - -o $@ --no-convert; else msgfmt - -o $@; fi
 
 .PHONY: all clean merge