Commit 5ae9d85f authored by Tatsuo Ishii's avatar Tatsuo Ishii

Add KOI8/WIN/ALT support

parent eb42c1c7
This diff is collapsed.
/* /*
* conversion functions between pg_wchar and multi-byte streams. * conversion functions between pg_wchar and multi-byte streams.
* Tatsuo Ishii * Tatsuo Ishii
* $Id: wchar.c,v 1.5 1999/02/02 18:51:23 momjian Exp $ * $Id: wchar.c,v 1.6 1999/03/24 07:02:17 ishii Exp $
*/ */
#include "mb/pg_wchar.h" #include "mb/pg_wchar.h"
...@@ -416,40 +416,40 @@ pg_big5_mblen(const unsigned char *s) ...@@ -416,40 +416,40 @@ pg_big5_mblen(const unsigned char *s)
} }
pg_wchar_tbl pg_wchar_table[] = { pg_wchar_tbl pg_wchar_table[] = {
{pg_ascii2wchar_with_len, pg_ascii_mblen}, {pg_ascii2wchar_with_len, pg_ascii_mblen}, /* 0 */
{pg_eucjp2wchar_with_len, pg_eucjp_mblen}, {pg_eucjp2wchar_with_len, pg_eucjp_mblen}, /* 1 */
{pg_euccn2wchar_with_len, pg_euccn_mblen}, {pg_euccn2wchar_with_len, pg_euccn_mblen}, /* 2 */
{pg_euckr2wchar_with_len, pg_euckr_mblen}, {pg_euckr2wchar_with_len, pg_euckr_mblen}, /* 3 */
{pg_euctw2wchar_with_len, pg_euctw_mblen}, {pg_euctw2wchar_with_len, pg_euctw_mblen}, /* 4 */
{pg_utf2wchar_with_len, pg_utf_mblen}, {pg_utf2wchar_with_len, pg_utf_mblen}, /* 5 */
{pg_mule2wchar_with_len, pg_mule_mblen}, {pg_mule2wchar_with_len, pg_mule_mblen}, /* 6 */
{pg_latin12wchar_with_len, pg_latin1_mblen}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 7 */
{pg_latin12wchar_with_len, pg_latin1_mblen}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 8 */
{pg_latin12wchar_with_len, pg_latin1_mblen}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 9 */
{pg_latin12wchar_with_len, pg_latin1_mblen}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 10 */
{pg_latin12wchar_with_len, pg_latin1_mblen}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 11 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 12 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 13 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 14 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 15 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 16 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 17 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 18 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 19 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 20 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 21 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 22 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 23 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 24 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 25 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 26 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 27 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 28 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 29 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 30 */
{0, 0}, {pg_latin12wchar_with_len, pg_latin1_mblen}, /* 31 */
{0, pg_sjis_mblen}, {0, pg_sjis_mblen}, /* 32 */
{0, pg_big5_mblen} {0, pg_big5_mblen} /* 33 */
}; };
/* returns the byte length of a word for mule internal code */ /* returns the byte length of a word for mule internal code */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment