ICU-2438 fix wrtjava to handle multiple collation binaries

X-SVN-Rev: 13810
This commit is contained in:
Ram Viswanadha 2003-11-21 18:21:49 +00:00
parent 93c5cc25fe
commit 967b66a32b

View File

@ -93,8 +93,12 @@ static void write_tabs(FileStream* os){
T_FileStream_write(os," ",4);
}
}
#define ZERO 0x30
static const char* enc ="";
static UConverter* conv = NULL;
static char NUMBER = ZERO;
static int32_t
uCharsToChars( char* target,int32_t targetLen, UChar* source, int32_t sourceLen,UErrorCode* status){
@ -535,6 +539,11 @@ bin_write_java( struct SResource *res, UErrorCode *status) {
if(uprv_strcmp(srBundle->fLocale,"root")!=0){
uprv_strcat(fileName,"_");
uprv_strcat(fileName,srBundle->fLocale);
if(NUMBER > ZERO){
uprv_strcat(fileName, "_");
uprv_strcat(fileName, &NUMBER);
}
NUMBER++;
}
uprv_strcat(fileName,ext);