ICU-1409 make sure uprops.dat is loaded before getting the Unicode version from it
X-SVN-Rev: 6905
This commit is contained in:
parent
e010a39eca
commit
6a40576785
@ -1032,7 +1032,11 @@ u_charCellWidth(UChar32 ch)
|
||||
|
||||
void u_getUnicodeVersion(UVersionInfo versionArray) {
|
||||
if(versionArray!=NULL) {
|
||||
uprv_memcpy(versionArray, dataVersion, U_MAX_VERSION_LENGTH);
|
||||
if(HAVE_DATA) {
|
||||
uprv_memcpy(versionArray, dataVersion, U_MAX_VERSION_LENGTH);
|
||||
} else {
|
||||
uprv_memset(versionArray, 0, U_MAX_VERSION_LENGTH);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user