Fail to build libxcb-1.16 with some values of LC_CTYPE environment
Originally reported https://lists.linuxfromscratch.org/sympa/arc/blfs-support/2023-09/msg00019.html.
$ LANG=en_US.ISO-8859-1 make -j1
Making all in src
make[1]: Entering directory '/home/xry111/sources/xc/libxcb-1.16/src'
GEN composite.c
Traceback (most recent call last):
File "/home/xry111/sources/xc/libxcb-1.16/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 "/home/xry111/sources/xc/libxcb-1.16/src/./c_client.py", line 3212, in c_request
_man_request(self, name, void=not self.reply, aux=False)
File "/home/xry111/sources/xc/libxcb-1.16/src/./c_client.py", line 2676, in _man_request
f.write('%s \\- %s\n' % (func_name, brief))
UnicodeEncodeError: 'latin-1' codec can't encode character '\u201c' in position 68: ordinal not in range(256)
make[1]: *** [Makefile:1425: composite.c] Error 1
make[1]: Leaving directory '/home/xry111/sources/xc/libxcb-1.16/src'
make: *** [Makefile:799: all-recursive] Error 1