summaryrefslogtreecommitdiffstats
path: root/newlib/libc/locale/lmessages.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/locale/lmessages.c')
-rw-r--r--newlib/libc/locale/lmessages.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/newlib/libc/locale/lmessages.c b/newlib/libc/locale/lmessages.c
index 24e4858d5..12373c28e 100644
--- a/newlib/libc/locale/lmessages.c
+++ b/newlib/libc/locale/lmessages.c
@@ -42,6 +42,13 @@ static const struct lc_messages_T _C_messages_locale = {
"^[nN]" , /* noexpr */
"yes" , /* yesstr */
"no" /* nostr */
+ "ASCII" /* codeset */
+#ifdef __HAVE_LOCALE_INFO_EXTENDED__
+ , L"^[yY]" , /* wyesexpr */
+ L"^[nN]" , /* wnoexpr */
+ L"yes" , /* wyesstr */
+ L"no" /* wnostr */
+#endif
};
static struct lc_messages_T _messages_locale;
@@ -53,13 +60,15 @@ __messages_load_locale (const char *name, void *f_wctomb, const char *charset)
{
#ifdef __CYGWIN__
extern int __set_lc_messages_from_win (const char *,
+ const struct lc_messages_T *,
struct lc_messages_T *, char **,
void *, const char *);
int ret;
int old_messages_using_locale = _messages_using_locale;
_messages_using_locale = 0;
- ret = __set_lc_messages_from_win (name, &_messages_locale,
+ ret = __set_lc_messages_from_win (name, &_C_messages_locale,
+ &_messages_locale,
&_messages_locale_buf,
f_wctomb, charset);
/* ret == -1: error, ret == 0: C/POSIX, ret > 0: valid */