Hi Stephen,
On 1/7/22 17:46, Stephen Kitt wrote:
Signed-off-by: Stephen Kitt <steve@xxxxxxx>
---
man3/newlocale.3 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man3/newlocale.3 b/man3/newlocale.3
index b5960c4c4..dc9406ede 100644
--- a/man3/newlocale.3
+++ b/man3/newlocale.3
@@ -360,7 +360,7 @@ main(int argc, char *argv[])
/* Free the locale object. */
- uselocale(LC_GLOBAL_HANDLE); /* So \(aqloc\(aq is no longer in use */
+ uselocale(LC_GLOBAL_LOCALE); /* So \(aqloc\(aq is no longer in use */
Why? Not saying it's wrong, but I'd like a bit more of an explanation,
since I don't know what this does, and would like to be able to check
the correctness by just looking at the patch, without having to read
whole man pages. :)
What was wrong, and in what sense does this patch fix it?
Thanks,
Alex
freelocale(loc);
exit(EXIT_SUCCESS);
--
Alejandro Colomar
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/