Re: [Lcms-user] cmsOpenProfileFromFile and unicode

2009-09-16 Thread marti . maria
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 : > While having the same problem again I just realised I never replied... > > Le

Re: [Lcms-user] cmsOpenProfileFromFile and unicode

2009-09-14 Thread Olivier BERTEN
ERTEN [mailto:olivier.ber...@gmail.com] *Sent:* Monday, 14 September 2009 6:45 AM *To:* lcms-user@lists.sourceforge.net *Subject:* Re: [Lcms-user] cmsOpenProfileFromFile and unicode While having the same problem again I just realised I never replied... Let's try this in python: test1 = cms0penProfi

Re: [Lcms-user] cmsOpenProfileFromFile and unicode

2009-09-13 Thread Louis Solomon
: [Lcms-user] cmsOpenProfileFromFile and unicode 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 p

Re: [Lcms-user] cmsOpenProfileFromFile and unicode

2009-09-13 Thread Olivier BERTEN
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? O

[Lcms-user] cmsOpenProfileFromFile and unicode

2008-10-04 Thread 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 *' That's pretty annoying since that's how my filesystem is encoded... I'm using the python bindings version 1.17 (debian pa