Dear Alexey,

From the output, i start to believe that the setting of
LANG/LOCALE is not the problem, but i am getting the
suspicion that there is a bug in the c-library of your
operating system. What operating system do you use?

Rationale: aolserver uses strftime(..., ..., "... %d ...", ...)
to format the day of month. Since strftime() is defined
in the C-library, the bug should be there.

-gustaf neumann

Alexey Pechnikov schrieb:
Hello!

On Sunday 10 May 2009 23:42:08 Tom Jackson wrote:
I wonder if you have to set this before your start nstclsh?

$ LANG="en_US.UTF-8" nstclsh
% ns_httptime 0
Thu, 1 Jan 1970 00:00:00 GMT

You might also see what my replacement proc produces, or just try in
nstclsh:

$ nstclsh
% set seconds 0
0
% clock format $seconds -format "%a, %d %b %Y %H:%M:%S %Z" -gmt 3
Thu, 01 Jan 1970 00:00:00 GMT

But I just noticed something strange:

% ns_parsehttptime [ns_httptime 0] invalid time: Thu, 01 Jan 1970 00:00:00 GMT
% ns_parsehttptime "Thu, 01 Jan 1970 00:00:00 GMT"
invalid time: Thu, 01 Jan 1970 00:00:00 GMT
% ns_parsehttptime "Thu, 1 Jan 1970 00:00:00 GMT"
invalid time: Thu, 1 JAn 1970 00:00:00 GMT

On the last one, notice that the month gets converted to JAn.

Hm, I'm get the same result for my ru_RU.UTF-8 locale.

Best regards, Alexey Pechnikov.
http://pechnikov.tel/


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<[email protected]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<[email protected]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to