So here's some stuff I learned from the Gimp mailing list and LittleCMS web site.
LittleCMS was used for color management in Firefox up until version 3.0, After that, they changed to another color management system that I'm not familiar with (don't know its name). LittleCMS is also used in Gimp, Inkscape, Digikam, and a slew of other applications, both open source and commercial. Anything that uses LittleCMS detects color profiles exactly the same way across all platforms.
The current version of LittleCMS is 1.18a. It natively supports v2 ICC profiles, and can handle "some" v4 ICC profiles. ICC v4 has been around since at least 2001, so it's very likely that Pentax embeds an ICC profile in their JPG and TIF images that LittleCMS does not detect properly. How applications react to this differs. Gimp and Krita just assume the colorspace should be interpreted as whatever working space is currently set. There are currently no settings to change this behavior. Digikam can be set to ask which profile should be used when none is detected, but only when editing pictures. The picture viewer just assumes they should be interpreted in the currently set working colorspace.
Currently, LittleCMS 2.0 is being developed. The direct quote from the developer blog is:
"Little CMS 2.0 is a full v4 CMM, which can accept v2 profiles. Little CMS 1.xx was a v2 CMM which can deal with (some) V4 profiles. The difference is important, as 2.0 handling of PCS is different, definitively better and far more accurate."
The developer blog can be found
here and describes all the new features which will be included. It's very exciting stuff if you're into color management at all. When all is said and done, it looks like it will be ahead of Adobe's current ICC library.
I couldn't find a definitive date for when 2.0 will be released, and then it will be a while before applications start switching over since it's not directly backwards-compatible with LittleCMS 1.x.
So for now, if using an application that depends on LittleCMS for color management, JPG and TIF files straight from the camera need special attention for accurate colors. It's important to confirm that the right color profile has been assigned to the picture. If you never touch Adobe RGB and you don't color manage, or if you don't use any application that depends on LittleCMS, this is a non-issue. However it turns out a lot of applications use LittleCMS for color management without explicitly stating so (ie. Firefox).
I've asked for information regarding this on the LittleCMS mailing list and submitted some files for reference. I'm still waiting for a response, I suppose it's possible support for our cameras could be added to an upcoming update to LittleCMS, which would be awesome. I'd at least like to confirm whether Pentax embeds the color profile in a non-standard way, or if the color profile is in a version that LittleCMS can't read yet.
I find it telling that Pentax cameras render Adobe RGB pictures wrong on the built-in monitor. Does this mean Pentax uses LittleCMS (or some derivative) for color management in the camera's firmware? It's a very small and efficient software library that seems like it would be ideal for such a use. Its license allows it to be used in commercial applications, it's not nearly as restrictive as GPL'd projects.