Jostein Tveit <[EMAIL PROTECTED]> writes:

> Curt Arnold <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>

Reply via email to