View previous topic :: View next topic |
Author |
Message |
HamburgerHelper1
Joined: 22 Feb 2014 Posts: 580
|
Posted: Fri Feb 11, 2022 9:50 am Post subject: Minor Map Error |
|
|
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 ? |
|
Back to top |
|
|
Barf Expert
Joined: 24 Oct 2008 Posts: 1416 Location: Munich, Germany |
Posted: Fri Feb 11, 2022 11:22 am Post subject: |
|
|
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. |
|
Back to top |
|
|
mathdon Expert
Joined: 22 Jul 2008 Posts: 4524 Location: Cambridge, UK |
Posted: Sat Feb 12, 2022 10:37 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|