Commit graph

7 commits

Author SHA1 Message Date
Érico Rolim
e5fe9ad9e8 Check for libintl header and add dgettext wrapper.
The dgettext_safe wrapper is used in the few situations where it wasn't
possible to immediatelly tell that the msgid parameter wasn't NULL.
We can probably add some debug printing code here at some point to try
and bring bugs upstream, if it makes sense.

Some inspiration from https://github.com/xhebox/libuargp
2021-02-16 01:47:29 -03:00
Érico Rolim
6336530a9c Fix argp-help.c.
It tried to use an __argp_basename function, which was defined to
program_invocation_short_name. The function definition should have been
gated.

This patch may be upstreamable to glibc.
2021-02-10 18:08:36 -03:00
Érico Rolim
a05d76cc6d Import argp-help.c from glibc 2.33.
Also:
- support only strerror(), not strerror_r()
2021-02-10 18:08:19 -03:00
Érico Rolim
92bd24de26 Import argp-standalone 1.3. 2021-02-10 17:41:05 -03:00
Érico Rolim
ede863a979 Import argp-standalone 1.2. 2021-02-10 17:41:05 -03:00
Érico Rolim
3d5f6735d4 Import argp-standalone 1.1. 2021-02-10 16:17:50 -03:00
Érico Rolim
8333609d29 Import argp-standalone 1.0. 2021-02-10 16:16:04 -03:00