pax_global_header 0000666 0000000 0000000 00000000064 14763126736 0014531 g ustar 00root root 0000000 0000000 52 comment=9bc3ac79e2ae81ade245a0e308bf13c981efaa83
libidn2-v2.3.8/ 0000775 0000000 0000000 00000000000 14763126736 0013254 5 ustar 00root root 0000000 0000000 libidn2-v2.3.8/.gitattributes 0000664 0000000 0000000 00000000042 14763126736 0016143 0 ustar 00root root 0000000 0000000 .tarball-version-git export-subst
libidn2-v2.3.8/.gitignore 0000664 0000000 0000000 00000006341 14763126736 0015250 0 ustar 00root root 0000000 0000000 !/unistring/Makefile.am
*.exe
*.gcda
*.gcno
*.lo
*.log
*.o
*.trs
*~
.deps/
.libs/
/.version
/ABOUT-NLS
/ChangeLog
/GNUmakefile
/INSTALL
/README-release
/TAGS
/aclocal.m4
/aminclude_static.am
/autom4te.cache/
/build-aux
/build-aux/
/compat_reports/
/config.cache
/config.h
/config.h.in
/config.status
/configure
/doc/.gitignore
/doc/coverage/
/doc/decode.c
/doc/example-toascii.c
/doc/example-tounicode.c
/doc/idn2-help.texi
/doc/idn2.1
/doc/libidn2.aux
/doc/libidn2.cp
/doc/libidn2.cps
/doc/libidn2.fn
/doc/libidn2.fns
/doc/libidn2.html
/doc/libidn2.info
/doc/libidn2.ky
/doc/libidn2.pdf
/doc/libidn2.pg
/doc/libidn2.t2p/
/doc/libidn2.toc
/doc/libidn2.tp
/doc/libidn2.vr
/doc/libidn2.vrs
/doc/lookup.c
/doc/man/
/doc/reference/gtkdoc-check.test
/doc/reference/html-build.stamp
/doc/reference/html.stamp
/doc/reference/html/
/doc/reference/idn2-decl-list.txt
/doc/reference/idn2-decl-list.txt.bak
/doc/reference/idn2-decl.txt
/doc/reference/idn2-decl.txt.bak
/doc/reference/idn2-overrides.txt
/doc/reference/idn2-sections.txt
/doc/reference/idn2-undeclared.txt
/doc/reference/idn2-undocumented.txt
/doc/reference/idn2-unused.txt
/doc/reference/idn2.args
/doc/reference/idn2.hierarchy
/doc/reference/idn2.interfaces
/doc/reference/idn2.prerequisites
/doc/reference/idn2.signals
/doc/reference/idn2.types
/doc/reference/libidn2-decl-list.txt
/doc/reference/libidn2-decl-list.txt.bak
/doc/reference/libidn2-decl.txt
/doc/reference/libidn2-decl.txt.bak
/doc/reference/libidn2-overrides.txt
/doc/reference/libidn2-sections.txt
/doc/reference/libidn2-undeclared.txt
/doc/reference/libidn2-undocumented.txt
/doc/reference/libidn2-unused.txt
/doc/reference/libidn2.actions
/doc/reference/libidn2.args
/doc/reference/libidn2.hierarchy
/doc/reference/libidn2.interfaces
/doc/reference/libidn2.pdf
/doc/reference/libidn2.prerequisites
/doc/reference/libidn2.signals
/doc/reference/libidn2.types
/doc/reference/pdf-build.stamp
/doc/reference/pdf.stamp
/doc/reference/scan-build.stamp
/doc/reference/setup-build.stamp
/doc/reference/sgml-build.stamp
/doc/reference/sgml.stamp
/doc/reference/tmpl-build.stamp
/doc/reference/tmpl.stamp
/doc/reference/tmpl/
/doc/reference/version.xml
/doc/reference/xml/
/doc/register.c
/doc/stamp-gdoc
/doc/stamp-vti
/doc/texi/
/doc/version.texi
/examples/decode
/examples/example-toascii
/examples/example-tounicode
/examples/lookup
/examples/register
/fuzz/*_fuzzer
/fuzz/*_fuzzer.new/
/gl/
/gnulib/
/gtk-doc.make
/lib/data.c
/lib/gendata
/lib/gentr46map
/lib/idn2.h
/lib/libidn2-*.def
/lib/libidn2.la
/lib/tr46map_data.c
/libidn2-*.tar.*
/libidn2-*.tar.*.sig
/libidn2-*/
/libidn2.pc
/libtool
/m4/
/maint.mk
/po/*.gmo
/po/*.po
/po/.gitignore
/po/.reference/
/po/LINGUAS
/po/Makevars
/po/POTFILES
/po/en@boldquot.insert-header
/po/en@quot.insert-header
/po/libidn2.pot
/po/remove-potcdate.sed
/po/stamp-po
/scan.tmp/
/src/idn2
/src/idn2_cmd.c
/src/idn2_cmd.h
/src/idn2_noinstall
/src/libidn2_cmd.la
/stamp-h1
/tests/.gitignore
/tests/IdnaTest.inc
/tests/repro-to-ascii-8z
/tests/repro-to-unicode-8z8z
/tests/test-IdnaTest-inc
/tests/test-IdnaTest-txt
/tests/test-compat-punycode
/tests/test-glibc
/tests/test-locale
/tests/test-lookup
/tests/test-punycode
/tests/test-register
/tests/test-strerror
/tests/test-tounicode
/tests/test-version
/unistring/
Makefile
Makefile.in
TAGS
libidn2-v2.3.8/.gitlab-ci.yml 0000664 0000000 0000000 00000122511 14763126736 0015712 0 ustar 00root root 0000000 0000000 # Copyright (C) 2016-2025 Simon Josefsson
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
variables:
GIT_DEPTH: 250
GNULIB_URL: https://gitlab.com/libidn/gnulib-mirror.git
stages:
- build # B-* jobs build from git for "make dist"
- repro # R-* jobs do "make release" from git, S-* jobs build from *-src.tar.gz
- test # tarball test builds
default:
interruptible: true
artifacts:
expire_in: 2 weeks
when: always
paths:
- "*.tar.gz"
- ./**/*.log
- ./*.log
- ./config.h
- ./out/$CI_JOB_NAME_SLUG/**
.gnulib-fetch:
script:
- GNULIB_REVISION=$(. bootstrap.conf >&2; echo $GNULIB_REVISION)
- wget -nv https://gitlab.com/libidn/gnulib-mirror/-/archive/$GNULIB_REVISION/gnulib-mirror-$GNULIB_REVISION.tar.gz
- gzip -cd gnulib-mirror-$GNULIB_REVISION.tar.gz | tar xf -
- rm -fv gnulib-mirror-$GNULIB_REVISION.tar.gz
- export GNULIB_SRCDIR=$PWD/gnulib-mirror-$GNULIB_REVISION
.save-artifacts:
script:
- (! command -v git > /dev/null) || git status
- (! command -v git > /dev/null) || git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/{src,log}
- find config.h *.log tests/*.log -exec mv -v {} out/$CI_JOB_NAME_SLUG/log \;
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/ || true
- mv -v *.tar.* out/$CI_JOB_NAME_SLUG/
B-Guix:
image: registry.gitlab.com/debdistutils/guix/container:extra
stage: build
before_script:
- cp -rL /gnu/store/*profile/etc/* /etc/
- echo 'root:x:0:0:root:/:/bin/sh' > /etc/passwd
- echo 'root:x:0:' > /etc/group
- export HOME=/
- guix describe
- echo time guix install --verbosity=0 wget python patch perl gperf gengetopt libtool gettext help2man texinfo libabigail indent pkg-config gtk-doc
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --no-git
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) syntax-check
- time make -j$(nproc) check V=1 VERBOSE=t
- time make V=1 dist
- !reference [.save-artifacts, script]
B-gcc:
image: gcc:latest
stage: build
before_script:
- gcc --version
- apt-get update -q
- apt-get install -y -q --no-install-recommends git make autoconf automake libtool gettext autopoint gperf libunistring-dev gengetopt help2man texinfo gtk-doc-tools
script:
- time ./bootstrap --skip-po
- time ./configure --enable-gcc-warnings=error CC="gcc -std=gnu2x" --disable-doc
- time make -k syntax-check
- time make V=1 VERBOSE=t check clean
- time ./configure --enable-gcc-warnings CC="gcc -std=c23"
- time make V=1 all check dist
- !reference [.save-artifacts, script]
B-clang:
image: silkeh/clang:latest
stage: build
before_script:
- clang --version
- apt-get update -q
- apt-get install -y -q --no-install-recommends git make autoconf automake libtool gettext autopoint gperf libunistring-dev gengetopt help2man texinfo gtk-doc-tools abi-compliance-checker abigail-tools
script:
- time ./bootstrap --skip-po
- time ./configure --enable-gcc-warnings=error CC="clang -std=gnu2x" --disable-doc
- time make -k syntax-check
- time make V=1 VERBOSE=t check clean
- time ./configure --enable-gcc-warnings=error CC="clang -std=c23"
- time make V=1 VERBOSE=t check dist
- !reference [.save-artifacts, script]
B-Alpine-arm64:
image: alpine:latest
tags: [ saas-linux-small-arm64 ]
stage: build
before_script:
- time apk update
- time apk add gcc python3 make libc-dev git autoconf automake libtool gettext-dev gperf gengetopt patch
script:
- time ./bootstrap --skip-po
- time ./configure --disable-doc --enable-gcc-warnings=error
- time make -j$(nproc) syntax-check
- time make -j$(nproc) -k V=1
- time make -j$(nproc) check V=1 VERBOSE=t
- git diff --exit-code # nothing should change version controlled files
.almarocky: &almarocky
stage: build
tags: [ saas-linux-medium-amd64 ]
variables:
PKGS: wget git make diffutils patch autoconf automake libtool gettext-devel gperf libunistring-devel valgrind gengetopt help2man gtk-doc texinfo texinfo-tex libabigail
before_script:
- cat /etc/os-release
- time dnf install -y epel-release
- time dnf --enablerepo=$(dnf repolist --all | grep crb > /dev/null && echo crb || echo powertools) install -y ${PKGS}
- cc --version
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error
- time make syntax-check
- time make -j$(nproc) V=1 VERBOSE=t check
- time make abi-check
- time make -j$(nproc) V=1 VERBOSE=t distcheck
- !reference [.save-artifacts, script]
B-AlmaLinux8:
image: almalinux:8
extends: .almarocky
B-RockyLinux8:
image: rockylinux:8
extends: .almarocky
B-AlmaLinux9:
image: almalinux:9
extends: .almarocky
B-RockyLinux9:
image: rockylinux:9
extends: .almarocky
.pureosdebian: &pureosdebian
tags: [ saas-linux-medium-amd64 ]
stage: build
variables:
DEBIAN_FRONTEND: noninteractive
before_script:
- cat /etc/os-release
- time apt-get update -q
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -y -q wget make gcc git autoconf automake libtool gettext autopoint gperf libunistring-dev valgrind gengetopt help2man texinfo gtk-doc-tools abi-compliance-checker abigail-tools
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error --enable-valgrind-tests
- time make syntax-check
- time make -j$(nproc) V=1 VERBOSE=t check
- make -C doc compare-makefile
- make abi-check
- time make -j$(nproc) V=1 VERBOSE=t distcheck AM_DISTCHECK_DVI_TARGET=
- !reference [.save-artifacts, script]
B-PureOS10:
image: pureos/byzantium:latest
extends: .pureosdebian
B-Debian11:
image: debian:11-slim
extends: .pureosdebian
B-Devuan5:
image: devuan/devuan:daedalus
extends: .pureosdebian
B-Debian12:
image: debian:12-slim
extends: .pureosdebian
.trisquelubuntu: &trisquelubuntu
tags: [ saas-linux-medium-amd64 ]
stage: build
variables:
DEBIAN_FRONTEND: noninteractive
before_script:
- cat /etc/os-release
- sed -i 's,http://archive.trisquel.info/trisquel,http://ftp.acc.umu.se/mirror/trisquel/packages,' /etc/apt/sources.list
- time apt-get update -q
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -y -q wget make gcc git autoconf automake libtool gettext autopoint gperf libunistring-dev valgrind gengetopt help2man texinfo gtk-doc-tools abi-compliance-checker abigail-tools
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error --enable-valgrind-tests
- time make syntax-check
- time make -j$(nproc) V=1 VERBOSE=t check
- make -C doc compare-makefile
- time make -j$(nproc) V=1 VERBOSE=t distcheck AM_DISTCHECK_DVI_TARGET=
- env IDN2=src/idn2 STANDALONE_CFLAGS="-Ilib -Itests lib/.libs/libidn2.a unistring/.libs/libunistring.a gl/.libs/libgnu.a -lunistring" tests/standalone.sh
- env IDN2=src/idn2 STANDALONE_CFLAGS="-Ilib -Itests -Wl,-rpath lib/.libs lib/.libs/libidn2.so unistring/.libs/libunistring.a gl/.libs/libgnu.a -lunistring" tests/standalone.sh
- make abi-check
- make dist
- !reference [.save-artifacts, script]
B-Ubuntu2204:
image: ubuntu:22.04
extends: .trisquelubuntu
B-Trisquel11:
rules:
- when: always # this job is used by merge request jobs tagged with 'needs' on this job
image: kpengboy/trisquel:11.0
extends: .trisquelubuntu
Q-Debian-testing:
image: debian:testing-slim
tags: [ saas-linux-medium-amd64 ]
stage: build
before_script:
- cat /etc/os-release
- apt-get update -q
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -y -q wget make gcc git autoconf automake libtool autopoint gperf libunistring-dev gengetopt indent
script:
- apt-get install -y idn2 libidn2-dev libunistring-dev | tail
- cp -a tests/test-lookup.c tests/test-lookup.c~
- sed -i -e 's/"xn--pkf", IDN2_DISALLOWED/"xn--pkf", IDN2_OK/' tests/test-lookup.c
- env STANDALONE_DISABLE='*punycode* *test-IdnaTest-inc*' tests/standalone.sh
- mv tests/test-lookup.c~ tests/test-lookup.c
- apt-get remove -y --purge libidn2-dev libunistring-dev | tail
- !reference [.gnulib-fetch, script]
- time ./bootstrap --no-git --skip-po
- git diff --exit-code # catch changes resulting in *-dirty version number
- mkdir -p q
- cd q
- time ../configure CFLAGS=-O0 --enable-gcc-warnings=error --disable-doc --with-included-libunistring
- grep am_cv_func_iconv_summary config.log
- time make -j$(nproc) -k syntax-check
- time make -j$(nproc) -k V=1 check VERBOSE=t
- env IDN2=src/idn2 STANDALONE_CFLAGS="-DHAVE_CONFIG_H -I. -Ilib -I../lib -Itests -Iunistring -I../unistring lib/.libs/libidn2.a unistring/.libs/libunistring.a gl/.libs/libgnu.a" ../tests/standalone.sh
- env IDN2=src/idn2 STANDALONE_CFLAGS="-DHAVE_CONFIG_H -I. -Ilib -I../lib -Itests -Iunistring -I../unistring -Wl,-rpath lib/.libs lib/.libs/libidn2.so unistring/.libs/libunistring.a gl/.libs/libgnu.a" ../tests/standalone.sh
- git diff --exit-code # nothing should change version controlled files
B-Debian-testing:
image: debian:testing
stage: build
before_script:
- apt-get update -q -y
- apt-get install -q -y make gcc git autoconf automake libtool gettext autopoint gperf libunistring-dev valgrind gengetopt help2man texinfo texlive gtk-doc-tools abi-compliance-checker abigail-tools libidn2-dev idn2
script:
- cp -a tests/test-lookup.c tests/test-lookup.c~
- sed -i -e 's/"xn--pkf", IDN2_DISALLOWED/"xn--pkf", IDN2_OK/' tests/test-lookup.c
- env STANDALONE_DISABLE='*punycode* *test-IdnaTest-inc*' tests/standalone.sh
- mv tests/test-lookup.c~ tests/test-lookup.c
- apt-get remove -y --purge libidn2-dev idn2
- ./bootstrap --skip-po
- ./configure --enable-gcc-warnings=error --enable-valgrind-tests
- time make -j$(nproc) V=1
- time make -j$(nproc) -k check VERBOSE=t
- git diff --exit-code # nothing should change version controlled files
- rm unistring/libunistring.la # FIXME XXX debug why this is needed...
- time make -j$(nproc) distcheck
- env IDN2=src/idn2 STANDALONE_CFLAGS="-Ilib lib/.libs/libidn2.a unistring/.libs/libunistring.a gl/.libs/libgnu.a -lunistring" tests/standalone.sh
- env IDN2=src/idn2 STANDALONE_CFLAGS="-Ilib -Wl,-rpath lib/.libs lib/.libs/libidn2.so unistring/.libs/libunistring.a gl/.libs/libgnu.a -lunistring" tests/standalone.sh
- make install
- apt-get install -y -q man
- git clone --depth=1 https://salsa.debian.org/debian/libidn2.git debian-libidn2
- for c in debian-libidn2/debian/tests/*; do if test -x $c; then $c; echo rc $c is $?; fi; done
B-armcross:
image: $CI_REGISTRY/libidn/build-images:libidn2-Debian12
stage: build
before_script:
- apt-get update -q -y
- apt-get install -y -q gcc-arm-linux-gnueabi qemu-user qemu-user-binfmt file binfmt-support
- update-binfmts --enable qemu-arm
script:
- ./bootstrap --skip-po
- ./configure --enable-gcc-warnings=error --disable-doc
- make -j$(nproc) -k V=1
- ./configure --enable-gcc-warnings=error --disable-doc --host=arm-linux-gnueabi CFLAGS="-static --static"
- make -j$(nproc) -k V=1
- file src/idn2
- LANG=C.UTF-8 qemu-arm src/idn2 --debug foo
- LANG=C.UTF-8 src/idn2 --debug räksmörgås
- LANG=C.UTF-8 make -j$(nproc) -k check VERBOSE=t
B-Fedora41:
stage: build
image: fedora:41
before_script:
- time dnf install -y wget make gcc git autoconf automake libtool gettext-devel glibc-gconv-extra patch gperf libunistring-devel valgrind gengetopt help2man texinfo texinfo-tex texlive gtk-doc dblatex libabigail
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --no-git
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) syntax-check
- time make -j$(nproc) check
- time make -j$(nproc) distcheck V=1 VERBOSE=t
- !reference [.save-artifacts, script]
# https://releases.llvm.org/13.0.0/tools/clang/docs/AddressSanitizer.html
# https://releases.llvm.org/13.0.0/tools/clang/docs/UndefinedBehaviorSanitizer.html
# https://lists.gnu.org/archive/html/bug-gnulib/2022-03/msg00016.html
B-Fedora39-ASAN/UBSan:
stage: build
image: fedora:39
before_script:
- dnf install -y wget make
- dnf install -y git autoconf automake libtool gettext-devel patch gperf
- dnf install -y libunistring-devel valgrind gengetopt help2man
- dnf install -y texinfo gtk-doc
- dnf install -y libabigail
- dnf install -y glibc-gconv-extra clang
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- export CC=clang
- export CFLAGS="-fsanitize=address -g -O0"
- ASAN_OPTIONS=detect_leaks=0 ./configure --disable-doc --disable-gcc-warnings
- ASAN_OPTIONS=detect_leaks=0 make V=1 -j$(nproc) check VERBOSE=t
- make clean
- export CFLAGS="-fsanitize=undefined,integer -fno-sanitize-recover=undefined,integer -g -O0"
- ./configure --disable-doc --disable-gcc-warnings
- make V=1 -C unistring
- make V=1 -C gl
- make V=1 -C lib CFLAGS="$CFLAGS -Wall -Wextra -Werror"
- make V=1 -C examples CFLAGS="$CFLAGS -Wall -Wextra -Werror -Wno-unused-parameter"
- make V=1 -j$(nproc) check VERBOSE=t
B-Fedora39-clang-analyzer:
stage: build
image: fedora:39
before_script:
- dnf install -y wget make gcc
- dnf install -y git autoconf automake libtool gettext-devel patch gperf
- dnf install -y libunistring-devel valgrind gengetopt help2man
- dnf install -y texinfo texinfo-tex texlive gtk-doc dblatex
- dnf install -y libabigail
- dnf install -y glibc-gconv-extra clang-analyzer
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- scan-build ./configure --enable-gtk-doc --enable-gtk-doc-pdf
- make -j$(nproc) -C unistring
- make -j$(nproc) -C gl
- scan-build -o clang-analyzer make -j$(nproc) -C lib
- make
- make web-manual
- make dist
artifacts:
when: on_success
paths:
- doc/reference
- doc/manual
- clang-analyzer
sast:
stage: build
# SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
variables:
SAST_EXCLUDED_PATHS: examples, fuzz, tests, lib/gendata.c, lib/gentr46map.c
include:
- template: Security/SAST.gitlab-ci.yml
# https://www.synopsys.com/blogs/software-security/integrating-coverity-scan-with-gitlab-ci/
Coverity:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
when: never
- if: $CI_COMMIT_REF_PROTECTED == "true"
- if: $LIBIDN2_CI_RUN_COVERITY_JOBS
image: $CI_REGISTRY/libidn/build-images:libidn2-mini-Debian-testing
stage: build
allow_failure: true
before_script:
- apt-get update -q -y
- apt-get install -y -q curl
script:
- test -n "$COVERITY_SCAN_TOKEN" && test -n "$COVERITY_SCAN_PROJECT_NAME"
- curl -o /tmp/cov-analysis-linux64.tgz https://scan.coverity.com/download/linux64
--form project=$COVERITY_SCAN_PROJECT_NAME --form token=$COVERITY_SCAN_TOKEN
- sha1sum /tmp/cov-analysis-linux64.tgz
- tar xfz /tmp/cov-analysis-linux64.tgz
- time ./bootstrap --skip-po
- time ./configure --enable-gcc-warnings=error --disable-doc CFLAGS="-g -Og"
- cov-analysis-linux64-*/bin/cov-build --dir cov-int make check -j$(nproc)
- tar cfz cov-int.tar.gz cov-int
- curl https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME
--form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL
--form file=@cov-int.tar.gz --form version="`git describe --tags`"
--form description="`git describe --tags` / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID"
artifacts:
expire_in: 1 week
paths:
- cov-int/*.txt
# https://docs.gitlab.com/ci/runners/hosted_runners/macos/
B-macOS14Xcode15:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN2_CI_RUN_MACOS_JOBS
stage: build
image: macos-14-xcode-15
tags: [ saas-macos-medium-m1 ]
variables:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_UPGRADE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
WERROR_CFLAGS: "-Wno-error=format-nonliteral"
before_script:
- brew install autoconf automake libtool gengetopt help2man texinfo coreutils
script:
- !reference [.gnulib-fetch, script]
- PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"; export PATH
- time ./bootstrap --no-git --skip-po
- time ./configure --enable-gcc-warnings=error
- make syntax-check
- time make -j$(nproc) check -k V=1 VERBOSE=t
- time make V=1 dist
- !reference [.save-artifacts, script]
B-macOS15Xcode16:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN2_CI_RUN_MACOS_JOBS
stage: build
image: macos-15-xcode-16
tags: [ saas-macos-large-m2pro ]
variables:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_UPGRADE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
WERROR_CFLAGS: "-Wno-error=format-nonliteral"
before_script:
- brew install autoconf automake libtool gengetopt help2man texinfo coreutils
script:
- !reference [.gnulib-fetch, script]
- PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"; export PATH
- time ./bootstrap --no-git --skip-po
- time ./configure --enable-gcc-warnings=error
- make syntax-check
- time make -j$(nproc) check -k V=1 VERBOSE=t
- time make V=1 dist
- !reference [.save-artifacts, script]
macOS13Xcode14:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN2_CI_RUN_MACOS_JOBS
image: macos-13-xcode-14
tags: [ saas-macos-medium-m1 ]
stage: test
needs: [B-Trisquel11]
variables:
WERROR_CFLAGS: "-Wno-error=format-nonliteral"
script:
- tar xfz out/b-trisquel11/*-*.tar.gz
- cd $(tar tfz out/b-trisquel11/*-*.tar.gz | head -n1)
- ./configure --enable-gcc-warnings=error WERROR_CFLAGS="-Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error=attributes -Wno-error=char-subscripts"
- make syntax-check
- time make -j$(nproc) check V=1 VERBOSE=t
OpenBSD:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN2_CI_RUN_OPENBSD_JOBS
tags: [ openbsd ]
needs: [B-Trisquel11]
stage: test
before_script:
- uname -a
- sysctl hw
script:
- gzip -cd out/b-trisquel11/*-*.tar.gz | tar xf -
- cd $(gzip -cd out/b-trisquel11/*-*.tar.gz | tar tf - | head -n1)
- time ./configure --enable-gcc-warnings
- time make check V=1 VERBOSE=t
B-MinGW64:
stage: build
image: $CI_REGISTRY/libidn/build-images:libidn2-Fedora29-MinGW64
before_script:
- mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
- echo ':DOSWin:M::MZ::/usr/bin/wine64:' > /proc/sys/fs/binfmt_misc/register
script:
- ./bootstrap --skip-po
- mingw64-configure --disable-valgrind-tests --disable-doc
- mingw64-make -j$(nproc)
- mingw64-make -j$(nproc) check VERBOSE=t
# https://docs.gitlab.com/ee/ci/runners/saas/windows_saas_runner.html
B-Windows-UCRT64:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN2_CI_RUN_WINDOWS_JOBS
tags: [ saas-windows-medium-amd64 ]
stage: build
variables:
WERROR_CFLAGS: "-Wno-error=format-nonliteral -Wno-error=unused-value"
script: # https://www.msys2.org/docs/ci/#other-systems
- wget.exe -nv -O msys2.exe https://github.com/msys2/msys2-installer/releases/download/nightly-x86_64/msys2-base-x86_64-latest.sfx.exe
- ./msys2.exe -y -oC:\
- Remove-Item msys2.exe
- $env:CHERE_INVOKING = 'yes'
- $env:MSYSTEM = 'UCRT64' # https://www.msys2.org/docs/environments/
- C:\msys64\usr\bin\bash -lc ' '
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- |
C:\msys64\usr\bin\bash -lcx '
time pacman --noconfirm -Syu git autoconf automake libtool make mingw-w64-ucrt-x86_64-gcc python help2man gengetopt gperf patch gettext-devel texinfo
# https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
file configure.ac
git config --global core.autocrlf false
git config --global core.eol lf
git rm -rf --cached . | tail
git reset --hard HEAD
file configure.ac
time ./bootstrap --skip-po
time ./configure --enable-gcc-warnings=error
time make -j$(nproc) V=1 -k check VERBOSE=t'
- C:\msys64\usr\bin\bash -lc 'grep ^PASS tests/test-register.log'
0-compare:
image: alpine:latest
stage: repro
needs: [ B-AlmaLinux8, B-AlmaLinux9, B-RockyLinux8, B-RockyLinux9, B-Trisquel11, B-Ubuntu2204, B-PureOS10, B-Debian11, B-Devuan5, B-Debian12, B-gcc, B-clang, B-Guix, R-Guix, R-Debian12, R-Ubuntu2404, S-Trisquel10, S-Ubuntu2004 ]
script:
- cd out
- sha256sum */*.tar.* */*/*.tar.* | sort | grep -- -src.tar.
- sha256sum */*.tar.* */*/*.tar.* | sort | grep -v -- -src.tar.
- sha256sum */*.tar.* */*/*.tar.* | sort | uniq -c -w64 | sort -rn
- sha256sum */*.tar.* */*/*.tar.* | grep -- -src.tar. | sort | uniq -c -w64 | grep -v '^ 1 '
- sha256sum */*.tar.* */*/*.tar.* | grep -v -- -src.tar. | sort | uniq -c -w64 | grep -v '^ 1 '
# Confirm modern git-archive tarball reproducibility
- cmp b-almalinux8/src/*.tar.gz b-almalinux9/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz b-rockylinux8/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz b-rockylinux9/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz b-debian12/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz b-devuan5/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz r-guix/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz r-debian12/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz r-ubuntu2404/src/*v2.*.tar.gz
# Confirm old git-archive (export-subst but long git describe) tarball reproducibility
- cmp b-trisquel11/src/*.tar.gz b-ubuntu2204/src/*.tar.gz
# Confirm really old git-archive (no export-subst) tarball reproducibility
- cmp b-debian11/src/*.tar.gz b-pureos10/src/*.tar.gz
# Confirm 'make dist' generated tarball reproducibility
- cmp b-almalinux8/*.tar.gz b-rockylinux8/*.tar.gz
- cmp b-almalinux9/*.tar.gz b-rockylinux9/*.tar.gz
- cmp b-pureos10/*.tar.gz b-debian11/*.tar.gz
- cmp b-devuan5/*.tar.gz b-debian12/*.tar.gz
- cmp b-trisquel11/*.tar.gz b-ubuntu2204/*.tar.gz
- cmp b-guix/*.tar.gz r-guix/*.tar.gz
# Confirm 'make dist' from git-archive tarball reproducibility
- cmp s-trisquel10/*.tar.gz s-ubuntu2004/*.tar.gz
artifacts:
expire_in: 2 weeks
when: always
paths:
- ./out/**
R-Guix:
tags: [ saas-linux-medium-amd64 ]
image: registry.gitlab.com/debdistutils/guix/container:extra
stage: repro
needs: []
before_script:
- cp -rL /gnu/store/*profile/etc/* /etc/
- echo 'root:x:0:0:root:/:/bin/sh' > /etc/passwd
- echo 'root:x:0:' > /etc/group
- export HOME=/
- guix describe
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --no-git
- time ./configure
- time make V=1 syntax-check
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) dist V=1 VERBOSE=t
- git status
- git diff --exit-code
- gpg --batch --passphrase '' --quick-gen-key pipeline@example.org
- git checkout -B cibranch
- git config user.email "pipeline@example.org"
- git config user.name "Pipeline Builder"
- git config user.signingkey pipeline@example.org
- |
if test -z "$CI_COMMIT_TAG"; then
sed -i '3i * Noteworthy changes in release ?.? (????-??-??) [?]\n\n** WARNING This release was prepared automatically with no testing.\n' NEWS
git commit -m "Warn about automatic release." NEWS
relver='23.42.17'
reltyp='alpha'
else # maintainer ran release-commit
relver=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\1/p' | head -1)
reltyp=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\2/p' | head -1)
fi
- test -n "$CI_COMMIT_TAG" || make release-commit RELEASE="$relver $reltyp"
- make release RELEASE="$relver $reltyp" V=1 VERBOSE=t AM_DISTCHECK_DVI_TARGET=
- cat -n ~/announce-*
- git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/{src,rel,log}
- find config.h *.log tests/*.log -exec mv -v {} out/$CI_JOB_NAME_SLUG/log \;
- test -n "$CI_COMMIT_TAG" || mv -v *23.42.17* out/$CI_JOB_NAME_SLUG/rel/
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/
- mv -v *.tar.* ~/announce-* out/$CI_JOB_NAME_SLUG/
R-Debian12:
tags: [ saas-linux-medium-amd64 ]
image: debian:12-slim
stage: repro
needs: []
before_script:
- cat /etc/os-release
- time apt-get update -q
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -y -q wget make gcc git autoconf automake libtool gettext autopoint gperf libunistring-dev gengetopt help2man texinfo abi-compliance-checker abigail-tools gtk-doc-tools
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings
- time make syntax-check
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) dist
- sha256sum *.tar.*
- git status
- git diff --exit-code
- time apt-get install -y -q --no-install-recommends gpg gpgv2 gpg-agent
- gpg --batch --passphrase '' --quick-gen-key pipeline@example.org
- git checkout -B cibranch
- git config user.email "pipeline@example.org"
- git config user.name "Pipeline Builder"
- git config user.signingkey pipeline@example.org
- |
if test -z "$CI_COMMIT_TAG"; then
sed -i '3i * Noteworthy changes in release ?.? (????-??-??) [?]\n\n** WARNING This release was prepared automatically with no testing.\n' NEWS
git commit -m "Warn about automatic release." NEWS
relver='23.42.17'
reltyp='alpha'
else # maintainer ran release-commit
relver=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\1/p' | head -1)
reltyp=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\2/p' | head -1)
fi
- test -n "$CI_COMMIT_TAG" || make release-commit RELEASE="$relver $reltyp"
- time make release RELEASE="$relver $reltyp" V=1 VERBOSE=t AM_DISTCHECK_DVI_TARGET=
- cat -n ~/announce-*
- git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/{src,rel,log}
- find config.h *.log tests/*.log -exec mv -v {} out/$CI_JOB_NAME_SLUG/log \;
- test -n "$CI_COMMIT_TAG" || mv -v *23.42.17* out/$CI_JOB_NAME_SLUG/rel/
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/
- mv -v *.tar.* ~/announce-* out/$CI_JOB_NAME_SLUG/
R-Ubuntu2404:
image: ubuntu:24.04
tags: [ saas-linux-medium-amd64 ]
stage: repro
needs: []
before_script:
- cat /etc/os-release
- time apt-get update -q
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -y -q wget make gcc git autoconf automake libtool gettext autopoint gperf libunistring-dev gengetopt indent help2man texinfo abi-compliance-checker abigail-tools gtk-doc-tools
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings
- time make -j$(nproc) syntax-check
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) dist
- sha256sum *.tar.*
- git status
- git diff --exit-code # nothing should change version controlled files
- apt-get install -y -q gpg gpgv
- gpg --batch --passphrase '' --quick-gen-key pipeline@example.org
- git checkout $CI_COMMIT_BRANCH
- git config user.email "pipeline@example.org"
- git config user.name "Pipeline Builder"
- git config user.signingkey pipeline@example.org
- |
if test -z "$CI_COMMIT_TAG"; then
sed -i '3i * Noteworthy changes in release ?.? (????-??-??) [?]\n\n** WARNING This release was prepared automatically with no testing.\n' NEWS
git commit -m "Warn about automatic release." NEWS
relver='23.42.17'
reltyp='alpha'
else # maintainer ran release-commit
relver=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\1/p' | head -1)
reltyp=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\2/p' | head -1)
fi
- test -n "$CI_COMMIT_TAG" || make release-commit RELEASE="$relver $reltyp"
- make release RELEASE="$relver $reltyp" V=1 VERBOSE=t AM_DISTCHECK_DVI_TARGET=
- cat -n ~/announce-*
- git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/{src,rel,log}
- find config.h *.log tests/*.log -exec mv -v {} out/$CI_JOB_NAME_SLUG/log \;
- test -n "$CI_COMMIT_TAG" || mv -v *23.42.17* out/$CI_JOB_NAME_SLUG/rel/
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/
- mv -v *.tar.* ~/announce-* out/$CI_JOB_NAME_SLUG/
S-Trisquel10:
tags: [ saas-linux-medium-amd64 ]
image: docker.io/kpengboy/trisquel:10.0
stage: repro
needs: [B-Trisquel11]
before_script:
- cat /etc/os-release
- sed -i 's,http://archive.trisquel.info/trisquel,http://ftp.acc.umu.se/mirror/trisquel/packages,' /etc/apt/sources.list
- time apt-get update -q
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -y -q wget make gcc git autoconf automake libtool autopoint gettext gperf libunistring-dev gengetopt help2man texinfo abi-compliance-checker abigail-tools
script:
- mkdir -pv ../b
- cd ../b
- tar xfz ../*/out/b-trisquel11/src/*-*.tar.gz
- cd $(tar tfa ../*/out/b-trisquel11/src/*-*.tar.gz | head -n1)
- !reference [.gnulib-fetch, script]
- time ./bootstrap --no-git
- time ./configure
- grep '^VERSION = ' Makefile | grep -v UNKNOWN
- time make -j$(nproc) check V=1 VERBOSE=t
- src/idn2 --version | head -1 | grep -v UNKNOWN
- time make -j$(nproc) dist AM_DISTCHECK_DVI_TARGET=
- sha256sum *.tar.*
- mkdir -pv $CI_PROJECT_DIR/out/$CI_JOB_NAME_SLUG/{src,log}
- find config.h *.log tests/*.log -exec mv -v {} $CI_PROJECT_DIR/out/$CI_JOB_NAME_SLUG/log \;
- mv -v *.tar.* $CI_PROJECT_DIR/out/$CI_JOB_NAME_SLUG/
S-Ubuntu2004:
tags: [ saas-linux-medium-amd64 ]
image: ubuntu:20.04
stage: repro
needs: [B-Trisquel11]
variables:
DEBIAN_FRONTEND: noninteractive
before_script:
- cat /etc/os-release
- time apt-get update -q
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -y -q wget make gcc git autoconf automake libtool autopoint gettext gperf libunistring-dev gengetopt help2man texinfo abi-compliance-checker abigail-tools
script:
- tar xfz out/b-trisquel11/src/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/src/*-*.tar.gz | head -n1)
- !reference [.gnulib-fetch, script]
- time ./bootstrap --no-git
- time ./configure
- grep '^VERSION = ' Makefile | grep -v UNKNOWN
- time make -j$(nproc) check V=1 VERBOSE=t
- src/idn2 --version | head -1 | grep -v UNKNOWN
- time make -j$(nproc) dist AM_DISTCHECK_DVI_TARGET=
- sha256sum *.tar.*
- mkdir -pv ../out/$CI_JOB_NAME_SLUG/{src,log}
- find config.h *.log tests/*.log -exec mv -v {} ../out/$CI_JOB_NAME_SLUG/log \;
- mv -v *.tar.* ../out/$CI_JOB_NAME_SLUG/
Windows-MSYS:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN2_CI_RUN_WINDOWS_JOBS
tags: [ saas-windows-medium-amd64 ]
stage: test
needs: [B-Trisquel11]
variables:
WERROR_CFLAGS: "-Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error=attributes -Wno-error=char-subscripts"
script: # https://www.msys2.org/docs/ci/#other-systems
- wget.exe -nv -O msys2.exe https://github.com/msys2/msys2-installer/releases/download/nightly-x86_64/msys2-base-x86_64-latest.sfx.exe
- ./msys2.exe -y -oC:\
- Remove-Item msys2.exe
- $env:CHERE_INVOKING = 'yes'
- $env:MSYSTEM = 'MSYS' # https://www.msys2.org/docs/environments/
- C:\msys64\usr\bin\bash -lc ' '
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- |
C:\msys64\usr\bin\bash -lcx '
time pacman --noconfirm -Syu make gcc libiconv-devel
tar xfa out/b-trisquel11/*-*.tar.gz
cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
time ./configure --enable-gcc-warnings=error
time make -j$(nproc) V=1 -k check VERBOSE=t'
- C:\msys64\usr\bin\bash -lc 'grep ^PASS */tests/test-register.log'
Windows-MINGW64:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN2_CI_RUN_WINDOWS_JOBS
tags: [ saas-windows-medium-amd64 ]
stage: test
needs: [B-Trisquel11]
variables:
WERROR_CFLAGS: "-Wno-error=format-nonliteral -Wno-error=unused-value"
script: # https://www.msys2.org/docs/ci/#other-systems
- wget.exe -nv -O msys2.exe https://github.com/msys2/msys2-installer/releases/download/nightly-x86_64/msys2-base-x86_64-latest.sfx.exe
- ./msys2.exe -y -oC:\
- Remove-Item msys2.exe
- $env:CHERE_INVOKING = 'yes'
- $env:MSYSTEM = 'MINGW64' # https://www.msys2.org/docs/environments/
- C:\msys64\usr\bin\bash -lc ' '
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- |
C:\msys64\usr\bin\bash -lcx '
time pacman --noconfirm -Syu make mingw-w64-x86_64-gcc
tar xfa out/b-trisquel11/*-*.tar.gz
cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
time ./configure --enable-gcc-warnings=error
time make -j$(nproc) V=1 -k check VERBOSE=t'
- C:\msys64\usr\bin\bash -lc 'grep ^PASS */tests/test-register.log'
Debian5:
image: debian/eol:lenny
stage: test
needs: [B-Trisquel11]
before_script:
- apt-get update
- apt-get install -y -q make gcc locales-all
script:
- tar xfz out/b-trisquel11/*-*.tar.gz
- cd $(tar tfz out/b-trisquel11/*-*.tar.gz | head -n1)
- ./configure --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
Debian9:
image: debian:stretch
stage: test
needs: [B-Trisquel11]
before_script:
- sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list
- apt-get update || true
- apt-get install -y -q make gcc
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- mkdir b
- cd b
- ../configure --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
Debian10:
image: debian:buster
stage: test
needs: [B-Trisquel11]
before_script:
- apt-get update
- apt-get install -y -q make gcc
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- mkdir b
- cd b
- ../configure --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
Debian-testing:
image: debian:testing
stage: test
needs: [B-Trisquel11]
before_script:
- apt-get update
- apt-get install -y -q make gcc
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- mkdir b
- cd b
- ../configure --enable-gcc-warnings=error
- grep am_cv_func_iconv_summary config.log
- cd ..
- apt-get install -y -q autoconf autopoint libtool gtk-doc-tools
- AUTOPOINT=true autoreconf -fvi
- ./configure --enable-gcc-warnings=error
- grep am_cv_func_iconv_summary config.log
- make -j$(nproc) -k check V=1 VERBOSE=t
Alpine:
image: alpine:latest
stage: test
needs: [B-Trisquel11]
before_script:
- echo "ipv6" >> /etc/modules
- apk update
- apk add build-base
variables:
WERROR_CFLAGS: "-Wno-error=unused-value -Wno-error=format-nonliteral"
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- ./configure --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
ArchLinux:
image: archlinux:latest
stage: test
needs: [B-Trisquel11]
before_script:
- pacman -Syu --noconfirm make gcc diffutils
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- mkdir b
- cd b
- ../configure --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
OracleLinux7:
image: oraclelinux:7
stage: test
needs: [B-Trisquel11]
before_script:
- yum -y install make gcc diffutils valgrind libunistring-devel
script:
- tar xfz out/b-trisquel11/*-*.tar.gz
- cd $(tar tfz out/b-trisquel11/*-*.tar.gz | head -n1)
- ./configure --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
AlmaLinux8:
image: almalinux:8
stage: test
needs: [B-Trisquel11]
before_script:
- time dnf --enablerepo=powertools -y install make gcc diffutils valgrind libunistring-devel
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- ./configure --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
RockyLinux9-ppc64:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN2_CI_RUN_PPC64_JOBS
image: rockylinux:9
tags: [ ppc64 ]
stage: test
needs: [B-Trisquel11]
before_script:
- time dnf --enablerepo=crb -y install make gcc diffutils valgrind libunistring-devel
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
Ubuntu14.04:
image: ubuntu:14.04
stage: test
needs: [B-Trisquel11]
before_script:
- apt-get update -q
- apt-get install -y -q make gcc
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- ./configure --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
Trisquel11:
image: kpengboy/trisquel:11.0
stage: test
needs: [B-Trisquel11]
before_script:
- apt-get update -q
- apt-get install -y -q make gcc
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- ./configure --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
Ubuntu-rolling:
image: ubuntu:rolling
stage: test
needs: [B-Trisquel11]
before_script:
- apt-get update -q
- apt-get install -y -q git make gcc gtk-doc-tools texinfo texlive texlive-plain-generic dblatex
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- ./configure --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
- make -j$(nproc) -k distcheck
# check if essential files are accidentally cleaned
- make clean
- make -j$(nproc) -k
armcross:
image: debian:latest
stage: test
needs: [B-Trisquel11]
before_script:
- dpkg --add-architecture armel
- apt-get update -q
- apt-get install -y -q make gcc-arm-linux-gnueabi libstdc++6:armel
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- mkdir b
- cd b
- ../configure --host=arm-linux-gnueabi --enable-gcc-warnings=error
- make -j$(nproc) -k V=1
- arm-linux-gnueabi-readelf -h lib/.libs/libidn2.so
- arm-linux-gnueabi-readelf -h src/.libs/idn2
- make -j$(nproc) -k check VERBOSE=t
Mingw32:
image: debian:latest
stage: test
needs: [B-Trisquel11]
before_script:
- dpkg --add-architecture i386
- apt-get update -q
- apt-get install -y -q make mingw-w64 wine wine32 libwine libwine:i386 binfmt-support wine-binfmt
- update-binfmts --enable wine
variables:
WERROR_CFLAGS: "-Wno-error=unused-value -Wno-error=format-nonliteral"
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- mkdir b
- cd b
- ../configure --host=i686-w64-mingw32 CC='i686-w64-mingw32-gcc -static-libgcc' --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
Mingw64:
image: debian:latest
stage: test
needs: [B-Trisquel11]
before_script:
- dpkg --add-architecture i386
- apt-get update -q
- apt-get install -y -q make mingw-w64 wine wine32 wine64 binfmt-support wine-binfmt
- update-binfmts --enable wine
variables:
WERROR_CFLAGS: "-Wno-error=unused-value -Wno-error=format-nonliteral"
script:
- tar xfa out/b-trisquel11/*-*.tar.gz
- cd $(tar tfa out/b-trisquel11/*-*.tar.gz | head -n1)
- mkdir b
- cd b
- ../configure --host=x86_64-w64-mingw32 --enable-gcc-warnings=error
- make -j$(nproc) -k check V=1 VERBOSE=t
.pages:
stage: build
needs: ["B-Fedora39-clang-analyzer"]
image: $CI_REGISTRY/libidn/build-images:libidn2-Debian12
before_script:
- apt-get install -y -q lcov
script:
- rm -rf public
- mkdir -p public
- mv clang-analyzer/* public/clang-analyzer
- mv doc/manual public/manual
- mv doc/reference/html public/reference
- mv doc/reference/libidn2.pdf public/reference/
- ./bootstrap --skip-po
- CFLAGS="-g -O0" ./configure --enable-gtk-doc --enable-code-coverage --disable-gcc-warnings
- make -j$(nproc) check VERBOSE=t
- make local-code-coverage-output
- mv Libidn2-*-coverage public/coverage
- make clean
- make
- make -C fuzz check VERBOSE=t
- make code-coverage-capture
- contrib/make-coverage-badge "fuzz-coverage"
- mv Libidn2-*-coverage public/fuzz-coverage
- mv badge.svg public/fuzz-coverage/
artifacts:
when: on_success
paths:
- public
pages:
extends: .pages
only:
- master
pages-test:
extends: .pages
except:
- master
libidn2-v2.3.8/.prev-version 0000664 0000000 0000000 00000000006 14763126736 0015710 0 ustar 00root root 0000000 0000000 2.3.7
libidn2-v2.3.8/.tarball-version-git 0000664 0000000 0000000 00000000007 14763126736 0017137 0 ustar 00root root 0000000 0000000 v2.3.8
libidn2-v2.3.8/.travis.sh 0000775 0000000 0000000 00000001403 14763126736 0015177 0 ustar 00root root 0000000 0000000 #!/bin/bash
set -e
CONFIGURE_OPTIONS=()
export CFLAGS="-O0 -g"
if [[ $TRAVIS_OS_NAME = 'osx' ]]; then
CONFIGURE_OPTIONS+=("")
else
CONFIGURE_OPTIONS+=("--enable-fsanitize-asan --enable-fsanitize-ubsan")
CONFIGURE_OPTIONS+=("--enable-valgrind-tests")
fi
./bootstrap
# On OSX we are unable to find the idn2 dylibs without installing first
# However `make install` on linux systems fail due to insufficient permissions
if [[ $TRAVIS_OS_NAME = 'osx' ]]; then
./configure --disable-doc
make install -j3
make check -j3 || (cat tests/test-suite.log && exit 1)
exit 0
fi
for OPTS in "${CONFIGURE_OPTIONS[@]}"; do
./configure -C $OPTS
make clean check -j3 || (cat tests/test-suite.log && exit 1)
done
DISTCHECK_CONFIGURE_FLAGS=--disable-gtk-doc make distcheck -j3
libidn2-v2.3.8/.travis.yml 0000664 0000000 0000000 00000001007 14763126736 0015363 0 ustar 00root root 0000000 0000000 sudo: required
dist: trusty
language: c
os:
# - linux
- osx
compiler:
- gcc
- clang
git:
depth: 3
matrix:
exclude:
- os: osx
compiler: gcc
cache: ccache
addons:
apt:
packages:
- autoconf
- automake
- autopoint
- libtool
- gettext
- libunistring0
- libc6
- valgrind
- lcov
before_install:
- echo $TRAVIS_OS_NAME
- ./.travis_setup.sh
script: ./.travis.sh
libidn2-v2.3.8/.travis_setup.sh 0000775 0000000 0000000 00000000464 14763126736 0016425 0 ustar 00root root 0000000 0000000 #!/bin/bash
if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then
brew update
brew outdated autoconf || brew upgrade autoconf
brew outdated automake || brew upgrade automake
brew outdated libtool || brew upgrade libtool
brew install gengetopt
brew install gperf
brew install gettext
brew link --force gettext
fi
libidn2-v2.3.8/AUTHORS 0000664 0000000 0000000 00000000324 14763126736 0014323 0 ustar 00root root 0000000 0000000 Original author:
Simon Josefsson
Maintainers (ordered by # of commits):
Simon Josefsson
Tim Rühsen
Nikos Mavrogiannopoulos
libidn2-v2.3.8/CONTRIBUTING.md 0000664 0000000 0000000 00000013051 14763126736 0015505 0 ustar 00root root 0000000 0000000 # Libidn2 CONTRIBUTING -- Information for developers
Copyright (C) 2011-2025 Simon Josefsson
See the end for copying conditions.
This file contains instructions for developers and advanced users.
## Obtaining sources
Download the version controlled sources:
```
$ git clone https://gitlab.com/libidn/libidn2.git
$ cd libidn2
```
## Dependencies
If you wish to build the project from version controlled sources,
rebuild all generated files (e.g., run autoreconf), or modify some
source code files, you will need to have additional tools installed
beyond those mentioned in [DEPENDENCIES.md](DEPENDENCIES.md). None of
the following tools are necessary if you build Libidn2 in the usual
way (i.e., ./configure && make).
* [Automake](https://www.gnu.org/software/automake/)
* [Autoconf](https://www.gnu.org/software/autoconf/)
* [Libtool](https://www.gnu.org/software/libtool/)
* [Gettext](https://www.gnu.org/software/gettext/)
* [Texinfo](https://www.gnu.org/software/texinfo/)
* [Gperf](https://www.gnu.org/software/gperf/)
* [Gengetopt](https://www.gnu.org/software/gengetopt/)
* [help2man](https://www.gnu.org/software/help2man/)
* [Tar](https://www.gnu.org/software/tar/)
* [Gzip](https://www.gnu.org/software/gzip/)
* [Texlive & epsf](https://www.tug.org/texlive/) (for PDF manual)
* [GTK-DOC](https://www.gtk.org/gtk-doc/) (for API manual)
* [Git](https://git-scm.com/)
* [Perl](https://www.cpan.org/)
* [Valgrind](https://valgrind.org/) (optional)
* [abi-compliance-checker](https://github.com/lvc/abi-compliance-checker)
The software is typically distributed with your operating system, and
the instructions for installing them differ. Here are some hints:
APT/DPKG-based distributions:
```
apt-get install make gcc
apt-get install git autoconf automake libtool gettext autopoint gperf
apt-get install libunistring-dev valgrind gengetopt help2man
apt-get install texinfo texlive gtk-doc-tools
apt-get install abi-compliance-checker abigail-tools
```
DNF/RPM-based distributions:
```
dnf install -y make gcc
dnf install -y git autoconf automake libtool gettext-devel patch gperf
dnf install -y libunistring-devel valgrind gengetopt help2man
dnf install -y texinfo texinfo-tex texlive gtk-doc dblatex
dnf install -y libabigail glibc-gconv-extra
```
On macOS with Xcode and Homebrew:
```
brew install autoconf automake libtool gengetopt help2man texinfo
```
## Building the project
Prepare building with
```
$ ./bootstrap
$ ./configure --enable-gtk-doc --enable-gtk-doc-pdf --enable-gcc-warnings --enable-valgrind-tests
```
You may want to use `./bootstrap --gnulib-srcdir=/foo/bar/gnulib' (or
set the `GNULIB_SRCDIR' environment variable) to avoid having to
checkout gnulib every time. Make sure the gnulib directory you point
to is up to date.
Then build the project normally:
```
$ make
$ make check
```
## Test suite:
New functionality should be accompanied by a test case which verifies
the correctness of the new functionality as well as under failure.
The libidn2 test suite is run on "make check".
When adding a new test code, it is better if it builds standalone
outside of the libidn2 build infrastructure, using only public header
files and symbols from installed system libidn2 library (or
libiconv/libunistring). Exceptions to this rule is permitted, to do
white box testing, but there should be sufficient black box coverage
testing of all public APIs through standalone-usable test code. If
your test code does both white box and black box testing, please try
to separate it into two different source code files, so that one of
them can be used by system integrators to test functionality of the
installed library. The CI/CD testing (.gitlab-ci.yml) contains rule
that attempts to confirm this for the known working test codes.
# Continuous Integration
The project is built auomatically on every git commit using GitLab
CI/CD, see the file `.gitlab-ci.yml` for rules and [current libidn2
pipeline](https://gitlab.com/libidn/libidn2/-/pipelines).
# Submitting patches
When submitting patches it is recommended to open a new merge request
[on the gitlab site](https://gitlab.com/libidn/libidn2), to force the
changes to pass the automated test suite.
# Cross-compiling
It is possible to cross-compile libidn2. It is expected that your
cross compiler toolchain have a specific prefix to the target host.
For example compiling for Windows with mingw64 (with prefix
`i686-w64-mingw32`) can be done the following way:
```
./configure --host=i686-w64-mingw32 && make
```
Note that you must perform a `make` step using your native compiler
after the initial `./bootstrap` and `./configure` to generate some
files. When cross-compiling from version controlled, you thus need to
perform a two-step build. Consider cross-compiling from a tarball
generated using `make dist` too.
## Release process
Read README-release on how to prepare a new release. The file is
generated by running ./bootstrap, see above on building.
Happy hacking!
----------------------------------------------------------------------
This file is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this file. If not, see .
libidn2-v2.3.8/COPYING 0000664 0000000 0000000 00000104515 14763126736 0014315 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
libidn2-v2.3.8/COPYING.LESSERv3 0000664 0000000 0000000 00000016744 14763126736 0015570 0 ustar 00root root 0000000 0000000 GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
libidn2-v2.3.8/COPYING.unicode 0000664 0000000 0000000 00000021116 14763126736 0015735 0 ustar 00root root 0000000 0000000 A. Unicode Copyright.
Copyright © 1991-2016 Unicode, Inc. All rights reserved.
Certain documents and files on this website contain a legend indicating that "Modification is permitted." Any person is hereby authorized, without fee, to modify such documents and files to create derivative works conforming to the Unicode® Standard, subject to Terms and Conditions herein.
Any person is hereby authorized, without fee, to view, use, reproduce, and distribute all documents and files solely for informational purposes and in the creation of products supporting the Unicode Standard, subject to the Terms and Conditions herein.
Further specifications of rights and restrictions pertaining to the use of the particular set of data files known as the "Unicode Character Database" can be found in the License.
Each version of the Unicode Standard has further specifications of rights and restrictions of use. For the book editions (Unicode 5.0 and earlier), these are found on the back of the title page. The online code charts carry specific restrictions. All other files, including online documentation of the core specification for Unicode 6.0 and later, are covered under these general Terms of Use.
No license is granted to "mirror" the Unicode website where a fee is charged for access to the "mirror" site.
Modification is not permitted with respect to this document. All copies of this document must be verbatim.
B. Restricted Rights Legend.
Any technical data or software which is licensed to the United States of America, its agencies and/or instrumentalities under this Agreement is commercial technical data or commercial computer software developed exclusively at private expense as defined in FAR 2.101, or DFARS 252.227-7014 (June 1995), as applicable. For technical data, use, duplication, or disclosure by the Government is subject to restrictions as set forth in DFARS 202.227-7015 Technical Data, Commercial and Items (Nov 1995) and this Agreement. For Software, in accordance with FAR 12-212 or DFARS 227-7202, as applicable, use, duplication or disclosure by the Government is subject to the restrictions set forth in this Agreement.
C. Warranties and Disclaimers.
This publication and/or website may include technical or typographical errors or other inaccuracies . Changes are periodically added to the information herein; these changes will be incorporated in new editions of the publication and/or website. Unicode may make improvements and/or changes in the product(s) and/or program(s) described in this publication and/or website at any time.
If this file has been purchased on magnetic or optical media from Unicode, Inc. the sole and exclusive remedy for any claim will be exchange of the defective media within ninety (90) days of original purchase.
EXCEPT AS PROVIDED IN SECTION C.2, THIS PUBLICATION AND/OR SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. UNICODE AND ITS LICENSORS ASSUME NO RESPONSIBILITY FOR ERRORS OR OMISSIONS IN THIS PUBLICATION AND/OR SOFTWARE OR OTHER DOCUMENTS WHICH ARE REFERENCED BY OR LINKED TO THIS PUBLICATION OR THE UNICODE WEBSITE.
D. Waiver of Damages.
In no event shall Unicode or its licensors be liable for any special, incidental, indirect or consequential damages of any kind, or any damages whatsoever, whether or not Unicode was advised of the possibility of the damage, including, without limitation, those resulting from the following: loss of use, data or profits, in connection with the use, modification or distribution of this information or its derivatives.
E. Trademarks & Logos.
The Unicode Word Mark and the Unicode Logo are trademarks of Unicode, Inc. “The Unicode Consortium” and “Unicode, Inc.” are trade names of Unicode, Inc. Use of the information and materials found on this website indicates your acknowledgement of Unicode, Inc.’s exclusive worldwide rights in the Unicode Word Mark, the Unicode Logo, and the Unicode trade names.
The Unicode Consortium Name and Trademark Usage Policy (“Trademark Policy”) are incorporated herein by reference and you agree to abide by the provisions of the Trademark Policy, which may be changed from time to time in the sole discretion of Unicode, Inc.
All third party trademarks referenced herein are the property of their respective owners.
F. Miscellaneous.
Jurisdiction and Venue. This server is operated from a location in the State of California, United States of America. Unicode makes no representation that the materials are appropriate for use in other locations. If you access this server from other locations, you are responsible for compliance with local laws. This Agreement, all use of this site and any claims and damages resulting from use of this site are governed solely by the laws of the State of California without regard to any principles which would apply the laws of a different jurisdiction. The user agrees that any disputes regarding this site shall be resolved solely in the courts located in Santa Clara County, California. The user agrees said courts have personal jurisdiction and agree to waive any right to transfer the dispute to any other forum.
Modification by Unicode Unicode shall have the right to modify this Agreement at any time by posting it to this site. The user may not assign any part of this Agreement without Unicode’s prior written consent.
Taxes. The user agrees to pay any taxes arising from access to this website or use of the information herein, except for those based on Unicode’s net income.
Severability. If any provision of this Agreement is declared invalid or unenforceable, the remaining provisions of this Agreement shall remain in effect.
Entire Agreement. This Agreement constitutes the entire agreement between the parties.
EXHIBIT 1
Unicode Data Files include all data files under the directories
http://www.unicode.org/Public/, http://www.unicode.org/reports/,
http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/, and
http://www.unicode.org/utility/trac/browser/.
Unicode Data Files do not include PDF online code charts under the
directory http://www.unicode.org/Public/.
Software includes any source code published in the Unicode Standard
or under the directories
http://www.unicode.org/Public/, http://www.unicode.org/reports/,
http://www.unicode.org/cldr/data/, http://source.icu-project.org/repos/icu/, and
http://www.unicode.org/utility/trac/browser/.
NOTICE TO USER: Carefully read the following legal agreement.
BY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S
DATA FILES ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"),
YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
TERMS AND CONDITIONS OF THIS AGREEMENT.
IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE
THE DATA FILES OR SOFTWARE.
COPYRIGHT AND PERMISSION NOTICE
Copyright © 1991-2016 Unicode, Inc. All rights reserved.
Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Unicode data files and any associated documentation
(the "Data Files") or Unicode software and any associated documentation
(the "Software") to deal in the Data Files or Software
without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, and/or sell copies of
the Data Files or Software, and to permit persons to whom the Data Files
or Software are furnished to do so, provided that either
(a) this copyright and permission notice appear with all copies
of the Data Files or Software, or
(b) this copyright and permission notice appear in associated
Documentation.
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT OF THIRD PARTY RIGHTS.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS
NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THE DATA FILES OR SOFTWARE.
Except as contained in this notice, the name of a copyright holder
shall not be used in advertising or otherwise to promote the sale,
use or other dealings in these Data Files or Software without prior
written authorization of the copyright holder.
libidn2-v2.3.8/COPYINGv2 0000664 0000000 0000000 00000043100 14763126736 0014555 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, see .
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
, 1 April 1989
Moe Ghoul, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
libidn2-v2.3.8/DEPENDENCIES.md 0000664 0000000 0000000 00000010317 14763126736 0015426 0 ustar 00root root 0000000 0000000 # Libidn2 DEPENDENCIES -- Related packages
The following packages should be installed before GNU Libidn2 is
installed (runtime dependencies that are also build dependencies):
* GNU libiconv
+ Not needed on systems with glibc and on NetBSD.
But recommended on all other systems.
Needed for locale to UTF8 string conversions.
+ Homepage:
https://www.gnu.org/software/libiconv/
+ Download:
https://ftp.gnu.org/gnu/libiconv/
+ Pre-built package name:
- On Debian and Debian-based systems: --,
- On Red Hat distributions: --.
- Other: https://repology.org/project/libiconv/versions
+ If it is installed in a nonstandard directory, pass the option
--with-libiconv-prefix=DIR to 'configure'.
+ On mingw, a slim alternative is the 'win-iconv' package version 0.0.8
from https://github.com/win-iconv/win-iconv .
* GNU libunistring
+ Optional.
Needed for general Unicode code point string handling.
If not present, a subset of libunistring (included in this package) will
be compiled into libidn2. This increase the size of the library.
+ Homepage:
https://www.gnu.org/software/libunistring/
+ Download:
https://ftp.gnu.org/gnu/libunistring/
+ Pre-built package name:
- On Debian and Debian-based systems: libunistring-dev,
- On Red Hat distributions: libunistring-devel.
- Other: https://repology.org/project/libunistring/versions
+ If it is installed in a nonstandard directory, pass the option
--with-libunistring-prefix=DIR to 'configure'.
+ If you want to use the subset of libunistring included in this package
rather than a preinstalled libunistring, pass the option
--with-included-libunistring to 'configure'.
* libintl, part of GNU gettext
+ Not needed on systems with glibc.
But recommended on all other systems.
Needed for localization of messages.
+ Homepage:
https://www.gnu.org/software/gettext/
+ Download:
https://ftp.gnu.org/gnu/gettext/
+ Pre-built package name:
- On Debian and Debian-based systems: --,
- On Red Hat distributions: --.
- Other: https://repology.org/project/gettext/versions
+ If it is installed in a nonstandard directory, pass the option
--with-libintl-prefix=DIR to 'configure'.
The following packages should be installed when GNU libidn2 is installed
(runtime dependencies, but not build dependencies):
* The Gnulib localizations.
+ Recommended.
Needed for localization of some of the programs to the user's language.
+ Documentation:
https://www.gnu.org/software/gnulib/manual/html_node/Localization.html
+ Download:
https://ftp.gnu.org/gnu/gnulib/gnulib-l10n-*
The following should be installed when GNU libidn2 is built, but are not
needed later, once it is installed (build dependencies, but not runtime
dependencies):
* A C runtime, compiler, linker, etc.
+ Mandatory.
Either the platform's native 'cc', or GCC.
+ GCC Homepage:
https://www.gnu.org/software/gcc/
+ Download:
https://ftp.gnu.org/gnu/gcc/
* A POSIX-like 'make' utility.
+ Mandatory.
Either the platform's native 'make' (for in-tree builds only),
or GNU Make 3.79.1 or newer.
+ GNU Make Homepage:
https://www.gnu.org/software/make/
+ Download:
https://ftp.gnu.org/gnu/make/
* A POSIX-like shell
+ Mandatory.
Either the platform's native 'sh', or Bash.
+ Homepage:
https://www.gnu.org/software/bash/
+ Download:
https://ftp.gnu.org/gnu/bash/
* Core POSIX utilities, including:
[ basename cat chgrp chmod chown cp dd echo expand expr
false hostname install kill ln ls md5sum mkdir mkfifo
mknod mv printenv pwd rm rmdir sleep sort tee test touch
true uname
+ Mandatory.
Either the platform's native utilities, or GNU coreutils.
+ Homepage:
https://www.gnu.org/software/coreutils/
+ Download:
https://ftp.gnu.org/gnu/coreutils/
* The comparison utilities 'cmp' and 'diff'.
+ Mandatory.
Either the platform's native utilities, or GNU diffutils.
+ Homepage:
https://www.gnu.org/software/diffutils/
+ Download:
https://ftp.gnu.org/gnu/diffutils/
* Grep.
+ Mandatory.
Either the platform's native grep, or GNU grep.
+ Homepage:
https://www.gnu.org/software/grep/
+ Download:
https://ftp.gnu.org/gnu/grep/
libidn2-v2.3.8/Makefile.am 0000664 0000000 0000000 00000015203 14763126736 0015311 0 ustar 00root root 0000000 0000000 # Copyright (C) 2011-2025 Simon Josefsson
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
SUBDIRS = gl unistring lib src examples fuzz po
if ENABLE_DOC
SUBDIRS += doc
endif
SUBDIRS += tests
EXTRA_DIST = cfg.mk maint.mk CONTRIBUTING.md DEPENDENCIES.md README.md
EXTRA_DIST += COPYING COPYING.LESSERv3 COPYING.unicode COPYINGv2
check-valgrind:
$(MAKE) check LOG_COMPILER="valgrind --error-exitcode=301 --leak-check=yes --show-reachable=yes --track-origins=yes --suppressions=suppressions.valgrind"
clean-local:
rm -rf */*.gc?? */*/*.gc??
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libidn2.pc
include $(top_srcdir)/aminclude_static.am
local-code-coverage-output: code-coverage-capture
@cat $(PACKAGE_NAME)-$(VERSION)-coverage/index.html|grep headerCovTableEntryHi|head -1|sed 's/^.*>\([0-9]\+\.[0-9]\+\s*%\)<.*$$/ coverage lines: \1/' || true
ABIDW_COMMON = --no-show-locs --no-corpus-path
LIBIDN2_ABI_LAST_FILE = "$(top_srcdir)/contrib/libidn2-latest-$$(uname -m).abi"
ABIGNORE_FILE = "$(top_srcdir)/contrib/libidn2.abignore"
abi-dump-versioned: lib/libidn2.la
@echo "*************************************************"
@echo "Generating versioned ABI files of current libidn2"
@echo "*************************************************"
@abidw lib/.libs/libidn2.so $(ABIDW_COMMON) --suppressions $(ABIGNORE_FILE) --out-file "$(srcdir)/contrib/libidn2-$(VERSION)-$$(uname -m).abi"
abi-dump-latest: lib/libidn2.la
@echo "***************************************"
@echo "Generating ABI files of current libidn2"
@echo "***************************************"
@abidw lib/.libs/libidn2.so $(ABIDW_COMMON) --suppressions $(ABIGNORE_FILE) --out-file $(LIBIDN2_ABI_LAST_FILE)
@rm -f "./contrib/libidn2-latest-$$(uname -m).tmp"
abi-check-latest: lib/libidn2.la
@echo "Checking whether the latest ABI dump matches"
@abidiff --suppressions $(ABIGNORE_FILE) lib/.libs/libidn2.so $(LIBIDN2_ABI_LAST_FILE); if test $$? != 0;then \
echo "*****************************************************"; \
echo "libidn2 ABI has changed; use 'make abi-dump-latest' "; \
echo "and use 'git diff' to check correctness before commit"; \
echo "*****************************************************"; \
exit 1; \
fi
@echo "********************************"
@echo "Current release matches ABI dump"
@echo "********************************"
# Checks the ABI stability between current git version and the previous tagged release.
ABICHECK_COMMON = --no-added-syms
.PHONY: abi-check
abi-check: lib/libidn2.la
@for file in $$(eval echo $(srcdir)/contrib/libidn2-*-$$(uname -m).abi);do \
echo "Comparing libidn2 with $$file"; \
abidiff $${file} lib/.libs/libidn2.so --suppressions $(ABIGNORE_FILE) $(ABICHECK_COMMON) --hd2 "$(srcdir)/lib/idn2.h"; \
if test $$? != 0;then \
echo "****************************************************************************"; \
echo "ABI check failed; If intentional add suppression in contrib/libidn2.abignore"; \
echo "****************************************************************************"; \
exit 1; \
fi; \
done
@echo "********************"
@echo "ABI checks completed"
@echo "********************"
# version-stamp
EXTRA_DIST += $(top_srcdir)/.version
BUILT_SOURCES = $(top_srcdir)/.version
# git-version-gen
dist-hook: dist-tarball-version
.PHONY: dist-tarball-version
dist-tarball-version:
echo '$(VERSION)' > $(distdir)/.tarball-version
dist-hook: maybe-abi-check
.PHONY: maybe-abi-check
maybe-abi-check:
if command -v abidiff > /dev/null && \
test -d "$(top_srcdir)/contrib"; then \
$(MAKE) -C $(top_builddir) abi-check-latest; \
fi
dist-hook: po-CreationDate-to-mtime-NEWS
.PHONY: po-CreationDate-to-mtime-NEWS
po-CreationDate-to-mtime-NEWS: mtime-NEWS-to-git-HEAD
$(AM_V_GEN)for p in $(distdir)/po/*.po $(distdir)/po/$(PACKAGE).pot; do \
if test -f "$$p"; then \
$(SED) -e 's,POT-Creation-Date: .*\\n",POT-Creation-Date: '"$$(env LC_ALL=C TZ=UTC0 stat --format=%y $(srcdir)/NEWS | cut -c1-16,31-)"'\\n",' < $$p > $$p.tmp && \
if cmp $$p $$p.tmp > /dev/null; then \
rm -f $$p.tmp; \
else \
mv $$p.tmp $$p; \
fi \
fi \
done
dist-hook: srcdist
.PHONY: srcdist
srcdist:
$(AM_V_GEN)if test -e $(srcdir)/.git \
&& command -v git > /dev/null; then \
cd $(srcdir) && \
git archive --prefix=$(PACKAGE)-v$(VERSION)/ \
-o $(abs_builddir)/$(PACKAGE)-v$(VERSION)-src.tar.gz HEAD; \
fi
dist-hook: mtime-NEWS-to-git-HEAD
.PHONY: mtime-NEWS-to-git-HEAD
mtime-NEWS-to-git-HEAD:
$(AM_V_GEN)if test -e $(srcdir)/.git \
&& command -v git > /dev/null; then \
touch -m -t "$$(git log -1 --format=%cd --date=format-local:%Y%m%d%H%M.%S)" $(srcdir)/NEWS; \
fi
dist-hook: texi-stamps-to-mtime-NEWS
.PHONY: texi-stamps-to-mtime-NEWS
texi-stamps-to-mtime-NEWS: mtime-NEWS-to-git-HEAD
$(AM_V_GEN)touch -m -r $(srcdir)/NEWS $(srcdir)/doc/$(PACKAGE).texi
dist-hook: gen-ChangeLog
.PHONY: gen-ChangeLog
gen-ChangeLog:
$(AM_V_GEN)if test -e $(srcdir)/.git; then \
LC_ALL=en_US.UTF-8 TZ=UTC0 \
$(top_srcdir)/build-aux/gitlog-to-changelog \
--srcdir=$(srcdir) -- \
v$(PREV_VERSION)~.. > $(distdir)/cl-t && \
{ printf '\n\nSee the source repo for older entries\n' \
>> $(distdir)/cl-t && \
rm -f $(distdir)/ChangeLog && \
mv $(distdir)/cl-t $(distdir)/ChangeLog; } \
fi
LCOV_INFO=libidn2.info
fuzz-coverage: clean
$(MAKE) -C gl CFLAGS="$(CFLAGS) --coverage" LDFLAGS="$(LDFLAGS) --coverage"
$(MAKE) -C unistring CFLAGS="$(CFLAGS) --coverage" LDFLAGS="$(LDFLAGS) --coverage"
$(MAKE) -C lib CFLAGS="$(CFLAGS) --coverage" LDFLAGS="$(LDFLAGS) --coverage"
$(MAKE) -C fuzz check CFLAGS="$(CFLAGS) --coverage" LDFLAGS="$(LDFLAGS) --coverage"
lcov --capture --initial --directory lib --directory fuzz --output-file $(LCOV_INFO)
lcov --capture --directory lib --directory fuzz --output-file $(LCOV_INFO)
# lcov --remove $(LCOV_INFO) '*/test_linking.c' '*/css_tokenizer.lex' '*/' -o $(LCOV_INFO)
genhtml --prefix . --ignore-errors source $(LCOV_INFO) --legend --title "fuzz coverage" --output-directory=lcov
@echo
@echo "You can now view the coverage report with 'xdg-open lcov/index.html'"
libidn2-v2.3.8/NEWS 0000664 0000000 0000000 00000045170 14763126736 0013762 0 ustar 00root root 0000000 0000000 Libidn2 NEWS -- History of user-visible changes. -*- outline -*-
* Noteworthy changes in release 2.3.8 (2025-03-08) [stable]
** Unicode 15.1.0 table updates.
Now U+19DA is DISALLOWED again (see version 2.3.4 release notes).
** The release tarball is now reproducible.
** We publish a minimal source-only tarball generated by 'git archive'.
** The release tarball uses tar --format=ustar.
** The idn2 tool now binds the "gnulib" domain for translations.
** Update gnulib files and various build/maintenance fixes.
* Noteworthy changes in release 2.3.7 (2024-01-27) [stable]
** Really include tests/standalone.sh in tarball.
* Noteworthy changes in release 2.3.6 (2024-01-27) [stable]
** Bump libtool version numbers to reflect API/ABI addition.
** Include tests/standalone.sh in tarball.
* Noteworthy changes in release 2.3.5 (2024-01-27) [stable]
** Declaration of future API/ABI backwards compatibility stability.
GNU libc dlopen libidn2 and use the name libidn2.so.0 for this. We
believe that it will be too challenging to ever do hard ABI break that
for normal libraries is justified to remove deprecated APIs. Thus we
decided that we will support the current ABI for a long time. Of
course, if really convincing arguments for doing a ABI break appears
in the future we may re-consider, but take this as a declaration of
intent of will and that future ABI breaks should be discussed and
co-ordinated with the glibc team first.
** Add public APIs for raw Punycode encoding/decoding.
Normal applications rarely need this, but it cleans up the code and
allow for external testing of the APIs, and resolve
due to earlier use of
weak symbols for internal symbols _idn2_punycode_encode and
_idn2_punycode_decode. We will support these internal symbols for
backwards compatibility. This allows a clean migration path for code
that is still using the internal names.
** Bump required gettext version to 0.19.8 for musl-libc.
Reported by Helmut Grohne in
.
** Un-deprecate idn2_to_ascii_4i and make it NUL terminate output.
The API idn2_to_ascii_4i was deprecated in version 2.1.1 released in
2019-02-08. In that release, the API was also modified to not
NUL-terminate the output. That is contrary to the old libidn2
behaviour, the behaviour of libidn's API idna_to_ascii_4i, and the API
documentation for the function. Since we are not likely to ever break
backwards API/ABI compatibility in libidn2, and the deprecated gaurds
leads to some trouble (see report in
) we decided to
un-deprecate this function, as supporting it is not costly and the
majority of code that cares about conformance has likely been
modified. This will fix the error code and NUL termination report by
Yegor Bychin in . We
still encourage you to use the replacement API/ABI idn2_to_ascii_4i2
instead, when appropriate.
** Compiler warning improvements.
As before, compiler warnings are enabled by default. You may disable
them using ./configure --disable-gcc-warnings or turn them into fatal
errors using ./configure --enable-gcc-warnings=error to add -Werror
and sensible -Wno-error='s. Based on gnulib's manywarnings, see
.
** tests: Added script tests/standalone.sh suitable for integrators.
The main purpose is to test a system-installed libidn2 library and
idn2 tool, suitable for distributor checking (a'la Debian's
autopkgtest/debci). It may also be used to test a newly built libidn2
outside the usual 'make check' infrastructure. To check that your
system libidn2 library and idn2 tool is working, invoke the script
with `srcdir` as an environment variable indicating where it can be
find the source code for libidn2's tests/ directory (it will use the
directory name where the script is by default):
tests/standalone.sh
If your system libidn2 is too old to pass certain tests, disable them
using STANDALONE_DISABLE like this:
STANDALONE_DISABLE='*punycode*' tests/standalone.sh
See the script for more parameters. If the libidn2 under testing is
too old and has known bugs, that should cause tests to fail, which is
intentional.
** Various minor build fixes and translation updates.
** API and ABI is backwards compatible with the previous version.
idn2_punycode_decode: ADD.
idn2_punycode_encode: ADD.
* Noteworthy changes in release 2.3.4 (2022-10-23) [stable]
** Support for Unicode 15.0.0. Closes: #112.
We now uses Unicode.org's IDNA2008 tables rather than IANA's. See
and
for rationale, which can be summarized into 1) IANA are still on
2019-era Unicode version 12 and we wish to support Unicode version
12-15, 2) consistency with some other implementations, 3) the only
incompatibility related to U+19DA is deemed to have minor real-world
consequences. Thus we break backwards compatibility for U+19DA in
this release compared against libidn2 0.11..2.3.3 thus reverting back
to the libidn2 <= 0.11 behaviour. We decided to not bump ABI version
and believe this is the best choice going forward as well for minor
internal non-API related ABI changes.
** Gnulib updated and now libunistring-optional is used.
This allows you to force libidn2 to use internal libunistring with the
following command: ./configure --with-included-libunistring
* Noteworthy changes in release 2.3.3 (2022-07-11) [stable]
** Upgrade IDNA Tables from Unicode 11 to 12.
** Upgrade TR46 Tables from Unicode 13 to 14.
** Updated gnulib files and various build fixes.
Gnulib's Unicode code claims conformance to Unicode 14.0.0 rather than
Unicode 9.0.0. A bug in Libidn2's build system was fixed that caused
the system libunistring to be used even though the system version was
too old.
** Self-check improvements.
Self-checks for the idn2 command line tool were added. Closes: #96.
The C self-checks in tests/ should now be usable outside of the
libidn2 build environment, for system integration checks of a
system-installed libidn2.
* Noteworthy changes in release 2.3.2 (2021-07-19) [stable]
** Upgrade TR46 tables from Unicode 11 to Unicode 13.
Now U+32FF works. Fixes
.
** Fix build errors related to doc/idn2--help.texi.
With older makeinfo, this would manifest itself by looking for
idn2-help.texi instead. Further, some BSD grep implementations did
not like the \+ regexp command, so we now rely on the (apparently)
more portable * regexp command. Reported-By: David Gessel. See
.
** doc: Improve GTK-DOC manual.
** doc: Don't ship HTML/PDF manual. Drop custom CSS stylesheet.
* Noteworthy changes in release 2.3.1 (2021-05-12) [stable]
** Implement full roundtrip for lookup functionality
With TR64 enabled (default), '☺i' was converted to 'xn-- o-oia59s'.
The output contains an illegal space and thus could not be decoded any
more. Reported-by: Chris Malton. See
and
.
** Fix domain too long error
** doc: idn2.1 and libidn2.texi automatically get idn2 --help output.
** Updated gnulib files and various build fixes.
In particular, it no longer attempts to detect a host CC compiler.
See .
* Noteworthy changes in release 2.3.0 (2019-11-14) [stable]
** Mitre has assigned CVE-2019-12290 which was fixed by
the roundtrip feature introduced in 2.2.0 (commit 241e8f48)
** Update the data tables from Unicode 6.3.0 to Unicode 11.0
** Turn _idn2_punycode_encode, _idn2_punycode_decode
into compat symbols (Fixes #74)
* Noteworthy changes in release 2.2.0 (2019-05-23) [stable]
** Perform A-Label roundtrip for lookup functions by default
** Stricter check of input to punycode decoder
** Fix punycode decoding with no ASCII chars but given delimiter
** Fix 'idn2 --no-tr64' (was a no-op)
** Allow _ as a basic code point in domain labels
** Fail building documentatino if 'ronn' isn't installed
** git tag changed to reflect https://semver.org/
* Noteworthy changes in release 2.1.1 (2019-02-08) [beta]
** Revert SONAME bump from release 2.1.0
** Fix NULL dereference in idn2_register_u8() and idn2_register_ul()
** Fix free of random value in idn2_to_ascii_4i()
** Improved fuzzer (which found the above issues)
** Fix printf() crash in test-lookup.c on Solaris
** Check for valid unicode input in punycode encoder
** Avoid excessive CPU usage in punycode encoding with
large inputs
** Deprecate idn2_to_ascii_4i() in favor of idn2_to_ascii_4i2()
** Restrict output length of idn2_to_ascii_4i() to 63 bytes
* Noteworthy changes in release 2.1.0 (2019-01-04) [beta]
** Two exposed functions are no longer exposed:
_idn2_punycode_encode() and _idn2_punycode_decode() which were
meant to be used internally only. The output needs additional
checks to be used safely.
This is the reason to for the SONAME bump, just in case.
** Fix label length check for idn2_register_u8()
** Remove compiler warnings
** Use gnulib-python tool for bootstrapping if possible
** Improve build system (several small issues)
** Add missing error messages to idn2_strerror_name()
** Improve docs and remove typos
** Update gnulib
* Noteworthy changes in release 2.0.5 (2018-05-18) [beta]
** Switched the default library behavior to IDNA2008 as amended
by TR#46 (non-transitional). That default behavior is enabled when
no flags are specified to function calls. Applications can utilize the
%IDN2_NO_TR46 flag to switch to the unamended IDNA2008. This is done in
the interest of interoperability based on the fact that this is what application
writers care about rather than strict compliance with a particular protocol.
** Fixed memleak in idn2_to_unicode_8zlz().
** Return error (IDN2_ICONV_FAIL) on charset conversion errors.
** Fixed issue with STD3 rules applying in non-transitional
TR46 mode.
** idn2: added option --usestd3asciirules.
* Noteworthy changes in release 2.0.4 (2017-08-30) [beta]
** Fix integer overflow in bidi.c/_isBidi()
** Fix integer overflow in puny_decode.c/decode_digit()
** Improve docs
** Fix idna_free() to idn_free()
** Update fuzzer corpora
* Noteworthy changes in release 2.0.3 (2017-07-24) [beta]
** %IDN2_USE_STD3_ASCII_RULES disabled by default.
Previously we were eliminating non-STD3 characters from domain strings
such as _443._tcp.example.com, or IPs 1.2.3.4/24 provided to libidn2
functions. That was an unexpected regression for applications switching
from libidn and thus it is no longer applied by default.
Use %IDN2_USE_STD3_ASCII_RULES to enable that behavior again.
** Fix several documentation issues
** Fix build issues
** Modernize gtk-doc build infrastructure.
* Noteworthy changes in release 2.0.2 (2017-04-27) [beta]
** Fix TR46 transitional mode
** Fix build issue on OSX
** Fix several documentation issues
* Noteworthy changes in release 2.0.1 (2017-04-22) [beta]
** idn2 utility now using IDNA2008 + TR46 by default
** Several doc fixes
* Noteworthy changes in release 2.0.0 (2017-03-29) [beta]
** Version numbering scheme changed
** Added to ASCII conversion functions corresponding to libidn1 functions:
- idn2_to_ascii_4i
- idn2_to_ascii_4z
- idn2_to_ascii_8z
- idn2_to_ascii_lz
** Added to unicode conversion functions corresponding to libidn1 functions:
- idn2_to_unicode_8z4z
- idn2_to_unicode_4z4z
- idn2_to_unicode_44i
- idn2_to_unicode_8z8z
- idn2_to_unicode_8zlz
- idn2_to_unicode_lzlz
** The idn2 manual page is generated from markdown text instead of utilizing
** help2man on the generated tool.
** Including idn2.h will provide libidn1 compatibility functions
** unless IDN2_SKIP_LIBIDN_COMPAT is defined. That allows converting
** applications from libidn1 (which offers IDNA2003) to libidn2 (which
** offers IDNA2008) by replacing idna.h to idn2.h in the applications'
** source.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.16 (2017-01-16) [alpha]
** build: Fix idn2_cmd.h build rule.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.15 (2017-01-14) [alpha]
** Fix out-of-bounds read.
** Fix NFC input conversion (regression).
** Shrink TR46 static mapping data.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.14 (2016-12-30) [alpha]
** build: Fix gentr46map build.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.13 (2016-12-29) [alpha]
** build: Doesn't download external files during build.
** doc: Clarify license.
** build: Generate ChangeLog file properly.
** doc: API documentation related to TR46 flags.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.12 (2016-12-26) [alpha]
** All changes by Tim Rühsen except stated otherwise.
** Builds/links with libunistring.
** Fix two possible crashes with unchecked NULL pointers.
** Memleak fix.
Reported by Hanno Böck .
** Binary search for codepoints in tables.
** Do not taint output variable on error in idn2_register_u8().
** Do not taint output variable on error in idn2_lookup_u8().
** Update to Unicode 6.3.0 IDNA tables.
** Add TR46 / UTS#46 support to API and idn2 utility.
** Add NFC quick check.
** Add make target 'check-coverage' for test coverage report.
** Add tests to increase test code coverage.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.11 (2016-11-03) [alpha]
** Fix stack underflow in 'idn2' command line tool.
Reported by Hanno Böck .
** Fix gdoc script to fix texinfo syntax error.
** Fix build failure of self-tests on platforms without version scripts.
Reported by Dagobert Michelsen .
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.10 (2014-06-25) [alpha]
** Update gnulib files.
** Dual-license the library.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.9 (2013-07-23) [alpha]
** Fix broken IANA link.
Apparently IANA does not provide persistent URLs to their registries.
** Fix automake bootstrap issue.
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.8 (2011-09-28) [alpha]
** idn2: Fix build warnings.
Reported by Didier Raboud in
.
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.7 (2011-08-11) [alpha]
** libidn2: Fix missing strchrnul and strverscmp uses.
Reported by Ray Satiro .
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6 (2011-05-25) [alpha]
** tests: Use -no-install instead of -static to fix --disable-static.
Reported by Robert Scheck .
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5 (2011-05-18) [alpha]
** Fix NFC check to compare entire strings.
Some non-NFC strings were permitted when they should have been
rejected. Reported by Robert Scheck .
** Self tests are not run under valgrind by default anymore.
Use --enable-valgrind-tests if you want to run self tests under
valgrind. The reason was that there were too many false positives on
some platforms with valgrind issues in system libraries. Self tests
are still run under valgrind by default when building from version
controlled sources.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.4 (2011-05-06) [alpha]
** libidn2: Fix domain name maximum size issue.
Domain names in string representation can be 254 characters long if
they end with a period, or 253 characters long if they don't end with
a period. The code got this wrong and used 255 characters all the
time. The documentation for the IDN2_DOMAIN_MAX_LENGTH constant is
improved. We now pass two more of the IdnaTest.txt test vectors.
Reported by "Abdulrahman I. ALGhadir" and
explanation from Markus Scherer .
** tests: Added several new Arabic test vectors.
From "Abdulrahman I. ALGhadir" .
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.3 (2011-04-20) [alpha]
** doc: Added Texinfo manual.
** doc: Added man pages for all API functions.
** examples: Added examples/lookup and examples/register as demo.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.2 (2011-03-30) [alpha]
** Added command line tool "idn2".
** Added more test vectors from Unicode.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.1 (2011-03-29) [alpha]
** IDNA2008 Lookup+Register functions are now operational.
The implementation is still subject to changes, and thus no API/ABI
stability guarantees are made. We are now inviting comments both on
the API (as before) but also on the actual behaviour. Any unexpected
outputs are from here on considered as real bugs.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.0 (2011-03-09) [alpha]
** Initial draft release for public review of the API.
IDNA2008-Lookup is fully implemented except for 1) the optional
round-trip conversion part, and 2) the context rules are not
implemented. IDNA2008-Register is not yet implemented. The
implementation is known to be sub-optimal and ugly, please review the
interface and ignore the code! Several changes are planned in the
internal implementation.
----------------------------------------------------------------------
Copyright (C) 2011-2025 Simon Josefsson
Copyright (C) 2018-2025 Tim Ruehsen
This file is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this file. If not, see .
libidn2-v2.3.8/README 0000777 0000000 0000000 00000000000 14763126736 0015406 2README.md ustar 00root root 0000000 0000000 libidn2-v2.3.8/README.md 0000664 0000000 0000000 00000010165 14763126736 0014536 0 ustar 00root root 0000000 0000000 # Libidn2 README -- Introduction information
Libidn2 is a free software implementation of IDNA2008, Punycode and
Unicode TR46. Its purpose is to encode and decode internationalized
domain names.
For technical reference, see:
* [IDNA2008 Framework](https://tools.ietf.org/html/rfc5890)
* [IDNA2008 Protocol](https://tools.ietf.org/html/rfc5891)
* [IDNA2008 Unicode tables](https://tools.ietf.org/html/rfc5892)
* [IDNA2008 Bidi rule](https://tools.ietf.org/html/rfc5893)
* [Punycode](https://tools.ietf.org/html/rfc3492)
* [Unicode IDNA Compatibility Processing](https://www.unicode.org/reports/tr46/)
The library contains functionality to convert internationalized domain
names to and from ASCII Compatible Encoding (ACE).
The API consists of two main functions, `idn2_to_ascii_8z` for
converting data from UTF-8 to ASCII Compatible Encoding (ACE), and
`idn2_to_unicode_8z8z` to convert ACE names into UTF-8 format. There
are several variations of these main functions, which accept UTF-32,
or input in the local system encoding. All functions assume
zero-terminated strings.
This library is backwards (API) compatible with the [libidn
library](https://www.gnu.org/software/libidn/). Replacing the
`idna.h` header with `idn2.h` into a program is sufficient to switch
the application from IDNA2003 to IDNA2008 as supported by this
library.
Libidn2 is believed to be a complete IDNA2008 and TR46 implementation
and contains an extensive test-suite.
You can check the current test code coverage
[here](https://libidn.gitlab.io/libidn2/coverage/index.html) and the
current fuzzing code coverage
[here](https://libidn.gitlab.io/libidn2/fuzz-coverage/index.html) that
is part of the continuous fuzzing project
[OSS-Fuzz](https://issues.oss-fuzz.com/issues?q=is:open%20libidn2).
# License
The source code for the C library (libidn2.a or libidn.so) are
dual-licensed under the terms of either the GNU General Public License
version 2.0 or later - see the file [COPYINGv2](COPYINGv2) - or the
GNU Lesser General Public License version 3.0 or later - see the file
[COPYING.LESSERv3](COPYING.LESSERv3) - or both in parallel as here.
The command line tool, self tests, examples, and other auxiliary
files, are licensed under the GNU General Public License version 3.0
or later - see the file [COPYING](COPYING).
The license of the Unicode character data files (which are parsed into
static storage in the library) are documented in
[COPYING.unicode](COPYING.unicode).
Other files are licensed as indicated in each file. There may be
exceptions to these general rules, see each file for precise
information.
For any copyright year range specified as YYYY-ZZZZ in this package
note that the range specifies every single year in that closed interval.
# Online docs
[API reference](https://libidn.gitlab.io/libidn2/reference/api-index-full.html)
[Manual](https://libidn.gitlab.io/libidn2/manual/libidn2.html)
# Obtaining the source
Software releases of libidn2 can be downloaded from
https://ftp.gnu.org/gnu/libidn/ and ftp://ftp.gnu.org/gnu/libidn/
Development of libidn2 is organized [through GitLab
website](https://gitlab.com/libidn/libidn2), and there is [an issue
tracker for reporting bugs](https://gitlab.com/libidn/libidn2/issues).
# Building & Dependencies
Before building you should consider installing the
[dependencies](DEPENDENCIES.md).
When building from a release tarball archive, after unpacking you
build the package like this:
```
./configure
make
make check
```
# Contributing
See [the contributing document](CONTRIBUTING.md).
# Estimating code coverage
You need [LCOV](https://github.com/linux-test-project/lcov) installed.
To test the code coverage of the test suite use the following:
```
./configure --enable-code-coverage
make && make check && make code-coverage-capture
```
The current coverage report can be found [here](https://libidn.gitlab.io/libidn2/coverage/).
# Fuzzing
Libidn2 is being continuously fuzzed by [OSS-Fuzz](https://github.com/google/oss-fuzz).
Of course you can do local fuzzing on your own, see `fuzz/README.md` for instructions.
The code coverage of our fuzzers can be found [here](https://libidn.gitlab.io/libidn2/fuzz-coverage/).
libidn2-v2.3.8/bootstrap 0000775 0000000 0000000 00000022075 14763126736 0015225 0 ustar 00root root 0000000 0000000 #! /bin/sh
# Bootstrap this package from checked-out sources.
scriptversion=2024-07-04.10; # UTC
# Copyright (C) 2003-2025 Free Software Foundation, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# Originally written by Paul Eggert. The canonical version of this
# script is maintained as top/bootstrap in gnulib. However, to be
# useful to your package, you should place a copy of it under version
# control in the top-level directory of your package. The intent is
# that all customization can be done with a bootstrap.conf file also
# maintained in your version control; gnulib comes with a template
# build-aux/bootstrap.conf to get you started.
# Please report bugs or propose patches to bug-gnulib@gnu.org.
me="$0"
medir=`dirname "$me"`
# Read the function library and the configuration.
. "$medir"/bootstrap-funclib.sh
usage() {
cat <