stringprep_strerror(3)
π stringprep_strerror β bestie edition π
okay so this one's a libidn function, and it lives in the stringprep_strerror(3) manual page, and honestly? it's giving "translator for your error codes." no cap. π¦
β¨ NAME β¨
stringprep_strerror β the API function that turns your sad little return code into actual words π
β¨ SYNOPSIS β¨
#include <stringprep.h>
const char * stringprep_strerror(Stringprep_rc rc);
β¨ ARGUMENTS β¨
Stringprep_rc rcβ literally just aStringprep_rcreturn code. that's the whole thing she wants from you π«Ά
β¨ DESCRIPTION β¨
so what she does is take a return code integer and convert it into a text string, bestie. and that string? you can use it to print a diagnostic message to the user. iconic behaviour, truly. β¨
πΈ STRINGPREP_OK
Successful operation. and listen β this value is guaranteed to always be zero. the rest of them are only guaranteed to hold non-zero values, and that's purely for logical comparison purposes. iykyk. π
πΈ STRINGPREP_CONTAINS_UNASSIGNED
the string contains unassigned Unicode code points, which the profile literally forbids. not allowed. periodt. π«
πΈ STRINGPREP_CONTAINS_PROHIBITED
the string contains code points that the profile prohibits. yeah. she said no. π
πΈ STRINGPREP_BIDI_BOTH_L_AND_RAL
the string contains code points with conflicting bidirection category. they're fighting, bestie π
πΈ STRINGPREP_BIDI_LEADTRAIL_NOT_RAL
the leading and trailing character in the string are not of the proper bidirectional category. not the right vibe, sadly π
πΈ STRINGPREP_BIDI_CONTAINS_PROHIBITED
contains prohibited code points, detected by bidirectional code. caught in 4k π₯
πΈ STRINGPREP_TOO_SMALL_BUFFER
the buffer handed to the function was too small. and this usually indicates a problem in the calling application, soβ¦ not her fault, fr fr π
πΈ STRINGPREP_PROFILE_ERROR
the stringprep profile was inconsistent. this usually indicates an internal error in the library. rare, but real.
πΈ STRINGPREP_FLAG_ERROR
the supplied flag conflicted with the profile. this usually indicates a problem in the calling application β yeah, that's a you problem bestie π
πΈ STRINGPREP_UNKNOWN_PROFILE
the supplied profile name was not known to the library. she doesn't know her. never met her. π
πΈ STRINGPREP_ICONV_ERROR
character encoding conversion error. the conversion simply did not slay π
πΈ STRINGPREP_NFKC_FAILED
the Unicode NFKC operation failed. this usually indicates an internal error in the library. nfkc said "not today" π§
πΈ STRINGPREP_MALLOC_ERROR
the malloc() was out of memory. and heads up β this is usually a fatal error. like, for real for real. π¨
β Return value β
returns a pointer to a statically allocated string containing a description of the error with the return code rc. so don't go freeing her, she's not yours π
π€ REPORTING BUGS π€
found a bug? tell the people:
- Report bugs to <help-libidn@gnu.org>.
- General guidelines for reporting bugs: https://www.gnu.org/gethelp/
- GNU Libidn home page: https://www.gnu.org/software/libidn/
π COPYRIGHT π
Copyright Β© 2002-2026 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. slay, and also legally binding, but mostly slay β¨
π SEE ALSO π
the full documentation for libidn is maintained as a Texinfo manual. if the info and libidn programs are properly installed at your site, the command
info libidn
should give you access to the complete manual. and as an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/manual/
π«Ά friendly reminder: she returns a statically allocated string, so don't try to free it and don't try to modify it. just read it and move on, bestie. π
and that's the whole page!! brought to you by libidn, version 1.44, from the stringprep_strerror(3) manual page β mwah, go forth and print your diagnostics, main character π
β¨π
π¦ where this page comes from
- arch rolling: libidn 1.44-1 Β· GPL3 AND LGPL
- epel 10: libidn-devel 1.44-1.el10_3 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 43: libidn-devel 1.44-1.fc43 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 43: libidn-devel 1.44-1.fc43 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 44: libidn-devel 1.44-1.fc44 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 44: libidn-devel 1.44-1.fc44 Β· (LGPL-3.0-or-later OR GPL-2.0-or-later) AND GPL-3.0-or-later AND GFDL-1.3-or-later
- ubuntu stonking: libidn-dev 1.44-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms