cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: LIBCURL_TIMESTAMP is in wrong format

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

Daniel,

On 24 Jan 2016, at 19:33, Daniel Stenberg <daniel_at_haxx.se> 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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2016-01-24