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

NAME

6       idna_strerror - return string describing idna error code
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       Could not convert string in locale encoding.
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

RETURN VALUE

62       Returns  a  pointer  to  a  statically  allocated  string  containing a
63       description of the error with the return code rc.
64

REPORTING BUGS

66       Report bugs to <bug-libidn@gnu.org>.
67
69       Copyright © 2002, 2003, 2004, 2005, 2006 Simon Josefsson.
70       Permission is granted to make and distribute verbatim  copies  of  this
71       manual  provided  the  copyright  notice and this permission notice are
72       preserved on all copies.
73

SEE ALSO

75       The full documentation for libidn is maintained as  a  Texinfo  manual.
76       If  the  info  and libidn programs are properly installed at your site,
77       the command
78
79              info libidn
80
81       should give you access to the complete manual.
82
83
84
85libidn                               0.6.8                    idna_strerror(3)
Impressum