PR# 11092 Literal null character in manifest string causes omission of following characters

Problem Report Summary
Submitter: prestoat2000
Category: EiffelStudio
Priority: Medium
Date: 2006/08/27
Class: Bug
Severity: Non-critical
Number: 11092
Release: 5.7.63002
Confidential: No
Status: Analyzed
Responsible:
Environment: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.7) Gecko/20060120 Solaris 10 on x86
Synopsis: Literal null character in manifest string causes omission of following characters

Description
Replace every occurrence of NULL in test.e with the null character (not %U but
an actual null character).  Compile.  Drop TEST in Editor.  Examine TEST in
Basic Text format and Clickable format.  In some cases, characters following
the first null in manifest string (including the trailing double-quote) are not displayed.

Perhaps literal null characters should not be included in manifest strings, but if they
are it is quite confusing to have following characters omitted from display.
To Reproduce

										
Problem Report Interactions
From:ted_eiffel    Date:2009/08/17    Download   
On windows, with the attached file null_char.e in which I use a byte of 0x0 as the null char (if I understand correctly the "real null char" you meant.), I got everything wiped out after the first 0x0 blank in basic view. In Flat view I got %U in verbatim strings and comments, a blank square in manifest strings. See attached image.

Attachment: null_char.e     Size:175
Attachment: null_char.PNG     Size:44676
From:prestoat2000    Date:2009/08/17    Download   
Problem occurs in both Basic and Clickable views.  In Basic view, nulls seem
to be ignored in comments but cause omission of following characters in
manifest strings.  In Clickable view, nulls in manifest strings are correctly
displayed as %U, but in verbatim strings and comments they cause omission of
following characters.

From:ted_eiffel    Date:2009/08/14    Status: Analyzed    Download   
Just to be sure, did you have the problem in Basic view or Click view or both?

From:prestoat2000    Date:2006/08/27    Download   
Attachments for problem report #11092

Attachment: test.e     Size:276
Attachment: test.ecf     Size:885