-
Key: CORBA26-87
-
Legacy Issue Number: 3075
-
Status: closed
-
Source: Fujitsu ( Masayoshi Shimamura)
-
Summary:
I have a question about GIOP wstring encoding. Section "15.3.2.7 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).For example,
"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
-
Disposition Summary:
see above
-
Updated: Fri, 6 Mar 2015 20:58 GMT