annotate tests/test-langinfo.c @ 40057:b06060465f09

maint: Run 'make update-copyright'
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 01 Jan 2019 00:25:11 +0100
parents 10eb9086bea0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12429
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Test of <langinfo.h> substitute.
40057
b06060465f09 maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents: 19484
diff changeset
2 Copyright (C) 2009-2019 Free Software Foundation, Inc.
12429
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software: you can redistribute it and/or modify
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 3 of the License, or
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 (at your option) any later version.
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
19190
9759915b2aca all: prefer https: URLs
Paul Eggert <eggert@cs.ucla.edu>
parents: 18626
diff changeset
15 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12429
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 /* Written by Bruno Haible <bruno@clisp.org>, 2009. */
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #include <config.h>
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 #include <langinfo.h>
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 /* Check that all the nl_item values are defined. */
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 int items[] =
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 {
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 /* nl_langinfo items of the LC_CTYPE category */
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 CODESET,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 /* nl_langinfo items of the LC_NUMERIC category */
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 RADIXCHAR,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 THOUSEP,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 /* nl_langinfo items of the LC_TIME category */
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 D_T_FMT,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33 D_FMT,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 T_FMT,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 T_FMT_AMPM,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 AM_STR,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 PM_STR,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 DAY_1,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39 DAY_2,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 DAY_3,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
41 DAY_4,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
42 DAY_5,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
43 DAY_6,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
44 DAY_7,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
45 ABDAY_1,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
46 ABDAY_2,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
47 ABDAY_3,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
48 ABDAY_4,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
49 ABDAY_5,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 ABDAY_6,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
51 ABDAY_7,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
52 MON_1,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
53 MON_2,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
54 MON_3,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
55 MON_4,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
56 MON_5,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
57 MON_6,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
58 MON_7,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
59 MON_8,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
60 MON_9,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
61 MON_10,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62 MON_11,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
63 MON_12,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
64 ABMON_1,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
65 ABMON_2,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
66 ABMON_3,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
67 ABMON_4,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
68 ABMON_5,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
69 ABMON_6,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
70 ABMON_7,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
71 ABMON_8,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
72 ABMON_9,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
73 ABMON_10,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
74 ABMON_11,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
75 ABMON_12,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
76 ERA,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
77 ERA_D_FMT,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
78 ERA_D_T_FMT,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
79 ERA_T_FMT,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
80 ALT_DIGITS,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
81 /* nl_langinfo items of the LC_MONETARY category */
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
82 CRNCYSTR,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
83 /* nl_langinfo items of the LC_MESSAGES category */
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
84 YESEXPR,
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
85 NOEXPR
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
86 };
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
87
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
88 int
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
89 main (void)
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
90 {
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
91 return 0;
0de04910dc09 Tests for module 'langinfo'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
92 }