The FITSKeyword JavaScript object represents a FITS header keyword in the PixInsight JavaScript Runtime (PJSR). Internally, FITSKeyword stores the three keyword components --name, value and comment-- as null terminated, 8-bit char C strings (dynamic char strings, implemented as instances of the IsoString PCL class).
The bug consists in that the FITSKeyword.name, FITSKeyword.value and FITSKeyword.comment properties wrongly interpret the internal character strings as 16-bit Unicode strings. As a result, only the characters stored at even positions within the strings are returned by these properties. For example, the BZERO keyword name is reported as 'BEO'. There is an evident risk of segmentation fault when these properties are accessed from JavaScript code, but this doesn't seem to happen in practice thanks to internal string allocation strategies (small strings are always allocated into larger chunks of memory initialized with zeros).
This bug has been reported by Mike Reid in
this thread of the development forum board. It is a regression in version 1.5 that we didn't discover in 1.6.0.
Workaround: None.
This bug has already been fixed in version 1.6.1, due for release during this week.
Sorry for the inconvenience.