[PATCH 1/2] Show the error of gen_wc8bit no stderr when no UTF-8 locale present
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Aug 11 10:48:27 UTC 2010
The stdout of gen_wc8bit is redirected to a file, so an user doesn't
see the error. The build just fails, with no explanation. So let's
show the error through stderr instead.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
extra/locale/gen_wc8bit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/extra/locale/gen_wc8bit.c b/extra/locale/gen_wc8bit.c
index a861caa..30b4ec9 100644
--- a/extra/locale/gen_wc8bit.c
+++ b/extra/locale/gen_wc8bit.c
@@ -121,7 +121,7 @@ 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);
--
1.7.0.4
More information about the uClibc
mailing list