Jeff Clites wrote:
On Apr 11, 2004, at 7:12 AM, Alberto Manuel Brandao Simoes wrote:same files, with l instead of b, as expected.
If it's still failing, then something else is going on.
If it is, then there's one more thing to try:
1) cd into icu/source/data/out/build
2) Execute this (which will create ja.res in /var/tmp if it succeeds):
../../../tools/genrb/genrb -k -s ../../locales -i . -d /var/tmp ja.txt
If that succeeds, then the above should have also works. If it fails, then send me the message it outputs, which should be similar to your above-reported output, but with a little additional diagnostic information.
Yes, fails!
[EMAIL PROTECTED] build]$ ../../../tools/genrb/genrb -k -s ../../locales -i . -d /var/tmp ja.txt
../../locales/ja.txt:17: warning: %Collation could not be constructed from CollationElements - check context!
../../locales/ja.txt:15: parse error. Stopped parsing with U_INVALID_FORMAT_ERROR
couldn't parse the file ja.txt. Error:U_INVALID_FORMAT_ERROR
Hmm, strange indeed. Looking at the ICU code, it appears that it's not finding a data file it needs at this stage (the error message is misleading)--I wonder if something failed to create it, but 'make' continued on?
What ".icu" files are in that directory (icu/source/data/out/build) for you? I have these (and I'd expect you'd have "l" rather than "b" in your prefix [little v. big endian]):
% ls *.icu icudt26b_cnvalias.icu icudt26b_tz.icu icudt26b_unames.icu icudt26b_invuca.icu icudt26b_ucadata.icu icudt26b_unorm.icu icudt26b_pnames.icu icudt26b_uidna.icu icudt26b_uprops.icu
I believe it's the "*_ucadata.icu" that it's failing to find.
So if that file's missing for you, we need to look for an earlier failure in the build. If it's there, then we can do some gdb investigating. Starting from the same directory as before:
It is there.
% gdb ../../../tools/genrb/genrb
Here the breakpoints go. I pointed with >>> <<< some weird poitns...
Breakpoint 1, udata_pathiter_init (iter=0xbfffde78, path=0x814a050 ".", item=0x811bbc8 "cnvalias", suffix=0xbfffde78 "_cnvalias.icu", doCheckLastFour=0 '\0') at udata.c:357 357 if(path == NULL) { (gdb) c Continuing.
Breakpoint 1, udata_pathiter_init (iter=0xbfffd658, path=0x814a050 ".", item=0x8112f3a "ucadata", suffix=0xbfffd658 "_ucadata.icu", doCheckLastFour=0 '\0') at udata.c:357 357 if(path == NULL) { (gdb) c Continuing.
Breakpoint 1, udata_pathiter_init (iter=0xbfffc7f8, path=0x814a050 ".", item=0x811ff40 "uprops", suffix=0xbfffc7f8 "_uprops.icu", doCheckLastFour=0 '\0') at udata.c:357 357 if(path == NULL) { (gdb) c Continuing.
Breakpoint 1, udata_pathiter_init (iter=0xbfffd568, path=0x814a050 ".", item=0x811fc03 "unorm", suffix=0xbfffd568 "_unorm.icu", doCheckLastFour= >>>>-65 '¿'<<<<) at udata.c:357 357 if(path == NULL) { (gdb) c Continuing.
Breakpoint 1, udata_pathiter_init (iter=0xbfffd618, path=0x814a050 ".",
item=0x81135f0 "invuca", suffix=0xbfffd618 "_invuca.icu",
doCheckLastFour=>>>>-65 '¿'<<<<) at udata.c:357
357 if(path == NULL) {
(gdb) c
Continuing.
../../locales/ja.txt:17: warning: %Collation could not be constructed from CollationElements - check context!
../../locales/ja.txt:15: parse error. Stopped parsing with U_INVALID_FORMAT_ERROR
couldn't parse the file ja.txt. Error:U_INVALID_FORMAT_ERROR
Program exited with code 03. (gdb)
Cheers