mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-7881 accept a list .dat file (for -a -r -x) whose name differs from the ToC prefixes it contains
X-SVN-Rev: 33659
This commit is contained in:
parent
6dd8688bae
commit
7ce26afead
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2008-2012, International Business Machines
|
||||
* Copyright (C) 2008-2013, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -135,6 +135,8 @@ readList(const char *filesPath, const char *listname, UBool readContents, Packag
|
|||
fclose(file);
|
||||
} else if((listNameEnd-listname)>4 && 0==memcmp(listNameEnd-4, ".dat", 4)) {
|
||||
// read the ICU .dat package
|
||||
// Accept a .dat file whose name differs from the ToC prefixes.
|
||||
listPkg->setAutoPrefix();
|
||||
listPkg->readPackage(listname);
|
||||
} else {
|
||||
// list the single file itself
|
||||
|
|
Loading…
Add table
Reference in a new issue