Minor Map Error

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

Post Reply
HamburgerHelper1
Posts: 702
Joined: Sat Feb 22, 2014 2:58 pm

Minor Map Error

Post by HamburgerHelper1 »

In the INT-422 map file the Image reference GIF:INT-422.JPG the extension is in upper case while the actual image INT-422.jpg is in lower case.
In Linux this causes the image not to be displayed. I believe windows is not case sensitive to this though.
Is there any established standard to use in the map files ?
Barf
Expert
Posts: 1524
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

Some systems have case sensitive file systems, some have case insensitive file systems, some have "case preserving" (preserves case when creating, matches case insensitively when opening). The only sensible requirement is:

Programs should be written in a portable way, i.e. to run on all types of file systems.

This means that:

1. File references have to be in the correct case, i.e. the way the file resides on the disk. (Otherwise it will break on case sensitive systems.)
2. File names must not differ only in case. (Otherwise it will break on case insensitive/case preserving systems.)

It appears most natural to rename .JPG files to .jpg.
mathdon
Expert
Posts: 4726
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Post by mathdon »

Barf wrote:It appears most natural to rename .JPG files to .jpg.
It is about time this was rationalized. I have now converted all the upper case extensions to lower case - 7 RDFs and 7 JPGs - and the 11 references to JPG in map files. There were no files with upper case MAP. This is already in the SVN and will be in the next official release of RMIR which I expect to issue shortly.
Graham
Post Reply