1 In LC_IDENTIFICATION, audience, application and abbreviation keywords
2 are optional, thus do not report an error if they are not defined.
4 # DP: Dpatch author: Denis Barbier
5 # DP: Patch author: Denis Barbier
6 # DP: Upstream status: not submitted
10 locale/programs/ld-identification.c | 9 ++++++---
11 1 file changed, 6 insertions(+), 3 deletions(-)
13 --- a/locale/programs/ld-identification.c
14 +++ b/locale/programs/ld-identification.c
16 "LC_IDENTIFICATION", #cat)); \
17 identification->cat = ""; \
19 +#define TEST_ELEM_OPT(cat) \
20 + if (identification->cat == NULL) \
21 + identification->cat = ""; \
28 TEST_ELEM (territory);
29 - TEST_ELEM (audience);
30 - TEST_ELEM (application);
31 - TEST_ELEM (abbreviation);
32 + TEST_ELEM_OPT (audience);
33 + TEST_ELEM_OPT (application);
34 + TEST_ELEM_OPT (abbreviation);