summaryrefslogtreecommitdiffstats
path: root/libcore/icu
diff options
context:
space:
mode:
authorHao Feng <hao.feng@intel.com>2009-03-20 16:15:16 +0800
committerHao Feng <hao.feng@intel.com>2009-03-20 16:15:16 +0800
commitd697232e8b2e0432e60db427735d603ea528c113 (patch)
treef438c5906daf01d601b27f7d56cb4c2b76583f76 /libcore/icu
parent88f28cad4d6617b4f82f1cd752a7a9b11a555561 (diff)
downloadandroid_dalvik-d697232e8b2e0432e60db427735d603ea528c113.tar.gz
android_dalvik-d697232e8b2e0432e60db427735d603ea528c113.tar.bz2
android_dalvik-d697232e8b2e0432e60db427735d603ea528c113.zip
add comments for the UTF-8 string creation patch
Diffstat (limited to 'libcore/icu')
-rw-r--r--libcore/icu/src/main/native/ResourceInterface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcore/icu/src/main/native/ResourceInterface.cpp b/libcore/icu/src/main/native/ResourceInterface.cpp
index 5f9d442f4..442d6882a 100644
--- a/libcore/icu/src/main/native/ResourceInterface.cpp
+++ b/libcore/icu/src/main/native/ResourceInterface.cpp
@@ -1207,7 +1207,8 @@ endOfCalendar:
intCurrencySymbol = env->NewStringUTF("XXX");
}
if(currencySymbol == NULL) {
- currencySymbol = env->NewStringUTF("\u00a4");
+ // creating a new string explicitly with the UTF-8 encoding of "\u00a4"
+ currencySymbol = env->NewStringUTF("\xc2\xa4");
}
counter += 2;