Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619758 - [gentoolkit-0.3.3] glsa-check broken since GLSA 201705-14 (smb4k): UnicodeEncodeError: 'ascii' codec can't encode character u'\u2008' in position 24: ordinal not in range(128)
Summary: [gentoolkit-0.3.3] glsa-check broken since GLSA 201705-14 (smb4k): UnicodeEnc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-26 16:07 UTC by Romain Riviere
Modified: 2017-05-26 18:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Romain Riviere 2017-05-26 16:07:59 UTC
portage-2.3.5
python-2.7.12
python-3.4.5

Any attempt at using glsa-check with python-2.7 returns:

UnicodeEncodeError: 'ascii' codec can't encode character u'\u2008' in position 24: ordinal not in range(128)

With python-3.4:
portage.exception.InvalidAtom: <net-misc/smb4k-1.2.3-r1

I run glsa-check on a daily basis on about a dozen Gentoo hosts and VM's, and they ALL started spewing this exact same error today. Could it be a problem in the GLSA itself, namely 201705-14 that came out today?

Full output here:
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/glsa-check", line 181, in <module>
    myglsa = Glsa(x, glsaconfig)
  File "/usr/lib/python2.7/site-packages/gentoolkit/glsa/__init__.py", line 509, in __init__
    self.read()
  File "/usr/lib/python2.7/site-packages/gentoolkit/glsa/__init__.py", line 527, in read
    self.parse(urlopen(myurl))
  File "/usr/lib/python2.7/site-packages/gentoolkit/glsa/__init__.py", line 612, in parse
    tmp["vul_atoms"] = [makeAtom(name, v) for v in p.getElementsByTagName("vulnerable")]
  File "/usr/lib/python2.7/site-packages/gentoolkit/glsa/__init__.py", line 303, in makeAtom
    return str(rValue)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2008' in position 24: ordinal not in range(128)

My locale is en_US.UTF-8 in case it's relevant.
Comment 2 Romain Riviere 2017-05-26 18:46:45 UTC
Thanks for the heads-up and the fix!