]> granicus.if.org Git - icu/commitdiff
ICU-9353 add symbols to dictionarydata.cpp for linker
authorMaxime Serrano <mserrano@svn.icu-project.org>
Fri, 17 Aug 2012 00:10:22 +0000 (00:10 +0000)
committerMaxime Serrano <mserrano@svn.icu-project.org>
Fri, 17 Aug 2012 00:10:22 +0000 (00:10 +0000)
X-SVN-Rev: 32187

icu4c/source/common/brkeng.cpp
icu4c/source/common/dictionarydata.cpp

index cfe1f04e36ea162439dedfd6cdb4b8e5abda2bd8..abc201e9f5411466bedd026044b2406d161408b1 100644 (file)
@@ -291,7 +291,7 @@ ICULanguageBreakFactory::loadDictionaryMatcherFor(UScriptCode script, int32_t /*
         int len = 0;
         if (extStart != NULL) {
             len = (int)(extStart - dictfname);
-            u_UCharsToChars(extStart+1, ext, sizeof(ext)); // null-terminates the buffer
+            u_UCharsToChars(extStart+1, ext, sizeof(ext)-1); // null-terminates the buffer
             u_UCharsToChars(dictfname, dictnbuf, len);
         }
         dictnbuf[len] = '\0'; // null-terminate
index 831fe5c3410390a28f4d6446107e993384f23a1e..8fdb2dc1cab2675befbf81dfa4563d0500d15a88 100644 (file)
@@ -17,6 +17,9 @@
 
 U_NAMESPACE_BEGIN
 
+const int32_t DictionaryData::TRIE_TYPE_BYTES;
+const int32_t DictionaryData::TRIE_TYPE_UCHARS;
+
 UCharsDictionaryMatcher::~UCharsDictionaryMatcher() {
     udata_close(file);
 }