From: Ben Gras Date: Tue, 22 Jun 2010 09:31:16 +0000 (+0000) Subject: add LC_MESSAGES X-Git-Tag: v3.1.8~410 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/FAQ?a=commitdiff_plain;h=82dee9dbc3ebdd98d72b62ff27e6830d900d38c1;p=minix.git add LC_MESSAGES --- 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;