gnutls_idna_reverse_map(3)
β¨ gnutls_idna_reverse_map β¨
okay bestie, welcome to the gnutls manual, section 3 β yes we're in the big girl section, the library functions π
this one's called gnutls_idna_reverse_map and it's giving "turn the ugly punycode back into pretty Unicode" energy π¦
πΈ NAME πΈ
gnutls_idna_reverse_map β an API function, babes. that's the whole vibe. π
π SYNOPSIS π
#include <gnutls/gnutls.h>
int gnutls_idna_reverse_map(const char * input, unsigned ilen,
gnutls_datum_t * out, unsigned flags);
π ARGUMENTS π
const char * inputβ the domain name in ACE (IDNA) format, so like the ASCII-encoded version. you know, thexn--looking situation πunsigned ilenβ the length of the string you just handed over. yes you gotta tell it how long it is, no it won't guess β¨gnutls_datum_t * outβ where the glow-up lands: the result as a null-terminated, allocated UTF-8 string π«Άunsigned flagsβ should be zero. that's it. zero. don't get creative bestie π
π DESCRIPTION π
so what does this lil icon actually do? it converts an ACE (that's ASCII-encoded) domain name into a UTF-8 domain name. so you go from the crunchy xn-- form back to the pretty human-readable one. reverse glow-up, we love to see it πβ¨
β οΈ real talk though: if GnuTLS was compiled without IDNA support, this function will just return GNUTLS_E_UNIMPLEMENTED_FEATURE. like, it's not mad, it's just not built for that π
also worth clocking: if you hand it an empty string, it will return an empty string. in and out, no notes, we respect the consistency π
π¦ RETURNS π¦
a negative error code if things went sideways, or 0 on success. simple. iconic. periodt π
β SINCE β
3.5.8 β been here since way back, a true veteran queen π
π REPORTING BUGS π
found something cursed? tell the devs, they wanna know fr fr:
- report bugs to <bugs@gnutls.org>
- home page: https://www.gnutls.org
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
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, free as in freedom π
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual, bestie. so if the /usr/share/doc/gnutls/ directory does not contain the HTML form, go visit:
https://www.gnutls.org/manual/
that's the plug, iykyk π₯
and that's the whole page, babe π this was the gnutls manual, version 3.8.13, gnutls_idna_reverse_map(3) β go forth and un-punycode your domains, you main character π¦πβ¨
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms