Subject: ld-wrapper replaces unicode character with question marks

From: [email-masked]
Date: Sat, 05 Nov 2022 00:50:07 -0000

$ echo 'int main() {return 0;}' >програма.c
$ guix shell --container gcc-toolchain -- gcc програма.c -o програма.o
$ ls *.o
'????????????????.o'
$ rm *.o
$ # binutils overrides the built-in ld-wrapper, which breaks some libraries, but fixes this example
$ guix shell --container gcc-toolchain binutils -- gcc програма.c -o програма.o
$ ls *.o
програма.o
$ # c files and executables are rarely named with unicode, but this behavior makes some build systems unusable, as they pass a full path, e.g. /home/user/Документи/... to gcc and ld
$