diff --git a/include/locale.h b/include/locale.h index e48add267..ed1d042bd 100644 --- a/include/locale.h +++ b/include/locale.h @@ -39,6 +39,7 @@ struct lconv { #define LC_MONETARY 4 #define LC_NUMERIC 5 #define LC_TIME 6 +#define LC_MESSAGES 7 /* Function Prototypes. */ _PROTOTYPE( char *setlocale, (int _category, const char *_locale) ); diff --git a/lib/libc/ansi/setlocale.c b/lib/libc/ansi/setlocale.c index 87bb74a55..8d098f21f 100644 --- a/lib/libc/ansi/setlocale.c +++ b/lib/libc/ansi/setlocale.c @@ -21,6 +21,7 @@ setlocale(int category, const char *locale) case LC_TIME: case LC_NUMERIC: case LC_MONETARY: + case LC_MESSAGES: return *locale ? (char *)locale : "C"; default: return (char *)NULL;