diff options
author | Tim Rühsen <tim.ruehsen@gmx.de> | 2018-11-04 23:50:45 +0100 |
---|---|---|
committer | jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> | 2018-11-04 14:50:45 -0800 |
commit | 16fcc34ac83bcd14f080b8caaf335dd267c8b774 (patch) | |
tree | fd44efcf3112ef6fe7cd22e808d44082fba0596d /projects/libpsl | |
parent | 46b1adfd899ee1b7d796ec3380d6056b35f9f192 (diff) | |
download | oss-fuzz-16fcc34ac83bcd14f080b8caaf335dd267c8b774.tar.gz |
[libpsl] Fix build: convert PSL to NFC (#1924)
Diffstat (limited to 'projects/libpsl')
-rwxr-xr-x | projects/libpsl/build.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/projects/libpsl/build.sh b/projects/libpsl/build.sh index 6cf1cb92b..0dd93b532 100755 --- a/projects/libpsl/build.sh +++ b/projects/libpsl/build.sh @@ -69,6 +69,9 @@ for build in $builds; do unset LIBS if test $build = "none"; then BUILD_FLAGS="--disable-runtime --disable-builtin" + # convert PSL to NFC + cp -p list/public_suffix_list.dat list/public_suffix_list.dat.org + LC_ALL=C.UTF-8 python3 -c $'import unicodedata\nimport sys\nfor line in sys.stdin:\n sys.stdout.write(unicodedata.normalize("NFC", line))' <list/public_suffix_list.dat.org >list/public_suffix_list.dat else BUILD_FLAGS="--enable-runtime=$build --enable-builtin=$build" if test $build = "libicu"; then |