[csw-maintainers] pkgcheck: error handling diacritical characters in paths

Maciej (Matchek) Bliziński maciej at opencsw.org
Wed Jun 27 22:10:47 CEST 2012


2012/6/27 Peter FELECAN <pfelecan at opencsw.org>:
> "Maciej (Matchek) Bliziński" <maciej at opencsw.org> writes:
>
>> 2012/6/26  <pfelecan at opencsw.org>:
>>> full_path = unicode(self.MakeAbsolutePath(file_path))
>>
>> Try replacing this with:
>>
>> full_path = unicode(self.MakeAbsolutePath(file_path), 'utf-8')
>>
>> If this works, feel free to submit the fix.
>
> Modified the file in ~/opencsw/.buildys/v2/lib/inspective_package.py and
> obtain:
>
>  File "/home/pfelecan/opencsw/.buildsys/v2/lib/python/inspective_package.py", line 94, in GetFilesMetadata
>    full_path = unicode(self.MakeAbsolutePath(file_path), 'utf-8')
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xf1 in position 54: invalid continuation byte
>
> What's up doc?

Looks like the file name is not encoded in UTF-8. I'm not sure... what
should checkpkg do? It has to be encoded in unicode at the end of the
day, so what do we do?


More information about the maintainers mailing list