Issue 102505 - reg{compare,view,merge} is unable to open types.rdb
reg{compare,view,merge} is unable to open types.rdb
Status: CONFIRMED
Product: porting
Classification: Code
Component: code
OOO310m9
PowerPC other
: P3 trivial (vote)
: ---
Assigned To: Martin Hollmichel
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-04 22:12 UTC by robert
Modified: 2014-01-29 09:54 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation on: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description robert 2009-06-04 22:12:30 UTC
Hi

On the two big endian architectures i tried (sparc64 and powerpc) these programs
are unable to open types.rdb. I was not able to figure why just yet.

macppc-g5# ktrace ./registry/unxobsd.pro/bin/regview
offapi/type_reference/types.rdb 
open registry "offapi/type_reference/types.rdb" failed

The output of ktrace:
http://blade2k.humppa.hu/ktrace.out

Of course types.rdb is there and readable. What I suspect is that
convertToFileUrl() fails to return the correct string

       OUString regName( convertToFileUrl(argv[1]) );

        printf("%s\n", regName.pData);
        printf("%s\n", regName.pData->buffer);

        if (reg_openRegistry(regName.pData, &hReg, REG_READONLY))
        {
                fprintf(stderr, "open registry \"%s\" failed\n", argv[1]);
                exit(1);
        }

Both of my printfs are returning an empty string.
What I suspect is that it's an endianess problem.