Browse Source

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 3 years ago
parent
commit
a1e920215e
1 changed files with 2 additions and 1 deletions
  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);