Skip to content

Commit e4c8865

Browse files
committed
doc Makefile: issue warning about chars that cannot be output
A follow-up improvement to commit 641a5b7. Reported-by: Tatsuo Ishii, Tom Lane Discussion: https://postgr.es/m/[email protected] Backpatch-through: master
1 parent 08691ea commit e4c8865

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/src/sgml/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ XSLTPROC_FO_FLAGS += --stringparam img.src.path '$(srcdir)/'
156156
$(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_FO_FLAGS) --stringparam paper.type USletter -o $@ $^
157157

158158
%.pdf: %.fo $(ALL_IMAGES)
159-
$(FOP) -fo $< -pdf $@
159+
LANG=C $(FOP) -fo $< -pdf $@ 2>&1 | \
160+
awk 'BEGIN { warn = 0 } { print } /not available in font/ { warn = 1 } \
161+
END { if (warn != 0) print("\nFound characters that cannot be output in the PDF document; see README.non-ASCII") }' 1>&2
160162

161163

162164
##

0 commit comments

Comments
 (0)