修訂 | a1e920215e46c487c4f2dacb973d225a6a435914 (tree) |
---|---|
時間 | 2021-01-09 03:12:59 |
作者 | Max Filippov <jcmvbkbc@gmai...> |
Commiter | Waldemar Brodkorb |
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>
@@ -121,7 +121,8 @@ int main(int argc, char **argv) | ||
121 | 121 | } |
122 | 122 | |
123 | 123 | locale_failure: |
124 | - printf("could not find a UTF8 locale ... please enable en_US.UTF-8\n"); | |
124 | + fprintf(stderr, | |
125 | + "could not find a UTF8 locale ... please enable en_US.UTF-8\n"); | |
125 | 126 | return EXIT_FAILURE; |
126 | 127 | locale_success: |
127 | 128 | pclose(fp); |