diff options
-rw-r--r-- | usr.bin/mklocale/yacc.y | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y index 14a0ba10713b..d6a13accb00b 100644 --- a/usr.bin/mklocale/yacc.y +++ b/usr.bin/mklocale/yacc.y @@ -122,10 +122,8 @@ entry : ENCODING STRING strcmp($2, "EUC") && strcmp($2, "GBK") && strcmp($2, "BIG5") && - strcmp($2, "MSKanji")) { - fprintf(stderr, "ENCODING %s is not supported by libc\n", $2); - exit(1); - } + strcmp($2, "MSKanji")) + warnx("ENCODING %s is not supported by libc", $2); strncpy(new_locale.encoding, $2, sizeof(new_locale.encoding)); } | VARIABLE { new_locale.variable_len = strlen($1) + 1; |