From a1e920215e46c487c4f2dacb973d225a6a435914 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Thu, 7 Jan 2021 00:45:30 -0800 Subject: 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 --- extra/locale/gen_wc8bit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extra/locale/gen_wc8bit.c b/extra/locale/gen_wc8bit.c index 8031df1cf..110541ad5 100644 --- a/extra/locale/gen_wc8bit.c +++ b/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); -- cgit v1.2.3