Skip to content

Commit

Permalink
Change É into HTML character entity reference in generate.html.orgnam…
Browse files Browse the repository at this point in the history
…escope

See ukf/ukf-meta#258 for details.
  • Loading branch information
Alex Stuart committed Nov 9, 2020
1 parent b30d65d commit fdebe00
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2809,6 +2809,8 @@
generate.html.orgnamescope
Generates a HTML table of IdPs and their scopes
bodge-eacute.pl is an awful bodge to fix encodings
-->
<target name="generate.html.orgnamescope">
<echo>Running generate.html.orgnamescope XSLT</echo>
Expand All @@ -2818,6 +2820,10 @@
<arg value="${utilities.dir}/orgnamescope.xsl" />
<arg value="${aggregates.dir}/ukfederation-metadata.xml" />
</exec>
<exec executable="perl" failonerror="true">
<arg value="${utilities.dir}/bodge-eacute.pl" />
<arg value="${build.dir}/orgnamescope.html" />
</exec>
</target>

<!--
Expand Down
11 changes: 11 additions & 0 deletions utilities/bodge-eacute.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/perl -w -p -i
#
# É is changed to HTML character entity reference &Eacute;
#
# An awful bodge to fix output of IdPInfoList. Our instance of
# PMwiki encodes pages in windows-1252 (single byte character encoding),
# and IdPInfoList includes a file encoded in UTF-8. All is well until
# we have a 2-byte character in GÉANT.
#
binmode(STDOUT, ":encoding(UTF-8)");
s/É/&Eacute;/g;

0 comments on commit fdebe00

Please sign in to comment.