Defect Number: 400095
Product: ACUCOBOL-GT
Module: Compiler
Machines Affected: All
Known Versions Affected: All
When using COPY RESOURCE in a COBOL program, the compiler tests the file type based on the contents of the file - not just the file extension. This content is sometimes called a magic number. The magic number used for JPG files was incorrect for some JPG files, causing them to be included in the COBOL object as data rather than as a JPEG image. This prevented the image from being properly loaded when the name was passed to W$BITMAP to load the image. This has been corrected.