Opened 9 years ago

Closed 9 years ago

#838 closed defect (fixed)

Null characters confuse Hemlock

Reported by: svspire Owned by:
Priority: major Milestone:
Component: IDE Version: trunk
Keywords: Hemlock Cc:

Description

A #\null character in a lisp file causes the remainder of the file (after the #\Null) to quietly not appear if you open such a file in Hemlock in the Cocoa IDE.

If you then save this file, the file gets truncated after the #\null character.

Leaving aside the issue of how such a character would find its way into a Lisp file in the first place, this is certainly poor behavior on the part of the editor. Other utilities in the IDE (like the Search Files grepper) don't seem to have a problem with #\null characters in files.

Attachments (1)

ccl-null-character-bug.lisp.zip (926 bytes) - added by svspire 9 years ago.
File containing a #\null character

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by svspire

File containing a #\null character

comment:1 Changed 9 years ago by gb

  • Resolution set to fixed
  • Status changed from new to closed

(In [14698]) In LISP-STRING-FROM-NSSTRING, allow the NSString to contain embedded #\NUL characters.

Fixes ticket:838.

Note: See TracTickets for help on using tickets.