diff mbox series

[uclibc-ng-devel] extra/locale: fix gen_wc8bit diagnostic output

Message ID 20210107084530.14611-1-jcmvbkbc@gmail.com
State Accepted
Headers show
Series [uclibc-ng-devel] extra/locale: fix gen_wc8bit diagnostic output | expand

Commit Message

Max Filippov Jan. 7, 2021, 8:45 a.m. UTC
Diagnostic for missing UTF locale is printed to stdout instead of
stderr, fix that.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
 extra/locale/gen_wc8bit.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Petr Vorel Jan. 7, 2021, 1:17 p.m. UTC | #1
Hi Max,

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

Reviewed-by: Petr Vorel <petr.vorel@gmail.com>

Kind regards,
Petr
Waldemar Brodkorb Jan. 8, 2021, 6:15 p.m. UTC | #2
Hi Max,
Max Filippov wrote,

> Diagnostic for missing UTF locale is printed to stdout instead of
> stderr, fix that.
> 
> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>

Pushed, thanks
 Waldemar
diff mbox series

Patch

diff --git a/extra/locale/gen_wc8bit.c b/extra/locale/gen_wc8bit.c
index 8031df1cf4a5..110541ad5ccc 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);