Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434834 - esearch-1.2: update.py unable to decode utf-8 strings
Summary: esearch-1.2: update.py unable to decode utf-8 strings
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-12 19:19 UTC by Jimmy.Jazz
Modified: 2012-11-02 19:32 UTC (History)
0 users

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


Attachments
1.2-ascii-codec-cant-encode-character.patch (1.2-ascii-codec-cant-encode-character.patch,564 bytes, patch)
2012-09-12 19:21 UTC, Jimmy.Jazz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy.Jazz 2012-09-12 19:19:51 UTC
eupdatedb fails to update its db file when reading description/license ebuilds with e-cute family letters.


Reproducible: Always

Steps to Reproduce:
1. layman -a gnustep
2. PORTDIR_OVERLAY=/var/lib/layman /usr/bin/eupdatedb -v
3. find /var/lib/layman/gnustep/ -type f -name "*.ebuild" -exec grep 'é' {} +
Description: Etoilé general text editor for plain and rich format text
# see typewriter ebuild
Actual Results:  
* gnustep-apps:
ascii codec can't encode character

Expected Results:  
PORTDIR_OVERLAY=/var/lib/layman /usr/bin/eupdatedb -v
...
 * gnustep-apps: 1 second(s)
 * gnustep-base: 1 second(s)
 * gnustep-libs: 0 second(s)
...

esearch -v typewriter
[ Results for search key : typewriter ]
[ Applications found : 3 ]

*  gnustep-apps/typewriter
      Latest version available: 0.4.1
      Latest version installed: [ Not Installed ]
      Unstable version:         0.4.1
      Use Flags (stable):       -debug  -doc 
      Size of downloaded files: 8,087 kB
      Homepage:    http://www.etoile-project.org
      Description: Etoilé general text editor for plain and rich format text
      License:     BSD
...
Comment 1 Jimmy.Jazz 2012-09-12 19:21:38 UTC
Created attachment 323614 [details, diff]
1.2-ascii-codec-cant-encode-character.patch
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2012-09-13 14:22:51 UTC
Actually we have this fixed in git already.

The fix is available in the -9999 version.  The db will now not fail to decode/encode properly with unicode descriptions and still work with py2 or py3 when created by the other.
Comment 3 Paul Varner (RETIRED) gentoo-dev 2012-11-02 19:32:48 UTC
This was released with esearch-1.3