diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 16:27:12 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-10-31 16:27:12 +0100 |
| commit | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (patch) | |
| tree | 2b2e1c71dffae827c8e45cd4cccc375093d03486 /gl/hard-locale.h | |
| parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
| download | monitoring-plugins-5be04ec.tar.gz | |
Sync with the latest Gnulib code (d4ec02b3cc)
Diffstat (limited to 'gl/hard-locale.h')
| -rw-r--r-- | gl/hard-locale.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/gl/hard-locale.h b/gl/hard-locale.h index 880c9e85..5d40e522 100644 --- a/gl/hard-locale.h +++ b/gl/hard-locale.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Determine whether a locale is hard. | 1 | /* Determine whether a locale is hard. |
| 2 | 2 | ||
| 3 | Copyright (C) 1999, 2003-2004, 2009-2023 Free Software Foundation, Inc. | 3 | Copyright (C) 1999, 2003-2004, 2009-2024 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU Lesser General Public License as | 6 | it under the terms of the GNU Lesser General Public License as |
| @@ -16,11 +16,23 @@ | |||
| 16 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ | 16 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
| 17 | 17 | ||
| 18 | #ifndef HARD_LOCALE_H_ | 18 | #ifndef HARD_LOCALE_H_ |
| 19 | # define HARD_LOCALE_H_ 1 | 19 | #define HARD_LOCALE_H_ 1 |
| 20 | |||
| 21 | #ifdef __cplusplus | ||
| 22 | extern "C" { | ||
| 23 | #endif | ||
| 24 | |||
| 20 | 25 | ||
| 21 | /* Return true if the specified CATEGORY of the current locale is hard, i.e. | 26 | /* Return true if the specified CATEGORY of the current locale is hard, i.e. |
| 22 | different from the C or POSIX locale that has a fixed behavior. | 27 | different from the C or POSIX locale that has a fixed behavior. |
| 23 | CATEGORY must be one of the LC_* values, but not LC_ALL. */ | 28 | CATEGORY must be one of the LC_* values, but not LC_ALL. |
| 29 | Note: This function uses the current global locale; it ignores the | ||
| 30 | per-thread locale. */ | ||
| 24 | extern bool hard_locale (int category); | 31 | extern bool hard_locale (int category); |
| 25 | 32 | ||
| 33 | |||
| 34 | #ifdef __cplusplus | ||
| 35 | } | ||
| 36 | #endif | ||
| 37 | |||
| 26 | #endif /* HARD_LOCALE_H_ */ | 38 | #endif /* HARD_LOCALE_H_ */ |
