|
From: Jeff G. <Jef...@mi...> - 2019-03-14 21:30:02
|
Hello Victor, Have you extracted *everything* from the icudt64l.dat file? And are you giving the path to the th.res file inside the extracted output folder? I get the same error when I only have the single th.res file all by itself: $ derb th.res $ derb: error 2 while opening resource file: U_MISSING_RESOURCE_ERROR (For example, if you only extract the one file, or if you copy the file to some other location/folder so that the .res file is all by itself) When I pass the path to the file (such that it is next to the other .res files) then the derb program works: $ derb ../data/out/build/icudt63l/th.res This seems like it might because it is trying to also open up the pool resource bundles, and it can’t find them if the file is all by itself in the folder. (Though the error message could/should likely be improved if that really is the case). Thanks, Jeff From: Victor Chang <vi...@go...> Sent: March 14, 2019 12:28 PM To: Jeff Genovy <Jef...@mi...> Cc: ICU support mailing list <icu...@li...>; Steven R. Loomis <sr...@ic...> Subject: Re: [icu-support] Fwd: How to inspect / dump icudt64l.dat? Hi, Jeff, I did put LD_LIBRARY_PATH in my previous email. If I don't set LD_LIBRARY_PATH, it shows > source/bin/derb: error while loading shared libraries: libicuio.so.64: cannot open shared object file: No such file or directory The same error is shown even though I include /bin in LD_LIBRARY_PATH. $ LD_LIBRARY_PATH=source/bin:source/lib source/bin/derb th.resderb: error 2 while opening resource file: U_MISSING_RESOURCE_ERROR > derb: error 2 while opening resource file: U_MISSING_RESOURCE_ERROR Victor On Thu, Mar 14, 2019 at 6:32 PM Jeff Genovy <Jef...@mi...<mailto:Jef...@mi...>> wrote: Hi Victor You might need to set the library path before running the tool: Assuming you have the ICU4C build output under "/mnt/icu-build-output", try using something like this: LD_LIBRARY_PATH=/mnt/icu-build-output/bin:/mnt/icu-build-output/lib /mnt/icu-build-output/bin/derb out/en.res Thanks, Jeff From: Victor Chang <vi...@go...<mailto:vi...@go...>> Sent: March 14, 2019 9:55 AM To: Jeff Genovy <Jef...@mi...<mailto:Jef...@mi...>> Cc: ICU support mailing list <icu...@li...<mailto:icu...@li...>>; Steven R. Loomis <sr...@ic...<mailto:sr...@ic...>> Subject: Re: [icu-support] Fwd: How to inspect / dump icudt64l.dat? Hi, Jeff, It does not seem to work on my Linux machine. $ derb th.res derb: error 2 while opening resource file: U_MISSING_RESOURCE_ERROR $ derb --version derb version 1.1 (ICU version 64.1). Related this open issue? https://unicode-org.atlassian.net/browse/ICU-10002<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Funicode-org.atlassian.net%2Fbrowse%2FICU-10002&data=02%7C01%7CJeff.Genovy%40microsoft.com%7Ce593606238ac4c1b16f408d6a8b32c3e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636881884831552294&sdata=8r%2B9tB7JAgTBxv2X%2Bgcl2kzopESx3Qo0%2BLmd5BMY1rY%3D&reserved=0> On Wed, Mar 13, 2019 at 6:02 PM Jeff Genovy <Jef...@mi...<mailto:Jef...@mi...>> wrote: Hi Victor, You should be able to use the "derb" tool convert the binary .res file into a .txt file. > derb path/to/en.res Should give you a file "en.txt" in the current directory. Thanks, Jeff From: Victor Chang via icu-support <icu...@li...<mailto:icu...@li...>> Sent: March 13, 2019 10:17 AM To: Steven R. Loomis <sr...@ic...<mailto:sr...@ic...>> Cc: Victor Chang <vi...@go...<mailto:vi...@go...>>; ICU support mailing list <icu...@li...<mailto:icu...@li...>> Subject: Re: [icu-support] Fwd: How to inspect / dump icudt64l.dat? Thanks Steven. After the step 2, I got a bunch of .res files, but they are binary files. Is there a way to decode the .res files? Victor On Wed, Mar 13, 2019 at 4:38 PM Steven R. Loomis <sr...@ic...<mailto:sr...@ic...>> wrote: Sure, use the "icupkg" tool that ICU builds. Step 1: create a list file with the list of data items: icupkg -l icudt64l.dat > icudt64l.lst Step 2: extract every item (-x) using that list: icupkg -x icud64l.lst icudt64l.dat On Wed, Mar 13, 2019 at 9:00 AM Victor Chang via icu-support <icu...@li...<mailto:icu...@li...>> wrote: Hi, ICU support, I am debugging some ICU 64 data issue. Is there a way to dump icudt64l.dat into a human-readable format? Victor Chang | Software Engineer | vi...@go...<mailto:vi...@go...> _______________________________________________ icu-support mailing list - icu...@li...<mailto:icu...@li...> To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support Archives/Project<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Ficu-supportArchives%2FProject&data=02%7C01%7CJeff.Genovy%40microsoft.com%7Ce593606238ac4c1b16f408d6a8b32c3e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636881884831562298&sdata=ff3BjRbEfLtie0QmtVCRk1%2FQW1bPj5drMec6CQmGuKA%3D&reserved=0> Info: http://site.icu-project.org/contacts<https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsite.icu-project.org%2Fcontacts&data=02%7C01%7CJeff.Genovy%40microsoft.com%7Ce593606238ac4c1b16f408d6a8b32c3e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636881884831572310&sdata=%2BsMvZ6S8%2F8lsD62AZkE3n8Uz95FsB%2FOhtZq2emxJK18%3D&reserved=0> -- Victor Chang | Software Engineer | vi...@go...<mailto:vi...@go...> -- Victor Chang | Software Engineer | vi...@go...<mailto:vi...@go...> -- Victor Chang | Software Engineer | vi...@go...<mailto:vi...@go...> | 6 Pancras Square, King Cross, London N1C 4AG<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.google.com%2Fmaps%2Fplace%2F6%2BPancras%2BSquare%2C%2BKings%2BCross%2C%2BLondon%2BN1C%2B4AG&data=02%7C01%7CJeff.Genovy%40microsoft.com%7Ce593606238ac4c1b16f408d6a8b32c3e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636881884831582319&sdata=myhNWZbuz0jHhXfmjgu7dpSPIoFl5G%2B6085itBzRsiE%3D&reserved=0> |