Hello,
catopen() function behaves differently on solaris-SPARC and solaris-opteron
platforms.
If NLSPATH is exported pointing to NLSPATH=/home/expert/msg/%N and test.cat
file is in /home/expert/msg/ directory in that case
if we call :
rc = catopen("test", 0)
then on solaris-sparc it returns -1 whereas on solaris-opteron platform it
succeeds.
I think it is working as expected on solaris-SPARC but on solaris-x86 it may be
bug.
From catopen manual :
++++++++++++++
nl_catd catopen(const char *name, int oflag);
….
….
The full set of metacharacters is:
%N The value of the name parameter passed to catopen()
….
…
RETURN VALUES
Upon successful completion, catopen() returns a message
catalog descriptor for use on subsequent calls to cat-
gets() and catclose(). Otherwise it returns (nl_catd) -1.
...
...
ERRORS
The catopen() function may fail if:
...
...
ENOENT The message catalogue does not exist or the
name argument points to an empty string.
...
...
++++++++++++++++++
From above if message catalog file doesn't exist catopen should return
-1(ENOENT), but here on solaris-x86 it succeeds instead of returning -1.
Thanks,
Mukesh
--
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]