You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Thorsten Schöning (Jira)" <lo...@logging.apache.org> on 2020/08/07 16:45:00 UTC

[jira] [Resolved] (LOGCXX-261) DateTimeDateFormatTestCase fails with Sun Studio 11 on Solaris

     [ https://issues.apache.org/jira/browse/LOGCXX-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thorsten Schöning resolved LOGCXX-261.
--------------------------------------
    Resolution: Won't Fix

Because we are trying to reduce the backlog of open issues, I'm closing this one right now. The project lacks developers and tries to reduce the variances in the build, supported platforms etc. and has therefore introduced support for CMAKE. This should be used first instead of trying to patch the code base.

> DateTimeDateFormatTestCase fails with Sun Studio 11 on Solaris
> --------------------------------------------------------------
>
>                 Key: LOGCXX-261
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-261
>             Project: Log4cxx
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 0.10.0
>            Reporter: Curt Arnold
>            Assignee: Curt Arnold
>            Priority: Major
>
> On Apr 1, 2008, at 5:08 AM, Jostein Tveit wrote:
> Curt Arnold <ca...@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.
> -- 
> Jostein Tveit <jo...@pvv.ntnu.no>



--
This message was sent by Atlassian Jira
(v8.3.4#803005)