Re: Relocatable Perl scripts

2013-11-21 Thread Reuben Thomas
On 21 November 2013 23:50, Reuben Thomas wrote: I just realised that I never had this working properly, and I track the problem all the way back to the gnulib manual. In the line: > echo "$gettext_dir/" \ > should that not rather be "@gettext_dir@"? If not, then where does gettext_dir get

Relocatable Perl scripts

2013-11-21 Thread Reuben Thomas
I wanted to make a relocatable Perl script. My first thought was to rewrite the relocatable-sh module for Perl, but of course that would be some work. My second thought was to have a relocatable-sh wrapper. For most scripting languages, that would probably be necessary, and would work OK, although

Re: error module should depend on progname

2013-11-21 Thread Paul Eggert
On 11/21/2013 12:52 PM, Nikos Mavrogiannopoulos wrote: > does xalloc-die really > needs to report using error()? xalloc-die is for use by standalone programs which desire a particular standard way of handling memory exhaustion, namely a diagnostic and nonzero exit status like this: $ od -S 115

Re: error module should depend on progname

2013-11-21 Thread Paul Eggert
Thanks, but the file doc/error.texi explains why the error module does not depend on the progname module.

Re: error module should depend on progname

2013-11-21 Thread Nikos Mavrogiannopoulos
On Thu, 2013-11-21 at 12:08 -0800, Paul Eggert wrote: > Thanks, but the file doc/error.texi explains why the error module > does not depend on the progname module. Hello, My main issue is that I don't use error() and I have issues with it because some module (xalloc-die) uses it. In fact does xal

error module should depend on progname

2013-11-21 Thread Nikos Mavrogiannopoulos
>From 53ae3b6b60328b541a1621bf1f5974c8fe5d4dec Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 21 Nov 2013 20:43:35 +0100 Subject: [PATCH] error() uses program_name. --- modules/error | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/error b/modules/error index f8676

Re: error.c and _GL_ATTRIBUTE_FORMAT_PRINTF

2013-11-21 Thread Paul Eggert
On 11/21/2013 11:01 AM, Nikos Mavrogiannopoulos wrote: > It seems that error.c uses _GL_ATTRIBUTE_FORMAT_PRINTF but it doesn't > depend on anything that defines it. Thanks, I pushed the following patch; does it fix things for you? --- ChangeLog | 7 +++ modules/error | 1 + 2 files chang

error.c and _GL_ATTRIBUTE_FORMAT_PRINTF

2013-11-21 Thread Nikos Mavrogiannopoulos
It seems that error.c uses _GL_ATTRIBUTE_FORMAT_PRINTF but it doesn't depend on anything that defines it. regards, Nikos >From 0646d27d063b097758b23081f8881765c7093fa8 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 21 Nov 2013 19:58:47 +0100 Subject: [PATCH] The _GL macros are