From 8d4b16f8bb83768fe0578bb746dcaa62dd514e97 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 22 Jan 2008 00:04:50 +0000 Subject: [PATCH] Understand newly introduced "ASCII" encoding --- usr.bin/mklocale/mklocale.1 | 2 ++ usr.bin/mklocale/yacc.y | 1 + 2 files changed, 3 insertions(+) diff --git a/usr.bin/mklocale/mklocale.1 b/usr.bin/mklocale/mklocale.1 index 249249c485a..ab245e04d19 100644 --- a/usr.bin/mklocale/mklocale.1 +++ b/usr.bin/mklocale/mklocale.1 @@ -140,6 +140,8 @@ Followed by a which indicates the encoding mechanism to be used for this locale. The current encodings are: .Bl -tag -width ".Dv MSKanji" +.It Dv ASCII +American Standard Code for Information Interchange. .It Dv BIG5 The .Dq Big5 diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y index 899b186d93c..4024f672022 100644 --- a/usr.bin/mklocale/yacc.y +++ b/usr.bin/mklocale/yacc.y @@ -118,6 +118,7 @@ table : entry entry : ENCODING STRING { if (strcmp($2, "NONE") && + strcmp($2, "ASCII") && strcmp($2, "UTF-8") && strcmp($2, "EUC") && strcmp($2, "GBK") &&