Remove the workaround code to avoid ICU Number defect
authorHokwon Song <hokwon.song@samsung.com>
Fri, 26 Apr 2013 08:10:14 +0000 (17:10 +0900)
committerHokwon Song <hokwon.song@samsung.com>
Fri, 26 Apr 2013 08:10:14 +0000 (17:10 +0900)
Change-Id: I6ad59fa7df630b4fb76a1b0c47886a095db9d341
Signed-off-by: Hokwon Song <hokwon.song@samsung.com>
src/locales/FLcl_NumberFormatterImpl.cpp

index a1cb821..2be06a7 100644 (file)
@@ -132,14 +132,9 @@ _NumberFormatterImpl::Format(long number, String& str, _FieldPosition pos) const
 result
 _NumberFormatterImpl::Format(double number, String& str, _FieldPosition pos) const
 {
-       /*TODO: ICU 4.8 did not replace "," by a locale. So, it returns NaN even if a number is not NaN.
-       We are setting and restoring a system locale to "C".
-       It should be removed if ICU version is up.*/
-       setlocale(LC_ALL, "C");
        IcuUnicodeString icuStr;
        IcuFieldPosition icuPos = _LocaleData::GetIcuFieldPosition(pos);
        icuStr = __pIcuNumberFormatter->format(number, icuStr, icuPos);
-       setlocale(LC_ALL, "");
        str = _LocaleData::GetOspString(icuStr);
        return E_SUCCESS;
 }