1
0
Fork 0
mirror of https://gitlab.com/libidn/libidn2.git synced 2026-03-07 09:40:20 +00:00
Libidn2 is a free software implementation of IDNA2008, Punycode and Unicode TR46 - https://www.gnu.org/s/libidn/#libidn2
Find a file
Simon Josefsson 482bc1fc2e
Fix tests/standalone.sh typo
How could entire pipeline accept this?  Thanks Codacy QA
2025-12-21 21:27:22 +01:00
contrib Export punycode APIs. 2024-01-21 12:08:52 +01:00
doc Uppercase @documentencoding value 2025-12-20 23:40:08 +01:00
examples Fix -Wunused-parameter warnings in examples/ 2025-05-03 12:33:44 +02:00
fuzz maint: Run 'make my-update-copyright update-NEWS-hash'. 2025-02-25 18:02:43 +01:00
gl README-release.diff: Refresh gnulib patch 2025-12-21 00:36:20 +01:00
lib Merge unistring/ into gl/ 2025-12-21 17:54:00 +01:00
m4 Fix reproducability bug in ax_am_macros_static.m4. 2025-02-26 00:10:24 +01:00
po build: Drop Japanese translation because of EUC-JP. 2025-11-13 10:52:05 +01:00
src Merge unistring/ into gl/ 2025-12-21 17:54:00 +01:00
tests Fix tests/standalone.sh typo 2025-12-21 21:27:22 +01:00
.gitattributes Add .tarball-version-git for git-version-gen. 2025-02-25 23:40:31 +01:00
.gitignore Merge unistring/ into gl/ 2025-12-21 17:54:00 +01:00
.gitlab-ci.yml Merge unistring/ into gl/ 2025-12-21 17:54:00 +01:00
.prev-version maint: post-release administrivia 2025-03-09 00:06:28 +01:00
.tarball-version-git Add .tarball-version-git for git-version-gen. 2025-02-25 23:40:31 +01:00
.travis.sh Disable gtk-doc for make distcheck on CIs 2017-07-19 12:31:44 +02:00
.travis.yml Travis CI: Initial commit 2017-04-26 12:25:50 +02:00
.travis_setup.sh Travis CI: Initial commit 2017-04-26 12:25:50 +02:00
AUTHORS Prepare for release 2019-11-14 09:43:38 +01:00
bootstrap Run './bootstrap --bootstrap-sync' 2025-12-21 00:36:21 +01:00
bootstrap-funclib.sh Run './bootstrap --bootstrap-sync' 2025-12-21 00:36:21 +01:00
bootstrap.conf Merge unistring/ into gl/ 2025-12-21 17:54:00 +01:00
cfg.mk Merge unistring/ into gl/ 2025-12-21 17:54:00 +01:00
configure.ac Merge unistring/ into gl/ 2025-12-21 17:54:00 +01:00
CONTRIBUTING.md Cleanups related to DEPENDENCIES. 2025-03-08 20:33:54 +01:00
COPYING Put GPLv3 in COPYING, moving old licensing info to README.md. 2024-11-19 23:11:33 +01:00
COPYING.LESSERv3 Bump COPYING texts to latest gnulib versions. 2025-02-25 18:03:05 +01:00
COPYING.unicode Syntax-check fixes. 2016-12-29 11:15:57 +01:00
COPYINGv2 Bump COPYING texts to latest gnulib versions. 2025-02-25 18:03:05 +01:00
DEPENDENCIES.md Minor DEPENDENCIES fixes. 2025-03-08 21:32:43 +01:00
libidn2.pc.in Add License variable to pkg-config file 2025-07-09 18:51:25 +00:00
Makefile.am Merge unistring/ into gl/ 2025-12-21 17:54:00 +01:00
NEWS Merge unistring/ into gl/ 2025-12-21 17:54:00 +01:00
README Modernize versioning and release infrastructure. 2021-05-12 14:03:05 +02:00
README.md Fix make syntax-check. 2025-03-08 21:29:30 +01:00

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:

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. 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 and the current fuzzing code coverage here that is part of the continuous fuzzing project OSS-Fuzz.

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 - or the GNU Lesser General Public License version 3.0 or later - see the file 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.

The license of the Unicode character data files (which are parsed into static storage in the library) are documented in 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

Manual

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, and there is an issue tracker for reporting bugs.

Building & Dependencies

Before building you should consider installing the dependencies.

When building from a release tarball archive, after unpacking you build the package like this:

./configure
make
make check

Contributing

See the contributing document.

Estimating code coverage

You need 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.

Fuzzing

Libidn2 is being continuously fuzzed by 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.