Hi,
There is no way to deal with unicode filenames in 1.xx other that read the whole profile in memory. Sorry. That is addressed in lcms 2.0 with cmsOpenProfileFromStream() Regards Marti. Quoting Olivier BERTEN <olivier.ber...@gmail.com>: > While having the same problem again I just realised I never replied... > > Let's try this in python: > > test1 = cms0penProfileFromFile('cmyk.icm','r') > test2 = cms0penProfileFromFile(u'cmyk.icm','r') > > I get no problem with the first one, but the second one returns that > type error... any workaround? > > Olivier > > Kai-Uwe Behrmann a écrit : >> Am 02.10.08, 10:33 +0200 schrieb Olivier BERTEN: >> >>> When I give an unicode string as argument to cmsOpenProfileFromFile, i get >>> this message >>> >>> TypeError: in method 'cmsOpenProfileFromFile', argument 1 of type >>> 'char const >>> *' >>> >> >> The data type should not have much to do with the encoding. Is it a >> 16-bit type you pass to the call? >>> That's pretty annoying since that's how my filesystem is encoded... >>> >>> >>> I'm using the python bindings version 1.17 (debian package) on Ubuntu 8 .10 >>> >>> >>> Olivier >>> >>> >>> >>> >>> >> >> Kai-Uwe >> >> > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user