1idna_strerror(3) libidn idna_strerror(3)
2
3
4
6 idna_strerror - API function
7
9 #include <idna.h>
10
11 const char * idna_strerror(Idna_rc rc);
12
14 Idna_rc rc an Idna_rc return code.
15
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
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
26 Error during string preparation.
27
29 Error during punycode operation.
30
32 For IDNA_USE_STD3_ASCII_RULES, indicate that the string contains
33 non-LDH ASCII characters.
34
36 For IDNA_USE_STD3_ASCII_RULES, indicate that the string contains a
37 leading or trailing hyphen-minus (U+002D).
38
40 The final output string is not within the (inclusive) range 1 to 63
41 characters.
42
44 The string does not contain the ACE prefix (for ToUnicode).
45
47 The ToASCII operation on output string does not equal the input.
48
50 The input contains the ACE prefix (for ToASCII).
51
53 Character encoding conversion error.
54
56 Could not allocate buffer (this is typically a fatal error).
57
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
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
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)