Try in an aolserver script:

  set ::env(LANG) C.UTF-8
  ns_log notice "START of times [::ns_http_time 0]"

Most likely, it will work as expected

My recommendation is to set the LANG in the startup file.
Maybe, aolserver should force a LANG/LOCALE to avoid
unexpected behavior...

-gustaf neumann

Alexey Pechnikov schrieb:
Hello!

On Sunday 10 May 2009 00:32:35 Tom Jackson wrote:
I did notice an interesting comment in the C source:
from nsd/httptime.c:
    /*
     * This will most likely break if the locale is not an english one.
     * The format is RFC 1123: "Sun, 06 Nov 1997 09:12:45 GMT"
     */
strftime(buf, 40, "%a, %d %b %Y %H:%M:%S GMT", tmPtr);

So, is your locale set to "an english one"?

My locale is "ru_RU.UTF-8".

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