@@ -9,6 +9,14 @@ addSGMLCatalogs () {
99if test -z "$sgmlHookDone"; then
1010 sgmlHookDone=1
1111
12+ # Set http_proxy and ftp_proxy to a invalid host to prevent
13+ # xmllint and xsltproc from trying to download DTDs from the
14+ # network even when --nonet is not given. That would be impure.
15+ # (Note that .invalid is a reserved domain guaranteed not to
16+ # work.)
17+ export http_proxy=http://nodtd.invalid/
18+ export ftp_proxy=http://nodtd.invalid/
19+
1220 export SGML_CATALOG_FILES
1321 envHooks+=(addSGMLCatalogs)
1422fi