Post Reply 
Null character not correctly managed (bug)
11-18-2017, 11:36 PM
Post: #1
Null character not correctly managed (bug)
Hello,

The null character in a string is not correctly managed.
If you enter "AB\0DEF" in the HOME view, "AB" is displayed but when you copy the result (from the right of the screen), all the characters are displayed in the entry line.
SIZE("\0") returns 1.
SIZE("A\0BC"+"D") returns 2. So '+' doesn't managed characters after '\0'.
cat ("A","\0","B") displays "0undef0".

In my opinion the null character must be managed like other characters because the HP PPL language is an high level language, even if in C/C++ the null character is used for delimited the end of a string.

Best regards.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Null character not correctly managed (bug) - Dimitri - 11-18-2017 11:36 PM



User(s) browsing this thread: 1 Guest(s)