Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit811f1ce

Browse files
committed
Produce HISTORY file consistently as ASCII
The release notes may contain non-ASCII characters (for contributornames), which lynx converts to the encoding determined by the currentlocale. The get output that is deterministic and easily readable byeveryone, we make lynx produce LATIN1 and then convert that to ASCIIwith transliteration for the non-ASCII characters.
1 parent2ed81eb commit811f1ce

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎doc/src/sgml/Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,19 @@ postgres.pdf:
206206
##
207207

208208
JADE.text =$(JADE)$(JADEFLAGS)$(SGMLINCLUDE)$(CATALOG) -d stylesheet.dsl -i output-text -t sgml
209+
ICONV = iconv
209210
LYNX = lynx
210211

212+
# The release notes may contain non-ASCII characters (for contributor
213+
# names), which lynx converts to the encoding determined by the
214+
# current locale. The get output that is deterministic and easily
215+
# readable by everyone, we make lynx produce LATIN1 and then convert
216+
# that to ASCII with transliteration for the non-ASCII characters.
217+
# Official releases are currently built on FreeBSD, which has limited
218+
# locale support and is very picky about locale name spelling. The
219+
# below has been finely tuned to run on FreeBSD and Linux/glibc.
211220
INSTALLHISTORYregress_README:% :%.html
212-
$(PERL) -p -e's/<H(1|2)$$/<H\1 align=center/g'$<|$(LYNX) -force_html -dump -nolist -stdin>$@
221+
$(PERL) -p -e's/<H(1|2)$$/<H\1 align=center/g'$<|LC_ALL=en_US.ISO8859-1$(LYNX) -force_html -dump -nolist -stdin|$(ICONV) -f latin1 -t us-ascii//TRANSLIT>$@
213222

214223
INSTALL.html: standalone-install.sgml installation.sgml version.sgml
215224
$(JADE.text) -V nochunks standalone-install.sgml installation.sgml>$@

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp