ICU-6393 Updated TestCharsetTestData to work on IBM JRE5/Windows - charsetForName to use the full path for the custom converter data with the classloader used for the test code itself.

X-SVN-Rev: 24294
This commit is contained in:
Yoshito Umaoka 2008-06-26 03:11:47 +00:00
parent abfdbf4208
commit 4904d60719

View File

@ -5012,7 +5012,8 @@ public class TestCharset extends TestFmwk {
CoderResult result = CoderResult.UNDERFLOW;
String charsetName = "test4";
CharsetProvider provider = new CharsetProviderICU();
Charset charset = ((CharsetProviderICU)provider).charsetForName(charsetName, "../dev/data/testdata");
Charset charset = ((CharsetProviderICU)provider).charsetForName(charsetName, "com/ibm/icu/dev/data/testdata",
this.getClass().getClassLoader());
CharsetEncoder encoder = charset.newEncoder();
CharsetDecoder decoder = charset.newDecoder();