Fix issue with utf8 encoding in author
=> Image debian-generic v4 loaded Error: 'ascii' codec can't encode character u'\xe9' in position 27: ordinal not in range(128) Traceback (most recent call last): File "/usr/bin/is", line 482, in <module> error(e) File "/usr/bin/is", line 480, in <module> args.func(p_main, args) File "/usr/bin/is", line 242, in c_list img, repo = select_image(o, repoman, args.best) File "/usr/bin/is", line 64, in select_image return repoman.get(image, version, best) File "/usr/lib/python2.6/dist-packages/installsystems/repository.py", line 616, in get return repo.get(name, version), repo File "/usr/lib/python2.6/dist-packages/installsystems/repository.py", line 399, in get pkg = PackageImage(path, fileobj=memfile, md5name=True) File "/usr/lib/python2.6/dist-packages/installsystems/image.py", line 458, in __init__ arrow("Author: %s" % self.author, 1) File "/usr/lib/python2.6/dist-packages/installsystems/printer.py", line 107, in arrow out(" #light##yellow#=>#reset# %s" % message) File "/usr/lib/python2.6/dist-packages/installsystems/printer.py", line 55, in out fd.write("%s%s" % (message, endl)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 27: ordinal not in range(128)
Loading
Please register or sign in to comment