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

Peter FELECAN pfelecan at opencsw.org
Wed Jun 27 19:55:11 CEST 2012


"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?
-- 
Peter


More information about the maintainers mailing list