160 |
|
fprintf(stderr, "%s: cannot open\n", inpspec); |
161 |
|
return ""; |
162 |
|
} |
163 |
+ |
#ifndef _WIN32 /* XXX somehow broken on Windows */ |
164 |
|
len = lseek(fd, 0L, SEEK_END); |
165 |
|
if (len > 0) { |
166 |
|
lseek(fd, 0L, SEEK_SET); |
179 |
|
close(fd); |
180 |
|
return str; |
181 |
|
} |
182 |
+ |
#endif |
183 |
|
fp = fdopen(fd, "r"); /* not a regular file */ |
184 |
|
} |
185 |
|
/* reading from stream */ |
454 |
|
puts("\t\t<DetectorSpectrum>ASTM E308 1931 Z.dsp</DetectorSpectrum>"); |
455 |
|
break; |
456 |
|
case DSuprime: |
457 |
< |
puts("\t\t<Wavelength unit=\"Integral\">CIE-Z</Wavelength>"); |
457 |
> |
puts("\t\t<Wavelength unit=\"Integral\">CIE-u</Wavelength>"); |
458 |
|
puts("\t\tSourceSpectrum>CIE Illuminant D65 1nm.ssp</SourceSpectrum>"); |
459 |
|
puts("\t\t<DetectorSpectrum>ASTM E308 1931 u.dsp</DetectorSpectrum>"); |
460 |
|
break; |
461 |
|
case DSvprime: |
462 |
< |
puts("\t\t<Wavelength unit=\"Integral\">CIE-Z</Wavelength>"); |
462 |
> |
puts("\t\t<Wavelength unit=\"Integral\">CIE-v</Wavelength>"); |
463 |
|
puts("\t\tSourceSpectrum>CIE Illuminant D65 1nm.ssp</SourceSpectrum>"); |
464 |
|
puts("\t\t<DetectorSpectrum>ASTM E308 1931 v.dsp</DetectorSpectrum>"); |
465 |
|
break; |