Hi,<div><br></div><div>I am still running into a checkpkg unicode problem while building gnomevfs2:</div><div><div><br></div><div>Traceback (most recent call last):########                                                                                                            |</div>
<div>  File "/home/yann/opencsw/.buildsys/v2/gar//bin/checkpkg", line 197, in <module></div><div>    main()</div><div>  File "/home/yann/opencsw/.buildsys/v2/gar//bin/checkpkg", line 158, in main</div>
<div>    exit_code, screen_report, tags_report = check_manager.Run()</div><div>  File "/home/yann/opencsw/.buildsys/v2/lib/python/checkpkg_lib.py", line 827, in Run</div><div>    return super(CheckpkgManager2, self).Run()</div>
<div>  File "/home/yann/opencsw/.buildsys/v2/lib/python/checkpkg_lib.py", line 250, in Run</div><div>    tag_info=unicode(tag_info, "utf-8")</div><div>TypeError: decoding Unicode is not supported</div>
</div><div><br></div><div><br></div><div>It seems tag_info can also already be unicode.</div><div><div><br></div><div>When I use checkpkg on gnomevfs, it fails when processing the following error:</div><div>    CheckpkgTag('CSWgnomevfs2', 'missing-dependency', u'CSWlibsmbclient0')</div>
<div><br></div><div>u'CSWlibsmbclient0' is already unicode, hence the error.</div><div><br></div><div>I commited a quick fix to be able to continue to work and to potentially unblock other maintainers:</div><div><a href="http://sourceforge.net/apps/trac/gar/changeset/18716/csw/mgar/gar/v2/lib/python">http://sourceforge.net/apps/trac/gar/changeset/18716/csw/mgar/gar/v2/lib/python</a></div>
<div><br></div><div>Maciej could you have a look to tell if there is a better way to fix this ? </div><div>Should all tag_info be str instead of unicode ?</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>
Yann</div><div><br></div><br><div class="gmail_quote">2012/7/10 Dagobert Michelsen <span dir="ltr"><<a href="mailto:dam@opencsw.org" target="_blank">dam@opencsw.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Maciej,<div><br><div><div>Am 10.07.2012 um 13:27 schrieb Maciej (Matchek) Bliziński:</div>

<div><div><blockquote type="cite"><div class="gmail_quote">2012/7/10 Dagobert Michelsen <span dir="ltr"><<a href="mailto:dam@opencsw.org" target="_blank">dam@opencsw.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



This looks like an artifact from the previous change to allow utf8. Any ideas?</blockquote></div><br><div>Yes, it's a breakage caused by a change intended to fix the other issue. Something that would work for all cases. We first prepare a variable that is either unicode or None:</div>



<div><br></div><div>tag_info = e.tag_info</div><div>if tag_info is not None:</div><div>  tag_info = unicode(tag_info, "utf-8")</div><div><br></div><div>And then we store that variable in the database:</div><div>



<br></div><div>(...) tag_info=tag_info)</div><div><br></div><div>Dago, I'll let you figure out the details. If the fix works, please commit.</div></blockquote><br></div></div></div><div>Harhar, still trying to make a Python programmer out of me? ;-)</div>

<div>  <a href="https://sourceforge.net/apps/trac/gar/changeset/18696" target="_blank">https://sourceforge.net/apps/trac/gar/changeset/18696</a></div><div><div><br></div><div><br></div><div>Best regards</div><div>
<br></div><div>  -- Dago</div><div><br></div><br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div>

<div><span style="font-size:12px">-- </span></div><div><span style="font-size:12px">"You don't become great by trying to be great, you become great by wanting to </span><span style="font-size:12px">do something,</span></div>

<div><span style="font-size:12px">and then doing it so hard that you become great in the process." - xkcd #896</span></div></div></span>
</div>
<br></div></div></div><br>_______________________________________________<br>
maintainers mailing list<br>
<a href="mailto:maintainers@lists.opencsw.org" target="_blank">maintainers@lists.opencsw.org</a><br>
<a href="https://lists.opencsw.org/mailman/listinfo/maintainers" target="_blank">https://lists.opencsw.org/mailman/listinfo/maintainers</a><br>
.:: This mailing list's archive is public. ::.<br></blockquote></div><br></div>