cURL / Mailing Lists / curl-library / Single Mail


Re: [PATCH] 64-bit curl_off_t no longer gated to off_t

From: Phil Blundell <>
Date: Thu, 07 Aug 2008 12:41:57 +0100

On Thu, 2008-08-07 at 13:17 +0200, Daniel Stenberg wrote:
> These cause curlbuild.h to contain:
> /* curl_off_t formatting string directive without "%" conversion specifier. */
> #define CURL_FMT_OFF_T "ll d"
> /* unsigned curl_off_t formatting string without "%" conversion specifier. */
> #define CURL_FMT_OFF_TU "ll u"

>From a quick look at the patch I would guess the problem is here:

+ x_format=`echo "$x_format" | "$SED" 's/[["]]//g'`

The format that gets fed into this will be something like PRId64 from
<inttypes.h>, which expands to "l" "d" (with a space in the middle).
So, just naively stripping off the quote marks still leaves you with the
space. I guess you need to fiddle the sed expression a bit to ditch
whitespace as well.

Received on 2008-08-07