diff options
Diffstat (limited to 'gl/m4/locale-fr.m4')
| -rw-r--r-- | gl/m4/locale-fr.m4 | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/gl/m4/locale-fr.m4 b/gl/m4/locale-fr.m4 index f8d7c543..f504d5b5 100644 --- a/gl/m4/locale-fr.m4 +++ b/gl/m4/locale-fr.m4 | |||
| @@ -1,9 +1,10 @@ | |||
| 1 | # locale-fr.m4 | 1 | # locale-fr.m4 |
| 2 | # serial 23 | 2 | # serial 24 |
| 3 | dnl Copyright (C) 2003, 2005-2024 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2003, 2005-2025 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 7 | 8 | ||
| 8 | dnl From Bruno Haible. | 9 | dnl From Bruno Haible. |
| 9 | 10 | ||
| @@ -71,8 +72,9 @@ int main () { | |||
| 71 | if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; | 72 | if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; |
| 72 | # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ | 73 | # if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ |
| 73 | /* Check whether the decimal separator is a comma. | 74 | /* Check whether the decimal separator is a comma. |
| 74 | On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point | 75 | On NetBSD 3.0 in the fr_FR.ISO8859-1 locale |
| 75 | are nl_langinfo(RADIXCHAR) are both ".". */ | 76 | and on Haiku in the fr_FR.UTF-8 locale, |
| 77 | localeconv()->decimal_point are nl_langinfo(RADIXCHAR) are both ".". */ | ||
| 76 | if (localeconv () ->decimal_point[0] != ',') return 1; | 78 | if (localeconv () ->decimal_point[0] != ',') return 1; |
| 77 | # endif | 79 | # endif |
| 78 | return 0; | 80 | return 0; |
| @@ -82,10 +84,11 @@ int main () { | |||
| 82 | if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then | 84 | if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then |
| 83 | case "$host_os" in | 85 | case "$host_os" in |
| 84 | # Handle native Windows specially, because there setlocale() interprets | 86 | # Handle native Windows specially, because there setlocale() interprets |
| 85 | # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", | 87 | # "ar" or "ara" as "Arabic" or "Arabic_Saudi Arabia.1256", |
| 88 | # "en" or "eng" as "English" or "English_United States.1252", | ||
| 86 | # "fr" or "fra" as "French" or "French_France.1252", | 89 | # "fr" or "fra" as "French" or "French_France.1252", |
| 87 | # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", | 90 | # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", |
| 88 | # "ja" as "Japanese" or "Japanese_Japan.932", | 91 | # "ja" or "jpn" as "Japanese" or "Japanese_Japan.932", |
| 89 | # and similar. | 92 | # and similar. |
| 90 | mingw* | windows*) | 93 | mingw* | windows*) |
| 91 | # Test for the native Windows locale name. | 94 | # Test for the native Windows locale name. |
| @@ -214,8 +217,9 @@ int main () { | |||
| 214 | #endif | 217 | #endif |
| 215 | #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ | 218 | #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ |
| 216 | /* Check whether the decimal separator is a comma. | 219 | /* Check whether the decimal separator is a comma. |
| 217 | On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point | 220 | On NetBSD 3.0 in the fr_FR.ISO8859-1 locale |
| 218 | are nl_langinfo(RADIXCHAR) are both ".". */ | 221 | and on Haiku in the fr_FR.UTF-8 locale, |
| 222 | localeconv()->decimal_point are nl_langinfo(RADIXCHAR) are both ".". */ | ||
| 219 | if (localeconv () ->decimal_point[0] != ',') return 1; | 223 | if (localeconv () ->decimal_point[0] != ',') return 1; |
| 220 | #endif | 224 | #endif |
| 221 | return 0; | 225 | return 0; |
| @@ -224,10 +228,11 @@ int main () { | |||
| 224 | if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then | 228 | if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then |
| 225 | case "$host_os" in | 229 | case "$host_os" in |
| 226 | # Handle native Windows specially, because there setlocale() interprets | 230 | # Handle native Windows specially, because there setlocale() interprets |
| 227 | # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", | 231 | # "ar" or "ara" as "Arabic" or "Arabic_Saudi Arabia.1256", |
| 232 | # "en" or "eng" as "English" or "English_United States.1252", | ||
| 228 | # "fr" or "fra" as "French" or "French_France.1252", | 233 | # "fr" or "fra" as "French" or "French_France.1252", |
| 229 | # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", | 234 | # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", |
| 230 | # "ja" as "Japanese" or "Japanese_Japan.932", | 235 | # "ja" or "jpn" as "Japanese" or "Japanese_Japan.932", |
| 231 | # and similar. | 236 | # and similar. |
| 232 | mingw* | windows*) | 237 | mingw* | windows*) |
| 233 | # Test for the hypothetical native Windows locale name. | 238 | # Test for the hypothetical native Windows locale name. |
