mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 08:40:19 +02:00
i18n: Ignore LC_MESSAGES on MinGW.
* libguile/locale-categories.h (MESSAGES): Add condition on !(defined(LC_MAX) && LC_MESSAGES > LC_MAX). * test-suite/tests/i18n.test ("locale objects")["make-locale (2 args, list)", "make-locale (3 args)", "locale?"]: Use LC_NUMERIC or LC_TIME instead of LC_MESSAGES. Co-authored-by: Eli Zaretskii <eliz@gnu.org>
This commit is contained in:
parent
82b8cfa40c
commit
c84f25bcce
2 changed files with 9 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2006, 2008 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2006, 2008, 2014 Free Software Foundation, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
|
@ -23,8 +23,10 @@
|
|||
SCM_DEFINE_LOCALE_CATEGORY (COLLATE)
|
||||
SCM_DEFINE_LOCALE_CATEGORY (CTYPE)
|
||||
|
||||
#ifdef LC_MESSAGES
|
||||
/* MinGW doesn't have `LC_MESSAGES'. */
|
||||
#if defined(LC_MESSAGES) && !(defined(LC_MAX) && LC_MESSAGES > LC_MAX)
|
||||
/* MinGW doesn't have `LC_MESSAGES'. libintl.h might define
|
||||
`LC_MESSAGES' for MinGW to an arbitrary large value which we cannot
|
||||
use in a call to `setlocale'. */
|
||||
SCM_DEFINE_LOCALE_CATEGORY (MESSAGES)
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue