From: GNU Libc Maintainers Date: Sat, 17 Sep 2016 18:00:44 +0000 (+0000) Subject: LC_IDENTIFICATION-optional-fields X-Git-Tag: archive/raspbian/2.25-3+rpi1~1^2^2^2^2^2^2^2^2^2^2^2^2~194 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=871f9ad2836f3acc505254e670963d2e05c04218;p=glibc.git LC_IDENTIFICATION-optional-fields In LC_IDENTIFICATION, audience, application and abbreviation keywords are optional, thus do not report an error if they are not defined. # DP: Dpatch author: Denis Barbier # DP: Patch author: Denis Barbier # DP: Upstream status: not submitted # DP: Date: 2006-01-08 Gbp-Pq: Topic locale Gbp-Pq: Name LC_IDENTIFICATION-optional-fields.diff --- diff --git a/locale/programs/ld-identification.c b/locale/programs/ld-identification.c index 84a21acaa..6d6d87973 100644 --- a/locale/programs/ld-identification.c +++ b/locale/programs/ld-identification.c @@ -147,6 +147,9 @@ No definition for %s category found"), "LC_IDENTIFICATION")); "LC_IDENTIFICATION", #cat)); \ identification->cat = ""; \ } +#define TEST_ELEM_OPT(cat) \ + if (identification->cat == NULL) \ + identification->cat = ""; \ TEST_ELEM (title); TEST_ELEM (source); @@ -157,9 +160,9 @@ No definition for %s category found"), "LC_IDENTIFICATION")); TEST_ELEM (fax); TEST_ELEM (language); TEST_ELEM (territory); - TEST_ELEM (audience); - TEST_ELEM (application); - TEST_ELEM (abbreviation); + TEST_ELEM_OPT (audience); + TEST_ELEM_OPT (application); + TEST_ELEM_OPT (abbreviation); TEST_ELEM (revision); TEST_ELEM (date);