This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/2] ldd: Don't use Bash-only $"msgid" quoting
- From: Andreas Jaeger <aj at suse dot com>
- To: "P. J. McDermott" <pjm at nac dot net>, libc-alpha at sourceware dot org
- Date: Fri, 23 Nov 2012 10:17:50 +0100
- Subject: Re: [PATCH 2/2] ldd: Don't use Bash-only $"msgid" quoting
- References: <50AEF094.5070709@nac.net>
On 11/23/2012 04:42 AM, P. J. McDermott wrote:
On non-Bash shells, ldd prints translatable strings in English
(regardless of the environment's locale) and prefixed with dollar signs,
e.g.:
$ export LC_ALL=es_ES.UTF-8
$ /bin/dash /usr/bin/ldd --invalid
ldd: $unrecognized option `--invalid'
$Try `ldd --help' for more information.
This patch makes ldd use the more portable (and secure) gettext utility
and eval_gettext function.
What happens if gettext.sh is not available on the system?
Andreas
--
Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 NÃrnberg, Germany
GF: Jeff Hawn,Jennifer Guild,Felix ImendÃrffer,HRB16746 (AG NÃrnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126