ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0003268 | Part 01: TTCN-3 Core Language | Clarification | public | 25-04-2008 13:10 | 19-12-2008 13:59

Reporter | Gyorgy Rethy |
Assigned To | Ina Schieferdecker |
Priority | high | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v4.1.1 (published 2009-06) | Fixed in Version | v4.1.1 (published 2009-06) |
Clause Reference(s) | 6.1.1 d), 6.1.1 e), B.1.5
Source (company - Author) |

Summary | 0003268: Allowed content of a charstring is not completely degined

Description

The charstring definition today says:
"d) charstring: are types whose distinguished values are zero, one, or more characters of the version of ISO/IEC 646 [11] complying with the International Reference Version (IRV) as specified in clause 8.2 of ISO/IEC 646 [11].
NOTE 2: The IRV version of ISO/IEC 646 [11] is equivalent to the IRV version of the International Reference Alphabet (former International Alphabet No.5 - IA5), described in ITU-T Recommendation T.50 [16].
Values of charstring type shall be denoted by an arbitrary number (possibly zero) of characters from the relevant character set, preceded and followed by double quote (") or calculated using the predefined conversion function int2char with the positive integer value of their encoding as argument (see clause C.1).
NOTE 3: The predefined conversion function is able to return single-character-length values only.
In cases where it is necessary to define strings that include the character double quote (") the character is represented by a pair of double quotes on the same line with no intervening space characters.
EXAMPLE 4: The charstring "ab"cd" is written in TTCN-3 code as in the following constant declaration. Each of the 3 quote characters that are part of the string is preceeded by an extra quote character and the whole character string is delimited by quote characters, e.g.
var charstring vl_char:= """ab""cd""";"
The ISO646 clause 8.2 is attached to this CR for information. The use of control characters and DEL within the string is not specified (that are unvisible in most editors, except HT).

Steps To Reproduce |
Additional Information | It would make sense to allow control characters in the string (DEL is not a control character); they should not be part of the string value but tools could use them to format the string (e.g. breaking long pattern strings into lines). Alternatively control characters could be disallowed but introduce another formatting mechanism (e.g. concatenation) for string patterns.
Tags | No tags attached.

Relationships

related to | 0002976 | closed | Ina Schieferdecker | do not allow control characters in literal string denotation

Attached Files | ISO646_IRV.jpg (382,670) 25-04-2008 13:16 http://oldforge.etsi.org/mantis/file_download.php?file_id=1462&type=bug

Issue History
Date Modified | Username | Field | Change
25-04-2008 13:10 | Gyorgy Rethy | New Issue |
25-04-2008 13:10 | Gyorgy Rethy | Status | new => assigned
25-04-2008 13:10 | Gyorgy Rethy | Assigned To | => Ina Schieferdecker
25-04-2008 13:10 | Gyorgy Rethy | Clause Reference(s) | => 6.1.1 e), 6.1.1 f), B.1.5
25-04-2008 13:10 | Gyorgy Rethy | Source (company - Author) | =>
25-04-2008 13:16 | Gyorgy Rethy | Clause Reference(s) | 6.1.1 e), 6.1.1 f), B.1.5 => 6.1.1 d), 6.1.1 e), B.1.5
25-04-2008 13:16 | Gyorgy Rethy | Assigned To | Ina Schieferdecker => Thomas DeiÃŸ
25-04-2008 13:16 | Gyorgy Rethy | File Added: ISO646_IRV.jpg |
09-05-2008 11:26 | Ina Schieferdecker | Target Version | => Edition 4.1.1 (not yet published)
29-09-2008 07:32 | Thomas DeiÃŸ | Note Added: 0006920 |
29-09-2008 07:32 | Thomas DeiÃŸ | Assigned To | Thomas DeiÃŸ => Gyorgy Rethy
12-12-2008 16:01 | Ina Schieferdecker | Relationship added | related to 0002976
18-12-2008 11:48 | Gyorgy Rethy | Note Added: 0007734 |
18-12-2008 11:48 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Ina Schieferdecker
19-12-2008 08:49 | Thomas DeiÃŸ | Note Added: 0007749 |
19-12-2008 13:59 | Ina Schieferdecker | Status | assigned => resolved
19-12-2008 13:59 | Ina Schieferdecker | Resolution | open => fixed
19-12-2008 13:59 | Ina Schieferdecker | Fixed in Version | => Edition 4.1.1 (not yet published)
19-12-2008 13:59 | Ina Schieferdecker | Status | resolved => closed

Notes

(0006920)
Thomas DeiÃŸ
29-09-2008 07:32

CR 2976, resolved in edition 3.4.1 restricted literal values of charstring to contain non-control characters only. As such the literal values are completely defined.

(0007734)
Gyorgy Rethy
18-12-2008 11:48

The final wording of CR2976 is unclear to me. This one can be closed if the solution of CR2976 talks about graphical characters (even better to say "from SP (32) to TILDE (126)" explicitly) (non-graphical characters proposed by the CR originally would allow DEL that is in fact not allowed in TTCN-3 literal values).

(0007749)
Thomas DeiÃŸ
19-12-2008 08:49

Edition 3.4.1 states: 6.1.1.1.d: 'Values of charstring type shall be denoted by an arbitrary number (possibly zero) of non-control characters from the relevant character set, preceded and followed by double quote (")'
For me it would be ok to make this more explicit as suggested by Gyorgy. E.g. as
'Values of charstring type shall be denoted by an arbitrary number (possibly zero) of graphical characters from the relevant character set, preceded and followed by double quote ("). Graphical characters include the range from SP(32) to TILDE (126).'