ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0005953Part 01: TTCN-3 Core LanguageClarificationpublic28-10-2011 13:4110-07-2012 19:52
Gyorgy Rethy 
Ina Schieferdecker 
normalminorhave not tried
closedfixed 
v4.3.1 (published 2011-06) 
v4.5.1 (published 2013-04)v4.5.1 (published 2013-04) 
C.23 and C.24
L.M.Ericsson
0005953: String length in oct2str and oct2char predefined functions
The textual description of the functions mentions just "length" without specifying what does it mean (i.e. no. of characters or what lenghtof would return).

Proposed solution (different per function):
C.23 Octetstring to character string
...
"The resulting charstring shall have the same length as the incoming octetstring." -> "The resulting charstring shall have the same number of characters as the incoming octetstring."

C.24 Octetstring to character string, version II
...
"The resulting charstring shall have the same length as the input octetstring." -> "The resulting charstring shall have the same string length (what lenghtof would return) as the input octetstring."
No tags attached.
Issue History
28-10-2011 13:41Gyorgy RethyNew Issue
28-10-2011 13:41Gyorgy RethyClause Reference(s) => C.23 and C.24
28-10-2011 13:41Gyorgy RethySource (company - Author) => L.M.Ericsson
28-11-2011 09:46Jacob Wieland - SpirentNote Added: 0010329
28-11-2011 09:58Gyorgy RethyAssigned To => Ina Schieferdecker
28-11-2011 09:58Gyorgy RethyStatusnew => assigned
28-11-2011 09:58Gyorgy RethyTarget Version => Edition 4.4.1
28-11-2011 10:06Gyorgy RethyNote Added: 0010331
28-11-2011 10:07Gyorgy RethyAssigned ToIna Schieferdecker =>
28-11-2011 10:07Gyorgy RethyStatusassigned => new
28-11-2011 10:08Gyorgy RethyNote Edited: 0010331
28-11-2011 10:08Gyorgy RethyNote Edited: 0010331
28-11-2011 10:08Gyorgy RethyAssigned To => Ina Schieferdecker
28-11-2011 10:08Gyorgy RethyStatusnew => assigned
28-11-2011 10:39Jacob Wieland - SpirentNote Added: 0010337
28-11-2011 12:50Ina SchieferdeckerNote Added: 0010341
28-11-2011 12:50Ina SchieferdeckerAssigned ToIna Schieferdecker => Gyorgy Rethy
30-11-2011 11:04Gyorgy RethyNote Added: 0010431
30-11-2011 11:05Gyorgy RethyStatusassigned => resolved
02-12-2011 13:46Gyorgy RethyAssigned ToGyorgy Rethy => Ina Schieferdecker
02-12-2011 13:46Gyorgy RethyStatusresolved => feedback
02-12-2011 13:46Gyorgy RethyResolutionopen => reopened
02-12-2011 13:46Gyorgy RethyNote Added: 0010521
02-12-2011 13:47Gyorgy RethyStatusfeedback => resolved
02-12-2011 13:47Gyorgy RethyResolutionreopened => fixed
02-12-2011 13:47Gyorgy RethyFixed in Version => Edition 4.4.1
09-07-2012 17:15Ina SchieferdeckerFixed in VersionEdition 4.4.1 =>
09-07-2012 17:15Ina SchieferdeckerTarget VersionEdition 4.4.1 => Edition 4.5.1
10-07-2012 19:52Ina SchieferdeckerNote Added: 0010781
10-07-2012 19:52Ina SchieferdeckerStatusresolved => closed
10-07-2012 19:52Ina SchieferdeckerFixed in Version => Edition 4.5.1

Notes
(0010329)
Jacob Wieland - Spirent   
28-11-2011 09:46   
I don't think that

"The resulting charstring shall have the same string length (what lenghtof would return) as the input octetstring."

would be correct as lengthof returns half the number of characters for octetstrings while for charstrings, it is obviously the number of characters.
(0010331)
Gyorgy Rethy   
28-11-2011 10:06   
(edited on: 28-11-2011 10:08)
For C.24 it is OK, but your explanation and the proposed text are contradicting for C.23; take the example from the standard: oct2str('4469707379'O) = "4469707379"
lengthof('4469707379'O) -> results 5
lengthof("4469707379") -> results 10
lengthof doesn't return the same value for the octet~ and charstrings.

(0010337)
Jacob Wieland - Spirent   
28-11-2011 10:39   
Oh, I retract my comment as the proposal was about the oct2char function where, of course, lengthof(oct2char(xxx)) == lengthof(xxx)
(0010341)
Ina Schieferdecker   
28-11-2011 12:50   
I would propose:

C.23: "The resulting charstring shall have double as many characters as the input octetstring has octets."

C.24: "The resulting charstring shall have as many characters as the input octetstring has octets."
(0010431)
Gyorgy Rethy   
30-11-2011 11:04   
OK with me.
(0010521)
Gyorgy Rethy   
02-12-2011 13:46   
Reopening the CR just to assign to Ina.
(0010781)
Ina Schieferdecker   
10-07-2012 19:52   
Implemented as proposed.