... authors.c:483: error: (near initialization for `SHELL_Authors[481]') authors.c:483: error: syntax error before string constant authors.c:613: error: stray '\305' in program authors.c:613: error: stray '\366' in program authors.c:613: error: `ngstr' undeclared here (not in a function) authors.c:613: error: initializer element is not constant authors.c:613: error: (near initialization for `SHELL_Authors[612]') authors.c:613: error: syntax error before "m" make: *** [authors.o] Error 1 Offending lines in authors.c are as these: "Jean-Bruno Luginb",
... authors.c:483: error: (near initialization for `SHELL_Authors[481]') authors.c:483: error: syntax error before string constant authors.c:613: error: stray '\305' in program authors.c:613: error: stray '\366' in program authors.c:613: error: `ngstr' undeclared here (not in a function) authors.c:613: error: initializer element is not constant authors.c:613: error: (near initialization for `SHELL_Authors[612]') authors.c:613: error: syntax error before "m" make: *** [authors.o] Error 1 Offending lines in authors.c are as these: "Jean-Bruno Luginb",ühl "Per ",Ångström authors.c is autogenerated on build by this command: (LANG=C; echo 'const char * const SHELL_Authors[] = {' && \ sed -e '1,2d' -e 's/\(.*\)/ \"\1\",/' ../../AUTHORS && \ echo ' 0 };') >authors.c || (rm -f authors.c && false) As ../../AUTHORS uses an ISO-8859 encoding, the accented characters fall outside the UTF-8 collating locale's set of printing characters and thus are not matched by `.' in the sed command. Prepending "LC_ALL=C" to the above sed command in the Makefile fixes this issue. This may have been a bug for some time; I postponed switching to UTF-8 until en_GB.utf8 reached the Gentoo glibc.
Created attachment 25799 [details, diff] Patch Feh, I meant character type locale. Anyways, this fixes it.
Upstreamed as http://bugs.winehq.org/show_bug.cgi?id=2029
I think gentoo developers may want to consider doing a global export LANG=C in portage. I'm using LC_CTYPE=zh_TW.big5 and I've just experience the same problem here and also a similar problem in the Java bindings of pilot-link-0.11.8. That'd make our lives a whole lot easier when more and more programs start using funky characters.
*** This bug has been marked as a duplicate of 57973 ***