summaryrefslogtreecommitdiffstats
path: root/usr.bin/mklocale
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-06-03 16:58:31 +0000
committerache <ache@FreeBSD.org>2003-06-03 16:58:31 +0000
commit5b07ec4fbc5bf8fd8f51827d19dde773903589f0 (patch)
tree3722299b080cb85fc3adbac3598af370df014f3a /usr.bin/mklocale
parent46b16c85d0ffddbbada4fb846b6abfb0ea5ac0af (diff)
downloadFreeBSD-src-5b07ec4fbc5bf8fd8f51827d19dde773903589f0.zip
FreeBSD-src-5b07ec4fbc5bf8fd8f51827d19dde773903589f0.tar.gz
Change fatal to warnx() for unknown encoding
Diffstat (limited to 'usr.bin/mklocale')
-rw-r--r--usr.bin/mklocale/yacc.y6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y
index 14a0ba1..d6a13acc 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;
OpenPOWER on IntegriCloud