From 7a3b700eacb76d4af86955357139da43d0351158 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 14 Jan 2005 19:32:46 +0000 Subject: [PATCH] Added Russion support --- lib/charset.c | 4 +++- lib/mbselib.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/charset.c b/lib/charset.c index 4761ffb2..dfb3ca15 100644 --- a/lib/charset.c +++ b/lib/charset.c @@ -120,6 +120,7 @@ char *getchrs(int val) case FTNC_LATIN_2: return (char *)"LATIN-2 2"; case FTNC_LATIN_5: return (char *)"LATIN-5 2"; case FTNC_MAC: return (char *)"MAC 2"; + case FTNC_KOI8_R: return (char *)"KOI8-R 2"; default: return (char *)"LATIN-1 2"; } } @@ -138,7 +139,8 @@ char *getchrsdesc(int val) case FTNC_LATIN_1: return (char *)"ISO 8859-1 (Western European)"; case FTNC_LATIN_2: return (char *)"ISO 8859-2 (Eastern European)"; case FTNC_LATIN_5: return (char *)"ISO 8859-5 (Turkish)"; - case FTNC_MAC: return (char *)"MacIntosh character set"; + case FTNC_MAC: return (char *)"MacIntosh character set"; + case FTNC_KOI8_R: return (char *)"Unix codepage KOI8-R (Russian)"; default: return (char *)"ERROR"; } } diff --git a/lib/mbselib.h b/lib/mbselib.h index c3588545..513a80ca 100644 --- a/lib/mbselib.h +++ b/lib/mbselib.h @@ -428,7 +428,8 @@ struct icmp_filter { #define FTNC_MAC 8 /* MacIntosh character set */ #define FTNC_CP852 9 /* IBM CP 852 (Czech, Latin-2) */ #define FTNC_CP895 10 /* IBM CP 895 (Czech, Kamenicky) */ -#define FTNC_MAXCHARS 10 /* Highest charset number */ +#define FTNC_KOI8_R 11 /* Unix koi8-r */ +#define FTNC_MAXCHARS 11 /* Highest charset number */ /*****************************************************************************