]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/newlocale.3
err.3: EXAMPLES: use EXIT_FAILURE rather than 1 as exit status
[thirdparty/man-pages.git] / man3 / newlocale.3
index cdf8c4c09c971381eacedb9b12b97a88941b3043..ea9805e6544eee37f2952b5eddee5bacbbce4656 100644 (file)
@@ -23,7 +23,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH NEWLOCALE 3 2017-09-15 "Linux" "Linux Programmer's Manual"
+.TH NEWLOCALE 3 2019-03-06 "Linux" "Linux Programmer's Manual"
 .SH NAME
 newlocale, freelocale \- create, modify, and free a locale object
 .SH SYNOPSIS
@@ -218,7 +218,7 @@ Each locale object created by
 .BR newlocale ()
 should be deallocated using
 .BR freelocale ().
-.SH EXAMPLE
+.SH EXAMPLES
 The program below takes up to two command-line arguments,
 which each identify locales.
 The first argument is required, and is used to set the
@@ -366,6 +366,7 @@ main(int argc, char *argv[])
 
     /* Free the locale object */
 
+    uselocale(LC_GLOBAL_HANDLE);    /* So 'loc' is no longer in use */
     freelocale(loc);
 
     exit(EXIT_SUCCESS);