pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/53112: glib-mkenums fails with xfce4 source files



>Number:         53112
>Category:       pkg
>Synopsis:       glib-mkenums fails with xfce4 source files
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 20 10:50:00 +0000 2018
>Originator:     Martin Husemann
>Release:        NetBSD 8.99.14
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD night-owl.duskware.de 8.99.14 NetBSD 8.99.14 (NIGHT-OWL) #588: Sat Mar 17 11:13:41 CET 2018 martin%night-owl.duskware.de@localhost:/usr/src/sys/arch/amd64/compile/NIGHT-OWL amd64
Architecture: x86_64
Machine: amd64
>Description:

glib-mkenums fails when trying to parse source code comments containing
umlauts in iso8859-* encoding:

gmake[2]: Entering directory '/usr/pkgobj/x11/xfce4-gtk2-engine/work/gtk-xfce-engine-3.2.0/gtk-3.0'
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/pkg/bin/glib-mkenums", line 709, in <module>
  File "/usr/pkg/bin/glib-mkenums", line 709, in <module>
    process_file(fname)
  File "/usr/pkg/bin/glib-mkenums", line 441, in process_file
    process_file(fname)
  File "/usr/pkg/bin/glib-mkenums", line 441, in process_file
    line = curfile.readline()
  File "/usr/pkg/lib/python2.7/codecs.py", line 314, in decode
    line = curfile.readline()
  File "/usr/pkg/lib/python2.7/codecs.py", line 314, in decode
        (result, consumed) = self._buffer_decode(data, self.errors, final)
(result, consumed) = self._buffer_decode(data, self.errors, final)
  File "/usr/pkg/bin/glib-mkenums", line 93, in replace_and_warn
  File "/usr/pkg/bin/glib-mkenums", line 93, in replace_and_warn
    err.object[err.start - 7:err.end + 7]))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd6 in position 7: ordinal not in range(128)
    err.object[err.start - 7:err.end + 7]))


Didn't we fix this already in the past?

>How-To-Repeat:
s/a

>Fix:
n/a



Home | Main Index | Thread Index | Old Index