mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-1992 data packaging, update to uconv
X-SVN-Rev: 9454
This commit is contained in:
parent
917ddf24d7
commit
2f30c04d51
2 changed files with 8 additions and 2 deletions
|
@ -120,7 +120,7 @@ CLEAN :
|
|||
# Inference rule for creating resource bundles
|
||||
.txt.res:
|
||||
@echo Making Resource Bundle files
|
||||
"$(ICUTOOLS)\genrb" -s $(@D) -d $(@D) $(?F)
|
||||
"$(ICUTOOLS)\genrb" -t -p $(RESNAME) -s $(@D) -d $(@D) $(?F)
|
||||
|
||||
|
||||
$(RESSRC) : {"$(ICUTOOLS)"}genrb.exe
|
||||
|
|
|
@ -81,16 +81,22 @@ static void initMsg(const char *pname) {
|
|||
fprintf(stderr,
|
||||
"%s: warning: couldn't open bundle %s: %s\n",
|
||||
pname, UCONVMSG, u_errorName(err));
|
||||
#ifdef UCONVMSG_LINK
|
||||
fprintf(stderr,
|
||||
"%s: setAppData was called, internal data %s failed to load\n",
|
||||
UCONVMSG);
|
||||
#endif
|
||||
|
||||
err = U_ZERO_ERROR;
|
||||
/* that was try #1, try again with a path */
|
||||
uprv_strcpy(dataPath, u_getDataDirectory());
|
||||
uprv_strcat(dataPath, U_FILE_SEP_STRING);
|
||||
uprv_strcat(dataPath, UCONVMSG);
|
||||
|
||||
gBundle = u_wmsg_setPath(dataPath, &err);
|
||||
if (U_FAILURE(err)) {
|
||||
fprintf(stderr,
|
||||
"%s: warning: couldn't open bundle %s: %s\n",
|
||||
"%s: warning: still couldn't open bundle %s: %s\n",
|
||||
pname, dataPath, u_errorName(err));
|
||||
fprintf(stderr, "%s: warning: messages will not be displayed\n", pname);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue