add LC_MESSAGES
This commit is contained in:
parent
3cb1096425
commit
82dee9dbc3
2 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,7 @@ struct lconv {
|
||||||
#define LC_MONETARY 4
|
#define LC_MONETARY 4
|
||||||
#define LC_NUMERIC 5
|
#define LC_NUMERIC 5
|
||||||
#define LC_TIME 6
|
#define LC_TIME 6
|
||||||
|
#define LC_MESSAGES 7
|
||||||
|
|
||||||
/* Function Prototypes. */
|
/* Function Prototypes. */
|
||||||
_PROTOTYPE( char *setlocale, (int _category, const char *_locale) );
|
_PROTOTYPE( char *setlocale, (int _category, const char *_locale) );
|
||||||
|
|
|
@ -21,6 +21,7 @@ setlocale(int category, const char *locale)
|
||||||
case LC_TIME:
|
case LC_TIME:
|
||||||
case LC_NUMERIC:
|
case LC_NUMERIC:
|
||||||
case LC_MONETARY:
|
case LC_MONETARY:
|
||||||
|
case LC_MESSAGES:
|
||||||
return *locale ? (char *)locale : "C";
|
return *locale ? (char *)locale : "C";
|
||||||
default:
|
default:
|
||||||
return (char *)NULL;
|
return (char *)NULL;
|
||||||
|
|
Loading…
Reference in a new issue