From e1a6622b3b5ce877477a16644788e2b9eb58de83 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Thu, 20 Feb 2025 20:55:36 -0600 Subject: [PATCH] Note setlocale raises a system-error when locale doesn't exist doc/ref/posix.texi: note setlocale raises a system-error when locale doesn't exist Thanks to Francesco P. Lovergine for suggesting the addition (https://bugs.debian.org/1078681). --- doc/ref/posix.texi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/ref/posix.texi b/doc/ref/posix.texi index d4a14ec24..08d939b9f 100644 --- a/doc/ref/posix.texi +++ b/doc/ref/posix.texi @@ -3822,6 +3822,10 @@ process. @xref{i18n Introduction, locale objects and @code{make-locale}}, for a thread-safe alternative. @end deffn +A @code{system-error} exception (@pxref{Handling Errors}) is raised by +@code{setlocale} when @var{locale-name} does not match any of the +locales compiled on the system. + @node Encryption @subsection Encryption @cindex encryption