Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932186 - x11-libs/libxcb cannot be built with locales set
Summary: x11-libs/libxcb cannot be built with locales set
Status: RESOLVED DUPLICATE of bug 913655
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-19 09:40 UTC by Paul Osmialowski
Modified: 2024-05-19 13:41 UTC (History)
1 user (show)

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


Attachments
emerge --info output, greater than copy-paste limit (info.txt,17.42 KB, text/plain)
2024-05-19 09:50 UTC, Paul Osmialowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Osmialowski 2024-05-19 09:40:27 UTC
It fails to compile due some weird UTF8 conversion error.

WORKAROUND:

LC_ALL=C emerge libxcb


Reproducible: Always

Steps to Reproduce:
1. build glibc with your fav locales
2. set your locales as system default
3. try to build libxcb
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-19 09:50:03 UTC
Full build.log, emerge --info, list of locales, and the effective locale please.
Comment 2 Paul Osmialowski 2024-05-19 09:50:29 UTC
Created attachment 893365 [details]
emerge --info output, greater than copy-paste limit
Comment 3 Paul Osmialowski 2024-05-19 09:54:27 UTC
From /etc/locale.gen:

pl_PL ISO-8859-2
pl_PL.UTF-8 UTF-8

From /etc/profile.env:

export LANG='pl_PL'

From /etc/env.d/02locale:

LANG="pl_PL"

From /etc/environment.d/10-gentoo-env.conf:

LANG=pl_PL
Comment 4 Paul Osmialowski 2024-05-19 09:56:43 UTC
The error itself:

```
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-libs/libxcb-1.17.0/work/libxcb-1.17.0 ...
 * abi_x86_64.amd64: running multilib-minimal_abi_src_compile
make -j1
Making all in src
make[1]: Entering directory '/var/tmp/portage/x11-libs/libxcb-1.17.0/work/libxcb-1.17.0-abi_x86_64.amd64/src'
/usr/bin/python3.11 /var/tmp/portage/x11-libs/libxcb-1.17.0/work/libxcb-1.17.0/src/c_client.py  -c "libxcb 1.17.0" -l "X Version 11" \
        -s "3" -p / \
         \
        //usr/share/xcb/xproto.xml
/usr/bin/python3.11 /var/tmp/portage/x11-libs/libxcb-1.17.0/work/libxcb-1.17.0/src/c_client.py  -c "libxcb 1.17.0" -l "X Version 11" \
        -s "3" -p / \
         \
        //usr/share/xcb/bigreq.xml
/usr/bin/python3.11 /var/tmp/portage/x11-libs/libxcb-1.17.0/work/libxcb-1.17.0/src/c_client.py  -c "libxcb 1.17.0" -l "X Version 11" \
        -s "3" -p / \
         \
        //usr/share/xcb/xc_misc.xml
/usr/bin/python3.11 /var/tmp/portage/x11-libs/libxcb-1.17.0/work/libxcb-1.17.0/src/c_client.py  -c "libxcb 1.17.0" -l "X Version 11" \
        -s "3" -p / \
         \
        //usr/share/xcb/composite.xml
Traceback (most recent call last):
  File "/var/tmp/portage/x11-libs/libxcb-1.17.0/work/libxcb-1.17.0/src/c_client.py", line 3395, in <module>
    module.generate()
  File "/usr/lib/python3.11/site-packages/xcbgen/state.py", line 131, in generate
    item.out(name)
  File "/var/tmp/portage/x11-libs/libxcb-1.17.0/work/libxcb-1.17.0/src/c_client.py", line 3212, in c_request
    _man_request(self, name, void=not self.reply, aux=False)
  File "/var/tmp/portage/x11-libs/libxcb-1.17.0/work/libxcb-1.17.0/src/c_client.py", line 2676, in _man_request
    f.write('%s \\- %s\n' % (func_name, brief))
  File "/usr/lib/python3.11/encodings/iso8859_2.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\u2018' in position 81: character maps to <undefined>
make[1]: *** [Makefile:1425: composite.c] Error 1
make[1]: Leaving directory '/var/tmp/portage/x11-libs/libxcb-1.17.0/work/libxcb-1.17.0-abi_x86_64.amd64/src'
make: *** [Makefile:799: all-recursive] Error 1
```
Comment 5 Paul Osmialowski 2024-05-19 10:05:15 UTC
This is not the first time, so I need to point it out:

Due to copy/paste size limit, it is impossible to provide all the usually needed info at one go, so it takes more time to provide them than setting a bug report as RESOLVED with NEEDINFO. 

No these tasks are not resolved if they need info.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-19 13:40:38 UTC
(In reply to Paul Osmialowski from comment #5)
> This is not the first time, so I need to point it out:
> 
> Due to copy/paste size limit, it is impossible to provide all the usually
> needed info at one go, so it takes more time to provide them than setting a
> bug report as RESOLVED with NEEDINFO. 
> 

It'd been 10 minutes since the report and I did one of my rounds of checking new bugs. We very often get bugs where there is no info forthcoming after hours - it's hard to tell the difference.

You can include attachments in the original submission, though. Anyway, noted.

> No these tasks are not resolved if they need info.

That's just how Bugzilla does state management. Bugs can and are reopened regularly.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-19 13:41:11 UTC

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