mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-9535 merge from r32333
X-SVN-Rev: 32365
This commit is contained in:
parent
da2afe3e0e
commit
9fcdf69b9f
1 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/********************************************************************
|
||||
* COPYRIGHT:
|
||||
* Copyright (c) 2009-2011, International Business Machines Corporation and
|
||||
* Copyright (c) 2009-2012, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
********************************************************************/
|
||||
/********************************************************************************
|
||||
|
@ -147,17 +147,20 @@ static void TestUSpoofCAPI(void) {
|
|||
f = fopen(fileName, "rb");
|
||||
TEST_ASSERT_NE(f, NULL);
|
||||
confusables = malloc(3000000);
|
||||
if (f != NULL) {
|
||||
confusablesLength = fread(confusables, 1, 3000000, f);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
||||
strcpy(fileName, dataSrcDir);
|
||||
strcat(fileName, U_FILE_SEP_STRING "unidata" U_FILE_SEP_STRING "confusablesWholeScript.txt");
|
||||
f = fopen(fileName, "rb");
|
||||
TEST_ASSERT_NE(f, NULL);
|
||||
confusablesWholeScript = malloc(1000000);
|
||||
if (f != NULL) {
|
||||
confusablesWholeScriptLength = fread(confusablesWholeScript, 1, 1000000, f);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
rsc = uspoof_openFromSource(confusables, confusablesLength,
|
||||
confusablesWholeScript, confusablesWholeScriptLength,
|
||||
|
|
Loading…
Add table
Reference in a new issue