logging-log4cxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jostein Tveit <joste...@pvv.ntnu.no>
Subject Re: [VOTE] log4cxx 0.10.0 release candidate 6
Date Thu, 03 Apr 2008 07:06:06 GMT
Jostein Tveit <josteitv@pvv.ntnu.no> writes:

> Curt Arnold <carnold@apache.org> writes:
>
>> On Mar 31, 2008, at 12:49 PM, Jostein Tveit wrote:
>>
>>> datetimedateformattestcase fails with
>>> Line 213: expected <avr>, but saw <Apr>
>>
>> In this unit test, the locale is set to fr_FR and the abbreviated
>> name  for the month of April generated by calling
>> SimpleDateFormat and also  by calling
>> DateTimeDateFormatTestCase::formatDate.  These are expected  to
>> give the same value, but apparently don't with the
>> DateTimeDateFormatTestCase::formatDate apparently returning
>> "avr" (abbreviation for Avril) and SimpleDateFormat::format
>> returning  "Apr".  The comparison function is similar but simpler
>> than the  SimpleDateFormat, but should be expected to result in
>> the same value.   The most significant differences is that the
>> DateTimeDateFormatTestCase::formatDate() uses std::time_put<char>
>> and  SimpleDateFormat would use std::time_put<wchar_t>.  It could
>> be that  implementation of standard C++ library does not give
>> consistent  results when the character type is changed.
>
> It seems like a bug in the Sun standard C++ library.
> It actually gives different results depending on whether
> std::time_put<wchar_t> or std::time_put<char> is used.

Confirmed as a bug by Sun.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6682914

-- 
Jostein Tveit <josteitv@pvv.ntnu.no>

Mime
View raw message