Comment 1 for bug 1359382

Revision history for this message
Oliver (ok23) wrote :

Hi,
further experimenting brought interesting results:

1) the error message "invalid UTF-8" can directly be provoked. It came out of a feature of the Gretag-Macbeth Profile Maker software. Profile Maker takes note of how you name the .ICC file, because this may contain information about the name of the device measured. So Profile Maker makes a note inside the .ICC file about the file name. And at first I chose a file name to indicate that the test print was rendered on plain white paper (instead of recycled paper, which is standard in our office). In German white is "weiß", with what Americans sometimes call "the b looking character", actually it is a ligature of s and z. In the early days of ASCII it was often represented by the Greek beta glyph, but that has never been correct, it's a version of the s, Swiss people transcribe it as double-s.

Anyhow, as a file name Windows encoded this in Western codepage, of course, and not in UTF-8. Profile Maker just copied this into a string variable that might be encoded in UTF-8 without a conversion.

I created new .ICC profiles without the ß in the file name (and therefore without it in this string inside the file), and now the file does import without error messages. No "invalid UTF-8" anymore, and no timeout. Still, importing takes a loong time (10-12 seconds on a fast quadcore machine), but after that, a copy lands in ~/.local/share/icc/colord and second import attempts yield the message "already imported". So far so good.

I think colord should be more tolerant her, since it's only a string containing a name. Windows doesn't complain, it even shows the string correctly.

2) But that's about it. I cannot add the imported profile to the device listing of the HP Laserjet 4P, color manager only lists the standard Grey profile, since this Laserjet is a greyscale device, and not the imported profile. And since it gets neither listed nor added nor activated, the .ICC is not used at all.

I found that Gretag-Macbeth can create to types of profiles, .ICC with "default size" and "large size". Since an ECI2002V CMYK test pattern contains 1485 color test colors, I usually create large files, for the sake of precision. Now I tried to create default sized ones. I can import them in color manager, but then the same as above. I cannot activate them although they are imported.

If I open the file with the import manager and let it show the details, it shows only the checksum and the fact that it's an output device's file and CMYK. Everything else is missing, like color gamut, CIE 1931, TRC, VCGT and a rendering preview.

I attach the default sized version of the .ICC to this report.

Thanks
Oliver