ETSI's Bug Tracker - Part 01: TTCN-3 Core Language |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0005953 | Part 01: TTCN-3 Core Language | Clarification | public | 28-10-2011 13:41 | 10-07-2012 19:52 |
|
Reporter | Gyorgy Rethy | |
Assigned To | Ina Schieferdecker | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | v4.3.1 (published 2011-06) | |
Target Version | v4.5.1 (published 2013-04) | Fixed in Version | v4.5.1 (published 2013-04) | |
Clause Reference(s) | C.23 and C.24 |
Source (company - Author) | L.M.Ericsson |
|
Summary | 0005953: String length in oct2str and oct2char predefined functions |
Description | 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."
|
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
28-10-2011 13:41 | Gyorgy Rethy | New Issue | |
28-10-2011 13:41 | Gyorgy Rethy | Clause Reference(s) | => C.23 and C.24 |
28-10-2011 13:41 | Gyorgy Rethy | Source (company - Author) | => L.M.Ericsson |
28-11-2011 09:46 | Jacob Wieland - Spirent | Note Added: 0010329 | |
28-11-2011 09:58 | Gyorgy Rethy | Assigned To | => Ina Schieferdecker |
28-11-2011 09:58 | Gyorgy Rethy | Status | new => assigned |
28-11-2011 09:58 | Gyorgy Rethy | Target Version | => Edition 4.4.1 |
28-11-2011 10:06 | Gyorgy Rethy | Note Added: 0010331 | |
28-11-2011 10:07 | Gyorgy Rethy | Assigned To | Ina Schieferdecker => |
28-11-2011 10:07 | Gyorgy Rethy | Status | assigned => new |
28-11-2011 10:08 | Gyorgy Rethy | Note Edited: 0010331 | |
28-11-2011 10:08 | Gyorgy Rethy | Note Edited: 0010331 | |
28-11-2011 10:08 | Gyorgy Rethy | Assigned To | => Ina Schieferdecker |
28-11-2011 10:08 | Gyorgy Rethy | Status | new => assigned |
28-11-2011 10:39 | Jacob Wieland - Spirent | Note Added: 0010337 | |
28-11-2011 12:50 | Ina Schieferdecker | Note Added: 0010341 | |
28-11-2011 12:50 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => Gyorgy Rethy |
30-11-2011 11:04 | Gyorgy Rethy | Note Added: 0010431 | |
30-11-2011 11:05 | Gyorgy Rethy | Status | assigned => resolved |
02-12-2011 13:46 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Ina Schieferdecker |
02-12-2011 13:46 | Gyorgy Rethy | Status | resolved => feedback |
02-12-2011 13:46 | Gyorgy Rethy | Resolution | open => reopened |
02-12-2011 13:46 | Gyorgy Rethy | Note Added: 0010521 | |
02-12-2011 13:47 | Gyorgy Rethy | Status | feedback => resolved |
02-12-2011 13:47 | Gyorgy Rethy | Resolution | reopened => fixed |
02-12-2011 13:47 | Gyorgy Rethy | Fixed in Version | => Edition 4.4.1 |
09-07-2012 17:15 | Ina Schieferdecker | Fixed in Version | Edition 4.4.1 => |
09-07-2012 17:15 | Ina Schieferdecker | Target Version | Edition 4.4.1 => Edition 4.5.1 |
10-07-2012 19:52 | Ina Schieferdecker | Note Added: 0010781 | |
10-07-2012 19:52 | Ina Schieferdecker | Status | resolved => closed |
10-07-2012 19:52 | Ina Schieferdecker | Fixed in Version | => Edition 4.5.1 |
Notes |
|
|
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.
|
|
|
|
Oh, I retract my comment as the proposal was about the oct2char function where, of course, lengthof(oct2char(xxx)) == lengthof(xxx) |
|
|
|
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." |
|
|
|
|
|
|
Reopening the CR just to assign to Ina. |
|
|
|
|