Index: fpdfsdk/javascript/PublicMethods.cpp |
diff --git a/fpdfsdk/javascript/PublicMethods.cpp b/fpdfsdk/javascript/PublicMethods.cpp |
index 308163d4542f81bb02dda7e6c215e52b59dfad94..d5b961d61dfedecfba312534ee2e9fe99933f2c0 100644 |
--- a/fpdfsdk/javascript/PublicMethods.cpp |
+++ b/fpdfsdk/javascript/PublicMethods.cpp |
@@ -837,7 +837,7 @@ FX_BOOL CJS_PublicMethods::AFNumber_Format(IJS_Context* cc, |
} |
// for processing currency string |
- Value = CFX_WideString::FromLocal(strValue); |
+ Value = CFX_WideString::FromLocal(strValue.AsByteStringC()); |
std::wstring strValue2 = Value.c_str(); |
if (bCurrencyPrepend) |
@@ -1120,7 +1120,7 @@ FX_BOOL CJS_PublicMethods::AFPercent_Format( |
if (iNegative) |
strValue = "-" + strValue; |
strValue += "%"; |
- Value = CFX_WideString::FromLocal(strValue); |
+ Value = CFX_WideString::FromLocal(strValue.AsByteStringC()); |
#endif |
return TRUE; |
} |