1idna_strerror(3)                    libidn                    idna_strerror(3)
2
3
4

NAME

6       idna_strerror - API function
7

SYNOPSIS

9       #include <idna.h>
10
11       const char * idna_strerror(Idna_rc rc);
12

ARGUMENTS

14       Idna_rc rc  an Idna_rc return code.
15

DESCRIPTION

17       Convert  a  return  code  integer to a text string.  This string can be
18       used to output a diagnostic message to the user.
19

IDNA_SUCCESS

21       Successful operation.  This value is guaranteed to always be zero,  the
22       remaining ones are only guaranteed to hold non-zero values, for logical
23       comparison purposes.
24

IDNA_STRINGPREP_ERROR

26       Error during string preparation.
27

IDNA_PUNYCODE_ERROR

29       Error during punycode operation.
30

IDNA_CONTAINS_NON_LDH

32       For  IDNA_USE_STD3_ASCII_RULES,  indicate  that  the  string   contains
33       non-LDH ASCII characters.
34

IDNA_CONTAINS_MINUS

36       For  IDNA_USE_STD3_ASCII_RULES,  indicate  that  the  string contains a
37       leading or trailing hyphen-minus (U+002D).
38

IDNA_INVALID_LENGTH

40       The final output string is not within the (inclusive)  range  1  to  63
41       characters.
42

IDNA_NO_ACE_PREFIX

44       The string does not contain the ACE prefix (for ToUnicode).
45

IDNA_ROUNDTRIP_VERIFY_ERROR

47       The ToASCII operation on output string does not equal the input.
48

IDNA_CONTAINS_ACE_PREFIX

50       The input contains the ACE prefix (for ToASCII).
51

IDNA_ICONV_ERROR

53       Character encoding conversion error.
54

IDNA_MALLOC_ERROR

56       Could not allocate buffer (this is typically a fatal error).
57

IDNA_DLOPEN_ERROR

59       Could not dlopen the libcidn DSO (only used internally in libc).
60
61       Return  value:  Returns a pointer to a statically allocated string con‐
62       taining a description of the error with the return code  rc .
63

REPORTING BUGS

65       Report bugs to <help-libidn@gnu.org>.
66       General guidelines for reporting bugs: http://www.gnu.org/gethelp/
67       GNU Libidn home page: http://www.gnu.org/software/libidn/
68
69
71       Copyright © 2002-2021 Simon Josefsson.
72       Copying and distribution of this file, with  or  without  modification,
73       are  permitted in any medium without royalty provided the copyright no‐
74       tice and this notice are preserved.
75

SEE ALSO

77       The full documentation for libidn is maintained as  a  Texinfo  manual.
78       If  the  info  and libidn programs are properly installed at your site,
79       the command
80
81              info libidn
82
83       should give you access to the complete manual.  As an  alternative  you
84       may obtain the manual from:
85
86              http://www.gnu.org/software/libidn/manual/
87
88libidn                               1.38                     idna_strerror(3)
Impressum