@node freelocale
@subsection @code{freelocale}
@findex freelocale

POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/freelocale.html}

Gnulib module: freelocale
@mindex freelocale

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on many platforms:
FreeBSD 9.0, NetBSD 6.1, OpenBSD 6.1, Minix 3.1.8, AIX 6.1, HP-UX 11, Solaris 11.3, Cygwin 2.5.x, mingw, MSVC 14, Android 4.4.
@item
This function is useless because the @code{locale_t} type is not defined
on some platforms:
z/OS.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function's return type is @code{int} instead of @code{void} on macOS.
@item
This function may cause crashes in subsequent @code{newlocale} invocations
on some platforms:
@c https://dev.haiku-os.org/ticket/18344
Haiku.
@end itemize
