Debian Codegraph @

gnulib-tests/test-langinfo-h.c

raw
1 /* Test of <langinfo.h> substitute.
2 Copyright (C) 2009-2025 Free Software Foundation, Inc.
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
16
17 /* Written by Bruno Haible <[email protected]>, 2009. */
18
19 #include <config.h>
20
21 #include <langinfo.h>
22
23 /* Check that all the nl_item values are defined. */
24 int items[] =
25 {
26 /* nl_langinfo items of the LC_CTYPE category */
27 CODESET,
28 /* nl_langinfo items of the LC_NUMERIC category */
29 RADIXCHAR,
30 THOUSEP,
31 /* nl_langinfo items of the LC_TIME category */
32 D_T_FMT,
33 D_FMT,
34 T_FMT,
35 T_FMT_AMPM,
36 AM_STR,
37 PM_STR,
38 DAY_1,
39 DAY_2,
40 DAY_3,
41 DAY_4,
42 DAY_5,
43 DAY_6,
44 DAY_7,
45 ABDAY_1,
46 ABDAY_2,
47 ABDAY_3,
48 ABDAY_4,
49 ABDAY_5,
50 ABDAY_6,
51 ABDAY_7,
52 MON_1,
53 MON_2,
54 MON_3,
55 MON_4,
56 MON_5,
57 MON_6,
58 MON_7,
59 MON_8,
60 MON_9,
61 MON_10,
62 MON_11,
63 MON_12,
64 ALTMON_1,
65 ALTMON_2,
66 ALTMON_3,
67 ALTMON_4,
68 ALTMON_5,
69 ALTMON_6,
70 ALTMON_7,
71 ALTMON_8,
72 ALTMON_9,
73 ALTMON_10,
74 ALTMON_11,
75 ALTMON_12,
76 ABMON_1,
77 ABMON_2,
78 ABMON_3,
79 ABMON_4,
80 ABMON_5,
81 ABMON_6,
82 ABMON_7,
83 ABMON_8,
84 ABMON_9,
85 ABMON_10,
86 ABMON_11,
87 ABMON_12,
88 ABALTMON_1,
89 ABALTMON_2,
90 ABALTMON_3,
91 ABALTMON_4,
92 ABALTMON_5,
93 ABALTMON_6,
94 ABALTMON_7,
95 ABALTMON_8,
96 ABALTMON_9,
97 ABALTMON_10,
98 ABALTMON_11,
99 ABALTMON_12,
100 ERA,
101 ERA_D_FMT,
102 ERA_D_T_FMT,
103 ERA_T_FMT,
104 ALT_DIGITS,
105 /* nl_langinfo items of the LC_MONETARY category */
106 CRNCYSTR,
107 /* nl_langinfo items of the LC_MESSAGES category */
108 YESEXPR,
109 NOEXPR
110 };
111
112 int
113 main (void)
114 {
115 return 0;
116 }