diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c index 774226c51c9d..e9cee2ea16ce 100644 --- a/lib/libc/locale/setrunelocale.c +++ b/lib/libc/locale/setrunelocale.c @@ -62,7 +62,7 @@ setrunelocale(encoding) _RuneLocale *rl; if (!encoding || strlen(encoding) > ENCODING_LEN) - return(EFAULT); + return (EINVAL); /* * The "C" and "POSIX" locale are always here.