]> granicus.if.org Git - icu/commitdiff
ICU-7881 accept a list .dat file (for -a -r -x) whose name differs from the ToC prefi...
authorMarkus Scherer <markus.icu@gmail.com>
Wed, 15 May 2013 20:10:55 +0000 (20:10 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Wed, 15 May 2013 20:10:55 +0000 (20:10 +0000)
X-SVN-Rev: 33659

icu4c/source/tools/toolutil/pkg_icu.cpp

index 87ed0914f13096bf29f81f7afd618f29c4c7e783..e543220a05697ff1fafd077928539fff0ba4fe8d 100644 (file)
@@ -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