Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1 [solved]

2009-05-13 Thread Alexey Pechnikov
Hello!

On Wednesday 13 May 2009 03:03:07 Tom Jackson wrote:
 You include the buggy snprintf line above, but this isn't in the patch.

Debian package has _wrong_ locale-dependence fixing patch:
=
--- aolserver4-4.5.1.orig/nsd/httptime.c
+++ aolserver4-4.5.1/nsd/httptime.c
@@ -27,6 +27,9 @@
  * version of this file under either the License or the GPL.
  */

+static char *weekdays_names[7] =
+{ Sun, Mon, Tue, Wed, Thu, Fri, Sat };
+

 /*
  * time.c --
@@ -92,11 +95,14 @@
 }

 /*
- * This will most likely break if the locale is not an english one.
+ * Using snprintf instead of strftime to always use english names
  * 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);
+snprintf(buf, 40, %s, %d %s %d %02d:%02d:%02d GMT,
+weekdays_names[tmPtr-tm_wday], tmPtr-tm_mday,
+month_names[tmPtr-tm_mon], tmPtr-tm_year + 1900,
+tmPtr-tm_hour, tmPtr-tm_min, tmPtr-tm_sec);

 Ns_DStringAppend(pds, buf);
 return pds-string;
=

This patch has bug in line
snprintf(buf, 40, %s, %d %s %d %02d:%02d:%02d GMT,

I used this patch because my locale is non-english one but I stupidly 
forgot about this In my previous mail is attached the fixed patch:
http://mobigroup.ru/files/aol4.5.1/httptime.c.diff

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


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

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1

2009-05-12 Thread Alexey Pechnikov
Hello!

On Tuesday 12 May 2009 12:51:02 Gustaf Neumann wrote:
 Very wierd. So, the behavior must be influenced by the environment.
 What is the output, if you call time-format from aolserver (via exec)
 (this way, the external program runs with the same set of
 environment variables as the aolserver).
 

This return the correct result:

catch {exec /tmp/time-format} msg
ns_log Notice $msg

[12/May/2009:14:56:47][15868.3082901168][-main-] Notice: Thu, 01 Jan 1970 
00:00:00 GMT
   

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


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

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1

2009-05-12 Thread Gustaf Neumann

Mr Spock would say: fascinating.

We know at least, that the environment is indeed
not the problem. Can you check, whether both programs
use the same strftime function?

such as:

$ nm  time-format| fgrep strftime
U strftime@@GLIBC_2.2.5

$ nm /usr/local/src/aolserver-4.5.1/nsd/libnsd.so | fgrep strf
U strftime@@GLIBC_2.2.5

-gustaf neumann

Alexey Pechnikov schrieb:

This return the correct result:

catch {exec /tmp/time-format} msg
ns_log Notice $msg

[12/May/2009:14:56:47][15868.3082901168][-main-] Notice: Thu, 01 Jan 1970 00:00:00 GMT   


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


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

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.
  



--
Univ.Prof. Dr. Gustaf Neumann
Institute of Information Systems and New Media
WU Vienna
Augasse 2-6, A-1090 Vienna, AUSTRIA


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

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1

2009-05-12 Thread Alexey Pechnikov
Hello!

On Tuesday 12 May 2009 17:29:38 Gustaf Neumann wrote:
 Mr Spock would say: fascinating.
 
 We know at least, that the environment is indeed
 not the problem. Can you check, whether both programs
 use the same strftime function?
 
 such as:
 
 $ nm  time-format| fgrep strftime
  U strftime@@GLIBC_2.2.5
 
 $ nm /usr/local/src/aolserver-4.5.1/nsd/libnsd.so | fgrep strf
  U strftime@@GLIBC_2.2.5


I didn't build AOL with debugging symbols.

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


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

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1

2009-05-12 Thread Tom Jackson
Looking at the source for a strftime, I see only two possible problems:

1. The format passed to sprintf is wrong, or 
2. the case 'd' branch could be missing the continue, so that case 'e'
runs, and replaces the result of 'd':

case 'd':
  pt = _conv(t-tm_mday, %02d, pt, ptlim);
  continue;

case 'e':
  pt = _conv(t-tm_mday, %2d, pt, ptlim);
  continue;

Note that _conv is simply:

static char *_conv(const int n, const char *format, char *pt, const char *ptlim)
{
  char  buf[32];

  sprintf(buf, format, n);
  return _add(buf, pt, ptlim);
}

Since other formats rely on %d, you might also look at the results of
formatting %x, %D and %F. But you would have to edit httptime.c with a
new format string:

strftime(buf, 40, %x, tmPtr);

tom jackson






On Tue, 2009-05-12 at 18:33 +0400, Alexey Pechnikov wrote:
 Hello!
 
 On Tuesday 12 May 2009 17:29:38 Gustaf Neumann wrote:
  Mr Spock would say: fascinating.
  
  We know at least, that the environment is indeed
  not the problem. Can you check, whether both programs
  use the same strftime function?
  
  such as:
  
  $ nm  time-format| fgrep strftime
   U strftime@@GLIBC_2.2.5
  
  $ nm /usr/local/src/aolserver-4.5.1/nsd/libnsd.so | fgrep strf
   U strftime@@GLIBC_2.2.5
 
 
 I didn't build AOL with debugging symbols.
 
 Best regards, Alexey Pechnikov.
 http://pechnikov.tel/
 
 
 --
 AOLserver - http://www.aolserver.com/
 
 To Remove yourself from this list, simply send an email to 
 lists...@listserv.aol.com 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 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1 [solved]

2009-05-12 Thread Alexey Pechnikov
Hello!

I'm sorry but the problem is produced by patch for non-english locale. 
This patch use wrong format string:
snprintf(buf, 40, %s, %d %s %d %02d:%02d:%02d GMT,

I did fix the bug and I'm think this patch may be added to upstream.

Patch is here:
http://mobigroup.ru/files/aol4.5.1/httptime.c.diff

Thanks for help!

=
--- httptime.c.orig 2003-01-18 22:24:20.0 +0300
+++ httptime.c  2009-05-12 20:14:24.0 +0400
@@ -27,6 +27,9 @@
  * version of this file under either the License or the GPL.
  */

+static char *weekdays_names[7] =
+{ Sun, Mon, Tue, Wed, Thu, Fri, Sat };
+

 /*
  * time.c --
@@ -92,11 +95,14 @@
 }

 /*
- * This will most likely break if the locale is not an english one.
+ * Using snprintf instead of strftime to always use english names
  * 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);
+snprintf(buf, 40, %s, %02d %s %d %02d:%02d:%02d GMT,
+weekdays_names[tmPtr-tm_wday], tmPtr-tm_mday,
+month_names[tmPtr-tm_mon], tmPtr-tm_year + 1900,
+tmPtr-tm_hour, tmPtr-tm_min, tmPtr-tm_sec);

 Ns_DStringAppend(pds, buf);
 return pds-string;


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


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

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1 [solved]

2009-05-12 Thread Tom Jackson
Great! I was actually thinking that it would be much easier in this
particular case to avoid strftime, since all of the variability in the
format is removed. It is huge overkill, and obviously broken in
non-english languages. 

tom jackson

On Tue, 2009-05-12 at 20:36 +0400, Alexey Pechnikov wrote:
 Hello!
 
 I'm sorry but the problem is produced by patch for non-english locale. 
 This patch use wrong format string:
 snprintf(buf, 40, %s, %d %s %d %02d:%02d:%02d GMT,
 
 I did fix the bug and I'm think this patch may be added to upstream.
 
 Patch is here:
 http://mobigroup.ru/files/aol4.5.1/httptime.c.diff
 
 Thanks for help!
 
 =
 --- httptime.c.orig 2003-01-18 22:24:20.0 +0300
 +++ httptime.c  2009-05-12 20:14:24.0 +0400
 @@ -27,6 +27,9 @@
   * version of this file under either the License or the GPL.
   */
 
 +static char *weekdays_names[7] =
 +{ Sun, Mon, Tue, Wed, Thu, Fri, Sat };
 +
 
  /*
   * time.c --
 @@ -92,11 +95,14 @@
  }
 
  /*
 - * This will most likely break if the locale is not an english one.
 + * Using snprintf instead of strftime to always use english names
   * 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);
 +snprintf(buf, 40, %s, %02d %s %d %02d:%02d:%02d GMT,
 +weekdays_names[tmPtr-tm_wday], tmPtr-tm_mday,
 +month_names[tmPtr-tm_mon], tmPtr-tm_year + 1900,
 +tmPtr-tm_hour, tmPtr-tm_min, tmPtr-tm_sec);
 
  Ns_DStringAppend(pds, buf);
  return pds-string;
 
 
 Best regards, Alexey Pechnikov.
 http://pechnikov.tel/
 
 
 --
 AOLserver - http://www.aolserver.com/
 
 To Remove yourself from this list, simply send an email to 
 lists...@listserv.aol.com 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 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1 [solved]

2009-05-12 Thread Tom Jackson
On Tue, 2009-05-12 at 20:36 +0400, Alexey Pechnikov wrote:
 Hello!
 
 I'm sorry but the problem is produced by patch for non-english locale. 
 This patch use wrong format string:
 snprintf(buf, 40, %s, %d %s %d %02d:%02d:%02d GMT,
 
 I did fix the bug and I'm think this patch may be added to upstream.

At first I thought that you were fixing a bad patch. But the diff isn't
a fix of the bug, it is a good replacement for stupidly-generic code
(which we still are using in AOLserver).

We are still left with the question of how the original problem was
created. From my research it appears that the locale would never affect
the numbers (it couldn't be wrong with the day format and right with the
time format), so we could change the locale with no effect on the
output. We have evidence that the locale had no effect. 

My best guess is that someone created an almost perfect patch to the
code you were using. It fixed the day-name and month-name problems, but
it screwed up the day-number format. But your patch does not record the
bug, just the original code, which would not produce the output we have
been using.

What gives?

You include the buggy snprintf line above, but this isn't in the patch.

tom jackson


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

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1

2009-05-11 Thread Gustaf Neumann

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 
lists...@listserv.aol.com 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 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1

2009-05-11 Thread Tom Jackson
I also looked into this, I think Gustaf must be right. The reason is
that the AOLserver C code passes in the format string, which is clearly
correct. %d is the zero padded day number [01-31]. After the call, the
modified buffer is sent back as-is, so the bug isn't in AOLserver. 

The good news, if there is any here is that to set the time formats, you
only need to adjust the LC_TIME database, using localedef or locale-gen.
Here is a somewhat helpful link:

http://www.regatta.cs.msu.su/doc/usr/share/man/info/ru_RU/a_doc_lib/files/aixfiles/LC_TIME.htm


Aside from this issue, the code has obvious limitations built into the
design, at least ns_parsehttptime. For some reason, ns_parsehttptime
uses a return value of 0 to indicate failure. Probably a value of NULL
should have been used instead. However, this will only be a problem if
we need to maintain documents created in 1970. 

The other issue is that ns_parsehttptime, which is based upon RFC 1123,
should be somewhat forgiving in parsing the time components. It clearly
fails when the day number is 1-9 with a leading blank space. Probably
the MakeNum API helper should be modified to test the result ranges for
each number, and somehow provide feedback on how much  buffer was
consumed. 

tom jackson

On Mon, 2009-05-11 at 09:02 +0200, Gustaf Neumann wrote:
 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 
  lists...@listserv.aol.com 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 
 lists...@listserv.aol.com 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 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1

2009-05-11 Thread Alexey Pechnikov
Hello!

On Monday 11 May 2009 11:02:09 Gustaf Neumann wrote:
 What operating system do you use?

My operation system is debian lenny.

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


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

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1

2009-05-11 Thread Gustaf Neumann

Alexey Pechnikov schrieb:

My operation system is debian lenny.
  

Indeed, very strange.

To pin down the problem, compile the progam below and check
the output. It should show the same bug on your system.

I don't have a lenny system around to test, but at least in Ubuntu
8.0.4, everything works as expected.

I don't see, how the locale settings can influence the %d formatting
of stftime. But anyhow, it might be worth to check the output of

locale -k ru_RU.UTF-8 LC_TIME

on your system

hope, we are getting closer
-gustaf neumann

== time-format.c
#include time.h
#include stdio.h

int main() {
   time_t clock = 0;
   struct tm  time, *tmPtr=time;
   char   buf[40];

   tmPtr = gmtime_r(clock,tmPtr);
   strftime(buf, 40, %a, %d %b %Y %H:%M:%S GMT, tmPtr);
   fprintf(stderr,%s\n,buf);
}


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

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1

2009-05-10 Thread Tom Jackson
On Sun, 2009-05-10 at 22:03 +0400, Alexey Pechnikov wrote:
 Hello!
 
 On Sunday 10 May 2009 21:15:03 Tom Jackson wrote:
  Alexey: you can use the nstclsh shell to test if changing the locale
  makes any difference (in same location as your nsd file):
  
  ./bin/nstclsh
  % set ::env(LANG) en_US.UTF-8
  % ns_httptime 0
  Thu, 01 Jan 1970 00:00:00 GMT
  % 
 
 I'm get wrong result:
 
 $ nstclsh
 % set ::env(LANG) en_US.UTF-8
 en_US.UTF-8
 % ns_httptime 0
 Thu, 1 Jan 1970 00:00:00 GMT
 %

I wonder if you have to set this before your start nstclsh?

Anyway, whatever is causing the problem has to do with your setup. At
least you can test it with nstclsh and once solved there should work for
your AOLserver install.

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

% set seconds 0
0
% clock format $seconds -format %a, %d %b %Y %H:%M:%S %Z -gmt 1

If that works/doesn't you might also try whatever tclsh came with your
system.

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. 

Strange.

tom jackson


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

To Remove yourself from this list, simply send an email to 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.


Re: [AOLSERVER] Fwd: [AOLSERVER] ns_httptime format error in AOL 4.5.1

2009-05-10 Thread Alexey Pechnikov
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 
lists...@listserv.aol.com with the
body of SIGNOFF AOLSERVER in the email message. You can leave the Subject: 
field of your email blank.