Marcin Cieslak wrote: > What's wrong? $ /lib/libc.so.6 |head -1 GNU C Library (Debian EGLIBC 2.11.2-2) stable release version 2.11.2, by Roland McGrath et al. $ cat test.c #include <stdio.h> #include <locale.h> int main(void) { int n; setlocale(LC_CTYPE, ""); n = printf("%.11s\n", "Author: \277"); perror("printf"); fprintf(stderr, "return value: %d\n", n); return 0; } $ make test cc test.c -o test $ ./test printf: Invalid or incomplete multibyte or wide character return value: -1 glibc bug? -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html