From 4904d60719d9e0ccdd6b550f806c2f7b359e9f8d Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Thu, 26 Jun 2008 03:11:47 +0000 Subject: [PATCH] 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 --- icu4j/src/com/ibm/icu/dev/test/charset/TestCharset.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/icu4j/src/com/ibm/icu/dev/test/charset/TestCharset.java b/icu4j/src/com/ibm/icu/dev/test/charset/TestCharset.java index 6779b2f9b0..5a627fd4dd 100644 --- a/icu4j/src/com/ibm/icu/dev/test/charset/TestCharset.java +++ b/icu4j/src/com/ibm/icu/dev/test/charset/TestCharset.java @@ -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();