Skip to content

Conversation

@karthikbodu
Copy link

No description provided.

@per-ok
Copy link

per-ok commented Dec 29, 2022

@karthikbodu I believe you are incorrect. A normal line break in the SMS context consists of two characters called CR and LF. (CR and LF corresponds to '\r' and '\n'.) They shall be counted as separate characters, which they are in the current implementation.
The tradition from the C language, where the '\n' character has been interpreted as the CR and LF combined does not apply here.

(You may of course create your own "compiler" on top of the current solution that does this for you, but the current solution is correct.)

See chapter 4 in ETSI TS 123 038 v 10.0.0. (I know there are later versions, but I cannot see any reason for changing this. Backwards compatibility is too important.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants