summaryrefslogtreecommitdiffstats
path: root/usr.bin/mklocale
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-04-30 14:45:00 +0000
committerache <ache@FreeBSD.org>1995-04-30 14:45:00 +0000
commitdf9d0d25763387881fa358fb59b5e19ec5060a70 (patch)
tree39dd372510ff0dfbbce729630eccc9e89c2d8c93 /usr.bin/mklocale
parent1ea2be3b9ec55dca5c0152d941ecb110e9ecd93b (diff)
downloadFreeBSD-src-df9d0d25763387881fa358fb59b5e19ec5060a70.zip
FreeBSD-src-df9d0d25763387881fa358fb59b5e19ec5060a70.tar.gz
Add yet one popular russian code table
Diffstat (limited to 'usr.bin/mklocale')
-rw-r--r--usr.bin/mklocale/Makefile2
-rw-r--r--usr.bin/mklocale/data/ru_SU.CP86642
2 files changed, 43 insertions, 1 deletions
diff --git a/usr.bin/mklocale/Makefile b/usr.bin/mklocale/Makefile
index 31b9e7e..446254a 100644
--- a/usr.bin/mklocale/Makefile
+++ b/usr.bin/mklocale/Makefile
@@ -5,7 +5,7 @@ SRCS= yacc.c lex.c
CFLAGS+=-I.
CLEANFILES+=y.tab.h yacc.c lex.c
MAN1= mklocale.1
-LOCALES= ja_JP.EUC ru_SU.KOI8-R lt_LN.ISO8859-1
+LOCALES= ja_JP.EUC ru_SU.KOI8-R lt_LN.ISO8859-1 ru_SU.CP866
LOCALEDIR= ${DESTDIR}/usr/share/locale
afterinstall:
diff --git a/usr.bin/mklocale/data/ru_SU.CP866 b/usr.bin/mklocale/data/ru_SU.CP866
new file mode 100644
index 0000000..9b242e6
--- /dev/null
+++ b/usr.bin/mklocale/data/ru_SU.CP866
@@ -0,0 +1,42 @@
+/*
+ * LOCALE_CTYPE for Russian Alternative character set (CP866)
+ */
+ENCODING "NONE"
+VARIABLE Russian Alternative charset (CP866) by ache@astral.msk.su
+
+#
+# This is a comment
+#
+ALPHA 'A' - 'Z' 'a' - 'z' 0x80 - 0xaf 0xe0 - 0xf1
+CONTROL 0x00 - 0x1f 0x7f
+DIGIT '0' - '9'
+GRAPH 0x21 - 0x7e 0x80 - 0xff
+LOWER 'a' - 'z' 0xa0 - 0xaf 0xe0 - 0xef 0xf1
+PUNCT 0x21 - 0x2f 0x3a - 0x40 0x5b - 0x60 0x7b - 0x7e
+SPACE 0x09 - 0x0d 0x20
+UPPER 'A' - 'Z' 0x80 - 0x9f 0xf0
+XDIGIT 'a' - 'f' 'A' - 'F'
+BLANK ' ' '\t'
+PRINT 0x20 - 0x7e 0x80 - 0xff
+# IDEOGRAM
+# SPECIAL
+# PHONEGRAM
+
+MAPLOWER <'A' - 'Z' : 'a'>
+MAPLOWER <'a' - 'z' : 'a'>
+MAPLOWER <0x80 - 0x8f : 0xa0>
+MAPLOWER <0x90 - 0x9f : 0xe0>
+MAPLOWER <0xf0 0xf1>
+MAPLOWER <0xa0 - 0xaf : 0xa0>
+MAPLOWER <0xe0 - 0xef : 0xe0>
+MAPLOWER <0xf1 0xf1>
+MAPUPPER <'A' - 'Z' : 'A'>
+MAPUPPER <'a' - 'z' : 'A'>
+MAPUPPER <0x80 - 0x9f : 0x80>
+MAPUPPER <0xf0 0xf0>
+MAPUPPER <0xa0 - 0xaf : 0x80>
+MAPUPPER <0xe0 - 0xef : 0x90>
+MAPUPPER <0xf1 0xf0>
+TODIGIT <'0' - '9' : 0>
+TODIGIT <'A' - 'F' : 10>
+TODIGIT <'a' - 'f' : 10>
OpenPOWER on IntegriCloud