Issue 3350: Python Issue: Wide strings (python-ftf) Source: Camros Corporation (Mr. Jeffrey A. Marshall, jam@camros.com) Nature: Uncategorized Issue Severity: Summary: Section 1.3.2 describes how wide strings (and wide chars) are mapped to an implementation defined type. It says that this type supports being passed to the std. python "len" function -- is the returned value of this supposed to be the length in wchars or octets? It says that CORBA.wstr returns a wide character with the code point "c" in an implementation defined encoding. What happens if "c" not a valid code point? It says that "CORBA.word (CORBA.wstr (c)) == c". Does this also imply that "len (CORBA.wstr (c)) == 1" and that CORBA.word only takes a wide string with a length of one? What exceptions are raised if this is not true? Resolution: Since the len function always returns the number of elements in a sequence, it must return the numbe Revised Text: In 1.3.2, replace the bullet item len(X) returns the length of wide string X. by len(X) returns the the number of characters of wide string X. Actions taken: February 22, 2000: received issue October 10, 2000: closed issue Discussion: Since the len function always returns the number of elements in a sequence, it must return the number of wide characters. The exception to raise if CORBA.wstr is called with an invalid code point is unspecified; raising a BAD_PARAM exception is probably a sensible outcome. However, since the exact meaning of wstr is implementation defined, its error behaviour should be implementation-defined as well. End of Annotations:===== Date: Tue, 22 Feb 2000 16:02:59 -0500 (EST) Message-Id: <200002222102.QAA23006@emerald.omg.org> To: python-ftf@omg.org, issues@omg.org Subject: Python Issue: Wide strings From: "Jeffrey A. Marshall" X-Mailer: TWIG 2.1.1 Content-Type: text X-UIDL: 4e%"!0