We're updating the issue view to help you get more done. 

ICU genrb better error information request

Description

The following code improves genrb error messages:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 *** parse.c~ Fri Aug 13 11:33:04 1999 --- parse.c Wed Sep 22 15:50:22 1999 *************** *** 209,214 **** if(FAILURE(*status)) goto finish; if(uhash_get(data, uhash_hashUString(tag.fChars)) != 0) { *status = INVALID_FORMAT_ERROR; ! setErrorText("Duplicate tag name detected"); goto finish; } --- 209,218 ---- if(FAILURE(*status)) goto finish; if(uhash_get(data, uhash_hashUString(tag.fChars)) != 0) { + char *s; *status = INVALID_FORMAT_ERROR; ! s = icu_malloc(1024); ! strcpy(s, "Duplicate tag name detected: "); ! u_austrcpy(s+strlen(s), tag.fChars); ! setErrorText(s); goto finish; }

Status

Assignee

TracBot

Reporter

TracBot

Labels

Reviewer

None

Time Needed

None

Start date

None

Components

Priority

assess