Pārlūkot izejas kodu

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 4 gadi atpakaļ
vecāks
revīzija
a1e920215e
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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);