diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/readelf.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a1bec198..e0a591e2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2017-04-20 Ulf Hermann <[email protected]> + + * readelf.c: Replace YESSTR and NOSTR with gettext ("yes") and + gettext ("no"), respectively. + 2017-04-05 Mark Wielaard <[email protected]> * elflint.c (check_elf_header): Decompress all sections. diff --git a/src/readelf.c b/src/readelf.c index 97a43b06..6f6095d2 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -6132,7 +6132,7 @@ attr_callback (Dwarf_Attribute *attrp, void *arg) printf (" %*s%-20s (%s) %s\n", (int) (level * 2), "", dwarf_attr_name (attr), - dwarf_form_name (form), nl_langinfo (flag ? YESSTR : NOSTR)); + dwarf_form_name (form), flag ? gettext ("yes") : gettext ("no")); break; case DW_FORM_flag_present: @@ -6140,7 +6140,7 @@ attr_callback (Dwarf_Attribute *attrp, void *arg) break; printf (" %*s%-20s (%s) %s\n", (int) (level * 2), "", dwarf_attr_name (attr), - dwarf_form_name (form), nl_langinfo (YESSTR)); + dwarf_form_name (form), gettext ("yes")); break; case DW_FORM_exprloc: @@ -7650,7 +7650,7 @@ print_debug_macro_section (Dwfl_Module *dwflmod __attribute__ ((unused)), if (readp + 1 > readendp) goto invalid_data; val = *readp++; - printf (" %s", nl_langinfo (val != 0 ? YESSTR : NOSTR)); + printf (" %s", val != 0 ? gettext ("yes") : gettext ("no")); break; case DW_FORM_string: |
