Explorar el Código

extra/locale: fix gen_wc8bit diagnostic output

Diagnostic for missing UTF locale is printed to stdout instead of
stderr, fix that.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Max Filippov hace 3 años
padre
commit
a1e920215e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      extra/locale/gen_wc8bit.c

+ 2 - 1
extra/locale/gen_wc8bit.c

@@ -121,7 +121,8 @@ int main(int argc, char **argv)
 		}
 
  locale_failure:
-		printf("could not find a UTF8 locale ... please enable en_US.UTF-8\n");
+		fprintf(stderr,
+			"could not find a UTF8 locale ... please enable en_US.UTF-8\n");
 		return EXIT_FAILURE;
  locale_success:
 		pclose(fp);