8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 08:03:04 +01:00

Integrate character sets KOIuR (Russian) and KOI8U (Ukrainian) ported from Yaffil by Dmitry

This commit is contained in:
asfernandes 2005-06-11 03:04:12 +00:00
parent 3628c9eb91
commit a93b7e0fd0
7 changed files with 4694 additions and 1 deletions

View File

@ -87,8 +87,11 @@ CS_737, CS_775, CS_858, CS_862, CS_864, CS_866, CS_869
#define CS_UTF16 61 /* UTF-16 */
#define CS_UTF32 62 /* UTF-32 */
#define CS_KOI8R 63 /* Russian KOI8R */
#define CS_KOI8U 64 /* Ukrainian KOI8U */
#define CS_dynamic 127 /* Pseudo number for runtime charset */
#define CS_MAX_CS_NUMBER 62
#define CS_MAX_CS_NUMBER 64
#endif /* INTL_CHARSETS_H */

2323
src/intl/charsets/cs_koi8r.h Normal file

File diff suppressed because it is too large Load Diff

2323
src/intl/charsets/cs_koi8u.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -362,3 +362,21 @@ CHARSET_ENTRY(CS_next)
from_unicode_mapping_array, from_unicode_map);
CHARSET_RETURN;
}
CHARSET_ENTRY(CS_koi8r)
{
#include "../intl/charsets/cs_koi8r.h"
common_8bit_init(csptr, "KOI8R", to_unicode_map,
from_unicode_mapping_array, from_unicode_map);
CHARSET_RETURN;
}
CHARSET_ENTRY(CS_koi8u)
{
#include "../intl/charsets/cs_koi8u.h"
common_8bit_init(csptr, "KOI8U", to_unicode_map,
from_unicode_mapping_array, from_unicode_map);
CHARSET_RETURN;
}

View File

@ -338,6 +338,22 @@ TEXTTYPE_ENTRY(NEXT_c0_init)
}
TEXTTYPE_ENTRY(KOI8R_c0_init)
{
static const ASCII POSIX[] = "C.KOI8R";
return FAMILY_ASCII(cache, CC_C, POSIX, attributes, specific_attributes, specific_attributes_length);
}
TEXTTYPE_ENTRY(KOI8U_c0_init)
{
static const ASCII POSIX[] = "C.KOI8U";
return FAMILY_ASCII(cache, CC_C, POSIX, attributes, specific_attributes, specific_attributes_length);
}
/*
* Generic base for InterBase 4.0 Language Driver - ASCII family (binary
* 8 bit sorting)

View File

@ -182,6 +182,9 @@ EXTERN_texttype(UNI201_init);
EXTERN_texttype(JIS220_init);
EXTERN_texttype(JIS230_init);
EXTERN_texttype(KOI8R_c0_init);
EXTERN_texttype(KOI8U_c0_init);
EXTERN_charset(CS_iso_ISO8859_1);
EXTERN_charset(CS_iso_ISO8859_2);
EXTERN_charset(CS_iso_ISO8859_3);
@ -226,6 +229,9 @@ EXTERN_charset(CS_big_5);
EXTERN_charset(CS_gb_2312);
EXTERN_charset(CS_ksc_5601);
EXTERN_charset(CS_koi8r);
EXTERN_charset(CS_koi8u);
EXTERN_texttype(BIG5_init);
EXTERN_texttype(KSC_5601_init);
EXTERN_texttype(ksc_5601_dict_init);

View File

@ -341,3 +341,7 @@ CSALIAS("GB2312", CS_GB2312)
CSALIAS("DOS_936", CS_GB2312)
CSALIAS("WIN_936", CS_GB2312)
END_CHARSET
CHARSET("KOI8R", CS_KOI8R, 0, 1, 256, CS_koi8r, KOI8R_c0_init, TEXTTYPE_ATTR_PAD_SPACE)
END_CHARSET
CHARSET("KOI8U", CS_KOI8U, 0, 1, 256, CS_koi8u, KOI8U_c0_init, TEXTTYPE_ATTR_PAD_SPACE)
END_CHARSET