opensubscriber
   Find in this group all groups
 
Unknown more information…

l : lcms-user@lists.sourceforge.net 14 September 2009 • 4:45AM -0400

Re: [Lcms-user] cmsOpenProfileFromFile and unicode
by Olivier BERTEN

REPLY TO AUTHOR
 
REPLY TO GROUP






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
>
>  


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.