Legacy Issue Number: 3075
Source: Fujitsu ( Masayoshi Shimamura)
I have a question about GIOP wstring encoding. Section "22.214.171.124 Strings
and Wide Strings" in CORBA 2.3.1 says:
For GIOP version 1.1, a wide string is encoded as an unsigned long
indicating the length of the string in octets or unsigned integers
(determined by the transfer syntax for wchar) followed by the
individual wide characters. Both the string length and contents
include a terminating null. The terminating null character for a
wstring is also a wide character.
In the sentence above, I believe that the "length" represents number of
octets (in the case of byte oriented codeset) or number of unsigned
integers (in the case of non-byte oriented codeset).
"abc" (ASCII code) ----> length is 4 (including one null terminate)
L"abc" (Unicode, USC2) ----> length is 4 (including one null terminate of wchar)
Is my understanding right?
Reported: CORBA 2.3.1 — Fri, 3 Dec 1999 05:00 GMT
Disposition: Resolved — CORBA 2.6.1
Updated: Fri, 6 Mar 2015 20:58 GMT