From d282df1f5804aecd093ed1a721b8ae909a497ab5 Mon Sep 17 00:00:00 2001 From: Hokwon Song Date: Fri, 26 Apr 2013 17:10:14 +0900 Subject: [PATCH] Remove the workaround code to avoid ICU Number defect Change-Id: I6ad59fa7df630b4fb76a1b0c47886a095db9d341 Signed-off-by: Hokwon Song --- src/locales/FLcl_NumberFormatterImpl.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/locales/FLcl_NumberFormatterImpl.cpp b/src/locales/FLcl_NumberFormatterImpl.cpp index a1cb821..2be06a7 100644 --- a/src/locales/FLcl_NumberFormatterImpl.cpp +++ b/src/locales/FLcl_NumberFormatterImpl.cpp @@ -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; } -- 2.7.4