mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-7094 Set encoding to UTF-8 for reading Unicode spoof data files.
X-SVN-Rev: 28304
This commit is contained in:
parent
00a84e6d99
commit
9fa040e389
1 changed files with 3 additions and 3 deletions
|
@ -120,9 +120,9 @@ public class SpoofCheckerTest extends TestFmwk {
|
|||
|
||||
try {
|
||||
fileName = "unicode" + File.separator + "confusables.txt";
|
||||
confusables = TestUtil.getDataReader(fileName);
|
||||
confusables = TestUtil.getDataReader(fileName, "UTF-8");
|
||||
fileName = "unicode" + File.separator + "confusablesWholeScript.txt";
|
||||
confusablesWholeScript = TestUtil.getDataReader(fileName);
|
||||
confusablesWholeScript = TestUtil.getDataReader(fileName, "UTF-8");
|
||||
|
||||
rsc = builder.setData(confusables, confusablesWholeScript).build();
|
||||
} catch (java.io.IOException e) {
|
||||
|
@ -504,7 +504,7 @@ public class SpoofCheckerTest extends TestFmwk {
|
|||
try {
|
||||
// Read in the confusables.txt file. (Distributed by Unicode.org)
|
||||
String fileName = "unicode" + File.separator + "confusables.txt";
|
||||
BufferedReader confusablesRdr = TestUtil.getDataReader(fileName);
|
||||
BufferedReader confusablesRdr = TestUtil.getDataReader(fileName, "UTF-8");
|
||||
|
||||
// Create a default spoof checker to use in this test.
|
||||
SpoofChecker sc = new SpoofChecker.Builder().build();
|
||||
|
|
Loading…
Add table
Reference in a new issue