Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280600 - sys-libs/db creates localized strings in /usr/include/db.h; this prevents emerging python-3.1
Summary: sys-libs/db creates localized strings in /usr/include/db.h; this prevents eme...
Status: RESOLVED DUPLICATE of bug 280001
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-06 20:15 UTC by Vasiliy L. Olekhov
Modified: 2009-08-06 21:16 UTC (History)
2 users (show)

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 Vasiliy L. Olekhov 2009-08-06 20:15:48 UTC
My locale is ru_RU.UTF-8
I emerge sys-libs/db-4.7.25_p4 and it creates file /usr/include/db.h with the following string (month name is encoded as UTF-8):
#define DB_VERSION_STRING   "Berkeley DB 4.7.25: (Август  6, 2009)"
After this, i try to emerge dev-lang/python-3.1 which fails:
...
File "/var/tmp/portage/dev-lang/python-3.1/work/Python-3.1/Lib/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 926: ordinal not in range(128)

Analysis shown that ascii.py is trying to open /usr/include/db.h and character at position 926 is first byte (0xD0) of two-byte cyrillic letter "А" of the mentioned string.

I re-emerged sys-libs/db:
# LC_ALL=C emerge db

As result, file /usr/include/db.h now contains
#define DB_VERSION_STRING   "Berkeley DB 4.7.25: (August  6, 2009)"

After that, python-3.1 emerges without errors.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-08-06 21:16:02 UTC

*** This bug has been marked as a duplicate of bug 280001 ***