cURL / Mailing Lists / curl-library / Single Mail


Re: LIBCURL_TIMESTAMP is in wrong format

From: Alex Bligh <>
Date: Sun, 24 Jan 2016 20:01:13 +0000


On 24 Jan 2016, at 19:33, Daniel Stenberg <> wrote:

> On Sun, 24 Jan 2016, Tetetest wrote:
>> In 7.46.0 tarballs' include/curl/curlver.h, LIBCURL_TIMESTAMP is defined to a string in non-English locale (I guess it is Swedish).
> Oops. Yes, for some reason I thought setting 'LANG' would be enough but I apparently still had LC_TIME set to sv_SE.UTF-8 :-(
> I've now fixed maketgz so that it explictiyl sets LC_TIME to "C" and that should do it.
> Thanks for pointing this out!

LC_TIME etc will override LANG, but LC_ALL in turn overrides LC_TIME etc., so before this gets you on another environment variable, you might consider setting LC_ALL=C rather than having to worry about each one.

Details from locale(7) manpage

       If the second argument to setlocale(3) is empty string, "", for the default locale, it is determined
       using the following steps:

       1. If there is a non-null environment variable LC_ALL, the value of LC_ALL is used.

       2. If an environment variable with the same name as one of the categories above exists and is non-
              null, its value is used for that category.

       3. If there is a non-null environment variable LANG, the value of LANG is used.

Alex Bligh
List admin:
Received on 2016-01-24