Hello, everyone:
I have a question about ICU4C..
My goal:
>>> To generate a "icudt38l-us-zh.dat" file for China region, where
"zh" indicates it's for China.
Result:
>>> Failed, due to "helper.sh" doesn't help me to do so
successfully.
My steps:
1. change in "external/icu4c/stubdata/Android.mk" for Chinese, take
Japanese change in this file as example and make similar changes.
2. make a new directory named "external/icu4c/stubdata/cfg-us-zh/",
copy everything from "external/icu4c/stubdata/cfg-us" to "external/
icu4c/stubdata/cfg-us-zh", and modify the "res_index.txt" under each
sub-folders by removing unnecessary contents and adding Chinese
contents into them, and change "icudt38l.txt" in the same manner.
3. run "./helper.sh us-zh" to generate ".dat" file.
----> Result: Failed, due to $TOOL in "helper.sh" is pointing to a
invalid path.
Change "./helper.sh" and change $TOOL to a valid path where contains
the "genrb/icupkg" tool (I've installed ICU on my Ubuntu before)
4. run "./helper.sh us-zh" AGAIN.
----> Result: Failed. error log shows:
"icupkg/ucnv_enumDependencies(): unsupported _MBCSHeader.version
5.3"
I remove all the ".cnv" from "cfg-us-zh/icudt38l.txt" and run "./
helper.sh us-zh" AGAIN, "icudt38l-us-zh.dat" is successfully
generated, but this is definitely NOT what I expected because it
contains NO ".cnv" for Chinese.
5. I tried to run "./helper.sh us-japan" to see if it works for
Japanese, but failed due to same reason as in 4th step.
I am wondering if anyone else has successfully generated a ".dat"
file? And how to?
Thanks a lot!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---