--- OOO320_m19_ori/sc/source/filter/excel/xestyle.cxx 2010-05-26 23:30:44.000000000 +0700 +++ OOO320_m19_ori/sc/source/filter/excel/xestyle.cxx 2010-07-16 17:50:08.188256700 +0700 @@ -1327,8 +1327,15 @@ String XclExpNumFmtBuffer::GetFormatCode } aFormatStr = pEntry->GetMappedFormatstring( *mpKeywordTable, *mxFormatter->GetLocaleData() ); + xub_StrLen pos; if( aFormatStr.EqualsAscii( "Standard" ) ) aFormatStr.AssignAscii( "General" ); + else if( ( pos = aFormatStr.SearchAscii("[~buddhist]", 0) ) != STRING_NOTFOUND ) + aFormatStr.ReplaceAscii( pos, 11, "[$-107041E]", 11 ); + else if( ( pos = aFormatStr.SearchAscii("[~hijri]", 0) ) != STRING_NOTFOUND ) + aFormatStr.ReplaceAscii( pos, 8, "[$-1060401]", 11); + else if( ( pos = aFormatStr.SearchAscii("[~persian]", 0) ) != STRING_NOTFOUND ) + aFormatStr.ReplaceAscii( pos, 10, "[$-3060429]", 11 ); } } else