Author: zooey Date: 2010-07-02 20:40:04 +0200 (Fri, 02 Jul 2010) New Revision: 37353 Changeset: http://dev.haiku-os.org/changeset/37353/haiku Modified: haiku/branches/developer/zooey/posix-locale/src/system/libroot/posix/locale/ICULocaleBackend.cpp Log: * implemented SetToPosix() for TimeData. Modified: haiku/branches/developer/zooey/posix-locale/src/system/libroot/posix/locale/ICULocaleBackend.cpp =================================================================== --- haiku/branches/developer/zooey/posix-locale/src/system/libroot/posix/locale/ICULocaleBackend.cpp 2010-07-02 18:37:56 UTC (rev 37352) +++ haiku/branches/developer/zooey/posix-locale/src/system/libroot/posix/locale/ICULocaleBackend.cpp 2010-07-02 18:40:04 UTC (rev 37353) @@ -742,9 +742,23 @@ status_t result = CategoryData::SetToPosix(); if (result == B_OK) { - strcpy(sDecimalPoint, sPosixLocaleConv.decimal_point); - strcpy(sThousandsSep, sPosixLocaleConv.thousands_sep); - strcpy(sGrouping, sPosixLocaleConv.grouping); + for (int i = 0; i < 12; ++i) { + strcpy(sMon[i], sPosixLCTimeInfo.mon[i]); + strcpy(sMonth[i], sPosixLCTimeInfo.month[i]); + strcpy(sAltMonth[i], sPosixLCTimeInfo.alt_month[i]); + } + for (int i = 0; i < 7; ++i) { + strcpy(sWday[i], sPosixLCTimeInfo.wday[i]); + strcpy(sWeekday[i], sPosixLCTimeInfo.weekday[i]); + } + strcpy(sTimeFmt, sPosixLCTimeInfo.X_fmt); + strcpy(sDateFmt, sPosixLCTimeInfo.x_fmt); + strcpy(sDateTimeFmt, sPosixLCTimeInfo.c_fmt); + strcpy(sAM, sPosixLCTimeInfo.am); + strcpy(sPM, sPosixLCTimeInfo.pm); + strcpy(sDateTimeZoneFmt, sPosixLCTimeInfo.date_fmt); + strcpy(sMdOrder, sPosixLCTimeInfo.md_order); + strcpy(sAmPmFmt, sPosixLCTimeInfo.ampm_fmt); } return result;