head	1.25;
access;
symbols
	REL9_0_0:1.24
	REL9_1_ALPHA1:1.25
	REL9_0_RC1:1.24
	REL9_0_BETA4:1.24
	REL9_0_STABLE:1.24.0.8
	REL9_0_BETA3:1.24
	REL9_0_BETA2:1.24
	REL7_4_29:1.9.2.2
	REL8_0_25:1.11.4.1
	REL8_1_21:1.14
	REL8_2_17:1.17
	REL8_3_11:1.18
	REL8_4_4:1.21
	REL9_0_BETA1:1.24
	REL9_0_ALPHA5_BRANCH:1.24.0.6
	REL9_0_ALPHA5:1.24
	REL7_4_28:1.9.2.2
	REL8_0_24:1.11.4.1
	REL8_1_20:1.14
	REL8_2_16:1.17
	REL8_3_10:1.18
	REL8_4_3:1.21
	REL9_0_ALPHA4:1.24
	REL9_0_ALPHA4_BRANCH:1.24.0.4
	REL8_5_ALPHA3:1.24
	REL8_5_ALPHA3_BRANCH:1.24.0.2
	REL7_4_27:1.9.2.2
	REL8_0_23:1.11.4.1
	REL8_1_19:1.14
	REL8_2_15:1.17
	REL8_3_9:1.18
	REL8_4_2:1.21
	REL8_5_ALPHA2:1.23
	REL8_5_ALPHA2_BRANCH:1.23.0.2
	REL7_4_26:1.9.2.2
	REL8_0_22:1.11.4.1
	REL8_1_18:1.14
	REL8_2_14:1.17
	REL8_3_8:1.18
	REL8_4_1:1.21
	REL8_5_ALPHA1:1.22
	REL8_5_ALPHA1_BRANCH:1.22.0.2
	REL8_4_STABLE:1.21.0.2
	REL8_4_0:1.21
	REL8_4_RC2:1.21
	REL8_4_RC1:1.21
	REL8_4_BETA2:1.21
	REL8_4_BETA1:1.21
	REL7_4_25:1.9.2.2
	REL8_0_21:1.11.4.1
	REL8_1_17:1.14
	REL8_2_13:1.17
	REL8_3_7:1.18
	REL7_4_24:1.9.2.2
	REL8_0_20:1.11.4.1
	REL8_1_16:1.14
	REL8_2_12:1.17
	REL8_3_6:1.18
	REL7_4_23:1.9.2.2
	REL8_0_19:1.11.4.1
	REL8_1_15:1.14
	REL8_2_11:1.17
	REL8_3_5:1.18
	REL7_4_22:1.9.2.2
	REL8_0_18:1.11.4.1
	REL8_1_14:1.14
	REL8_2_10:1.17
	REL8_3_4:1.18
	REL7_4_21:1.9.2.2
	REL8_0_17:1.11.4.1
	REL8_1_13:1.14
	REL8_2_9:1.17
	REL8_3_3:1.18
	REL7_4_20:1.9.2.2
	REL8_0_16:1.11.4.1
	REL8_1_12:1.14
	REL8_2_8:1.17
	REL8_3_2:1.18
	REL8_2_7:1.17
	REL8_3_1:1.18
	REL8_3_STABLE:1.18.0.2
	REL8_3_0:1.18
	REL8_3_RC2:1.18
	REL7_3_21:1.7.2.2
	REL7_4_19:1.9.2.2
	REL8_0_15:1.11.4.1
	REL8_1_11:1.14
	REL8_2_6:1.17
	REL8_3_RC1:1.18
	REL8_3_BETA4:1.18
	REL8_3_BETA3:1.18
	REL8_3_BETA2:1.18
	REL8_3_BETA1:1.18
	REL7_3_20:1.7.2.2
	REL7_4_18:1.9.2.2
	REL8_0_14:1.11.4.1
	REL8_1_10:1.14
	REL8_2_5:1.17
	REL7_3_19:1.7.2.2
	REL7_4_17:1.9.2.2
	REL8_0_13:1.11.4.1
	REL8_1_9:1.14
	REL8_2_4:1.17
	REL8_0_12:1.11.4.1
	REL8_1_8:1.14
	REL8_2_3:1.17
	REL7_3_18:1.7.2.2
	REL7_4_16:1.9.2.2
	REL8_0_11:1.11.4.1
	REL8_1_7:1.14
	REL8_2_2:1.17
	REL8_0_10:1.11.4.1
	REL8_1_6:1.14
	REL8_2_1:1.17
	REL7_4_15:1.9.2.2
	REL7_3_17:1.7.2.2
	REL8_2_STABLE:1.17.0.2
	REL8_2_0:1.17
	REL8_2_RC1:1.17
	REL8_2_BETA3:1.17
	REL8_2_BETA2:1.17
	REL8_1_5:1.14
	REL8_0_9:1.11.4.1
	REL7_4_14:1.9.2.2
	REL7_3_16:1.7.2.2
	REL8_2_BETA1:1.17
	REL7_3_15:1.7.2.2
	REL7_4_13:1.9.2.2
	REL8_0_8:1.11.4.1
	REL8_1_4:1.14
	REL7_3_14:1.7.2.2
	REL7_4_12:1.9.2.2
	REL8_0_7:1.11.4.1
	REL8_1_3:1.14
	REL7_3_13:1.7.2.2
	REL7_4_11:1.9.2.2
	REL8_0_6:1.11.4.1
	REL8_1_2:1.14
	REL7_3_12:1.7.2.2
	REL7_4_10:1.9.2.2
	REL8_0_5:1.11.4.1
	REL8_1_1:1.14
	REL8_1_STABLE:1.14.0.2
	REL8_1_0:1.14
	REL8_1_0RC1:1.14
	REL8_1_0BETA4:1.14
	REL8_1_0BETA3:1.14
	REL7_3_11:1.7.2.2
	REL7_4_9:1.9.2.2
	REL8_0_4:1.11.4.1
	REL8_1_0BETA2:1.14
	REL8_1_0BETA1:1.14
	REL7_3_10:1.7.2.2
	REL7_4_8:1.9.2.2
	REL8_0_3:1.11.4.1
	REL8_0_2:1.11
	REL7_3_9:1.7.2.1
	REL7_4_7:1.9.2.1
	REL8_0_1:1.11
	REL8_0_STABLE:1.11.0.4
	REL8_0_0:1.11.0.2
	REL8_0_0RC5:1.11
	REL8_0_0RC4:1.11
	REL8_0_0RC3:1.11
	REL8_0_0RC2:1.11
	REL8_0_0RC1:1.11
	REL8_0_0BETA5:1.11
	REL8_0_0BETA4:1.11
	REL7_4_6:1.9.2.1
	REL7_3_8:1.7.2.1
	REL8_0_0BETA3:1.11
	REL8_0_0BETA2:1.11
	REL7_4_5:1.9.2.1
	REL7_3_7:1.7.2.1
	REL7_4_4:1.9.2.1
	REL8_0_0BETA1:1.11
	REL7_4_3:1.9.2.1
	REL7_4_2:1.9.2.1
	REL7_3_6:1.7.2.1
	REL7_4_1:1.9
	REL7_3_5:1.7.2.1
	REL7_4:1.9
	REL7_4_RC2:1.9
	REL7_4_STABLE:1.9.0.2
	REL7_4_RC1:1.9
	REL7_4_BETA5:1.9
	REL7_4_BETA4:1.9
	REL7_4_BETA3:1.9
	REL7_4_BETA2:1.9
	WIN32_DEV:1.8.0.2
	REL7_4_BETA1:1.7
	REL7_3_4:1.7
	REL7_3_2:1.7
	REL7_3_STABLE:1.7.0.2;
locks; strict;
comment	@# @;


1.25
date	2010.08.19.05.57.34;	author petere;	state Exp;
branches;
next	1.24;

1.24
date	2009.11.04.23.47.04;	author tgl;	state Exp;
branches;
next	1.23;

1.23
date	2009.08.26.22.24.43;	author petere;	state Exp;
branches;
next	1.22;

1.22
date	2009.08.07.20.50.22;	author petere;	state Exp;
branches;
next	1.21;

1.21
date	2009.02.10.19.29.39;	author petere;	state Exp;
branches;
next	1.20;

1.20
date	2008.08.23.20.31.37;	author momjian;	state Exp;
branches;
next	1.19;

1.19
date	2008.03.18.16.24.50;	author petere;	state Exp;
branches;
next	1.18;

1.18
date	2007.03.25.11.56.02;	author ishii;	state Exp;
branches;
next	1.17;

1.17
date	2006.02.27.16.09.49;	author petere;	state Exp;
branches;
next	1.16;

1.16
date	2006.02.18.16.15.22;	author petere;	state Exp;
branches;
next	1.15;

1.15
date	2005.12.09.21.19.35;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2005.05.03.19.17.59;	author tgl;	state Exp;
branches;
next	1.13;

1.13
date	2005.03.14.18.31.21;	author momjian;	state Exp;
branches;
next	1.12;

1.12
date	2005.03.07.04.30.52;	author momjian;	state Exp;
branches;
next	1.11;

1.11
date	2004.01.21.19.22.19;	author tgl;	state Exp;
branches
	1.11.4.1;
next	1.10;

1.10
date	2003.11.29.19.52.02;	author pgsql;	state Exp;
branches;
next	1.9;

1.9
date	2003.08.23.04.22.34;	author petere;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	2003.08.08.14.31.12;	author tgl;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	2002.09.24.20.14.58;	author petere;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2002.09.04.15.45.50;	author tgl;	state Exp;
branches;
next	1.5;

1.5
date	2002.08.22.00.01.44;	author tgl;	state Exp;
branches;
next	1.4;

1.4
date	2002.08.14.02.45.10;	author ishii;	state Exp;
branches;
next	1.3;

1.3
date	2002.08.06.05.40.45;	author ishii;	state Exp;
branches;
next	1.2;

1.2
date	2002.07.18.22.58.08;	author petere;	state Exp;
branches;
next	1.1;

1.1
date	2002.07.16.09.25.04;	author ishii;	state Exp;
branches;
next	;

1.7.2.1
date	2003.08.08.15.49.10;	author tgl;	state Exp;
branches;
next	1.7.2.2;

1.7.2.2
date	2005.05.03.19.18.48;	author tgl;	state Exp;
branches;
next	;

1.8.2.1
date	2003.09.07.04.36.59;	author momjian;	state Exp;
branches;
next	;

1.9.2.1
date	2004.01.21.19.25.11;	author tgl;	state Exp;
branches;
next	1.9.2.2;

1.9.2.2
date	2005.05.03.19.18.31;	author tgl;	state Exp;
branches;
next	;

1.11.4.1
date	2005.05.03.19.18.16;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.25
log
@Remove extra newlines at end and beginning of files, add missing newlines
at end of files.
@
text
@#-------------------------------------------------------------------------
#
# Makefile--
#    Makefile for utils/mb/conversion_procs
#
# IDENTIFICATION
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.24 2009/11/04 23:47:04 tgl Exp $
#
#-------------------------------------------------------------------------

subdir = src/backend/utils/mb/conversion_procs
top_builddir = ../../../../..
include $(top_builddir)/src/Makefile.global

SQLSCRIPT = conversion_create.sql

# This file can be placed as src/test/regress/sql/conversion.sql
REGRESSION_SCRIPT = conversion.sql

SUBDIRS = \
	ascii_and_mic cyrillic_and_mic euc_cn_and_mic euc_jp_and_sjis \
	euc_kr_and_mic euc_tw_and_big5 latin2_and_win1250 latin_and_mic \
	utf8_and_ascii utf8_and_big5 utf8_and_cyrillic utf8_and_euc_cn \
	utf8_and_euc_jp utf8_and_euc_kr utf8_and_euc_tw utf8_and_gb18030 \
	utf8_and_gbk utf8_and_iso8859 utf8_and_iso8859_1 utf8_and_johab \
	utf8_and_sjis utf8_and_win utf8_and_uhc \
	utf8_and_euc2004 utf8_and_sjis2004 euc2004_sjis2004

# conversion_name source_encoding destination_encoding function object
CONVERSIONS = \
		ascii_to_mic	SQL_ASCII MULE_INTERNAL ascii_to_mic ascii_and_mic \
		mic_to_ascii	MULE_INTERNAL SQL_ASCII mic_to_ascii ascii_and_mic \
		koi8_r_to_mic	KOI8R MULE_INTERNAL koi8r_to_mic cyrillic_and_mic \
		mic_to_koi8_r	MULE_INTERNAL KOI8R mic_to_koi8r cyrillic_and_mic \
		iso_8859_5_to_mic	ISO-8859-5 MULE_INTERNAL iso_to_mic cyrillic_and_mic \
		mic_to_iso_8859_5	MULE_INTERNAL ISO-8859-5 mic_to_iso cyrillic_and_mic \
		windows_1251_to_mic	WIN1251 MULE_INTERNAL win1251_to_mic cyrillic_and_mic \
		mic_to_windows_1251	MULE_INTERNAL WIN1251 mic_to_win1251 cyrillic_and_mic \
		windows_866_to_mic	WIN866 MULE_INTERNAL win866_to_mic cyrillic_and_mic \
		mic_to_windows_866	MULE_INTERNAL WIN866 mic_to_win866 cyrillic_and_mic \
		koi8_r_to_windows_1251   KOI8R WIN1251 koi8r_to_win1251 cyrillic_and_mic \
		windows_1251_to_koi8_r   WIN1251 KOI8R win1251_to_koi8r cyrillic_and_mic \
		koi8_r_to_windows_866	KOI8R WIN866 koi8r_to_win866 cyrillic_and_mic \
		windows_866_to_koi8_r	WIN866 KOI8R win866_to_koi8r cyrillic_and_mic \
		windows_866_to_windows_1251	WIN866 WIN1251 win866_to_win1251 cyrillic_and_mic \
		windows_1251_to_windows_866	WIN1251	WIN866 win1251_to_win866 cyrillic_and_mic \
		iso_8859_5_to_koi8_r	ISO-8859-5 KOI8R iso_to_koi8r cyrillic_and_mic \
		koi8_r_to_iso_8859_5	KOI8R ISO-8859-5 koi8r_to_iso cyrillic_and_mic \
		iso_8859_5_to_windows_1251	ISO-8859-5 WIN1251 iso_to_win1251 cyrillic_and_mic \
		windows_1251_to_iso_8859_5	WIN1251 ISO-8859-5 win1251_to_iso cyrillic_and_mic \
		iso_8859_5_to_windows_866	ISO-8859-5 WIN866 iso_to_win866 cyrillic_and_mic \
		windows_866_to_iso_8859_5	WIN866 ISO-8859-5 win866_to_iso cyrillic_and_mic \
		euc_cn_to_mic	EUC_CN MULE_INTERNAL euc_cn_to_mic euc_cn_and_mic \
		mic_to_euc_cn	MULE_INTERNAL EUC_CN mic_to_euc_cn euc_cn_and_mic \
		euc_jp_to_sjis	EUC_JP SJIS euc_jp_to_sjis euc_jp_and_sjis \
		sjis_to_euc_jp	SJIS EUC_JP sjis_to_euc_jp euc_jp_and_sjis \
		euc_jp_to_mic	EUC_JP MULE_INTERNAL euc_jp_to_mic euc_jp_and_sjis \
		sjis_to_mic	SJIS MULE_INTERNAL sjis_to_mic euc_jp_and_sjis \
		mic_to_euc_jp	MULE_INTERNAL EUC_JP mic_to_euc_jp euc_jp_and_sjis \
		mic_to_sjis	MULE_INTERNAL SJIS mic_to_sjis euc_jp_and_sjis \
		euc_kr_to_mic	EUC_KR MULE_INTERNAL euc_kr_to_mic euc_kr_and_mic \
		mic_to_euc_kr	MULE_INTERNAL EUC_KR mic_to_euc_kr euc_kr_and_mic \
		euc_tw_to_big5	EUC_TW BIG5 euc_tw_to_big5 euc_tw_and_big5 \
		big5_to_euc_tw	BIG5 EUC_TW big5_to_euc_tw euc_tw_and_big5 \
		euc_tw_to_mic	EUC_TW MULE_INTERNAL euc_tw_to_mic euc_tw_and_big5 \
		big5_to_mic	BIG5 MULE_INTERNAL big5_to_mic euc_tw_and_big5 \
		mic_to_euc_tw	MULE_INTERNAL EUC_TW mic_to_euc_tw euc_tw_and_big5 \
		mic_to_big5	MULE_INTERNAL BIG5 mic_to_big5 euc_tw_and_big5 \
		iso_8859_2_to_mic	LATIN2 MULE_INTERNAL latin2_to_mic latin2_and_win1250 \
		mic_to_iso_8859_2	MULE_INTERNAL LATIN2 mic_to_latin2 latin2_and_win1250 \
		windows_1250_to_mic	WIN1250 MULE_INTERNAL win1250_to_mic latin2_and_win1250 \
		mic_to_windows_1250	MULE_INTERNAL WIN1250 mic_to_win1250 latin2_and_win1250 \
		iso_8859_2_to_windows_1250  LATIN2 WIN1250 latin2_to_win1250 latin2_and_win1250 \
		windows_1250_to_iso_8859_2  WIN1250 LATIN2 win1250_to_latin2 latin2_and_win1250 \
		iso_8859_1_to_mic	LATIN1 MULE_INTERNAL latin1_to_mic latin_and_mic \
		mic_to_iso_8859_1	MULE_INTERNAL LATIN1 mic_to_latin1 latin_and_mic \
		iso_8859_3_to_mic	LATIN3 MULE_INTERNAL latin3_to_mic latin_and_mic \
		mic_to_iso_8859_3	MULE_INTERNAL LATIN3 mic_to_latin3 latin_and_mic \
		iso_8859_4_to_mic	LATIN4 MULE_INTERNAL latin4_to_mic latin_and_mic \
		mic_to_iso_8859_4	MULE_INTERNAL LATIN4 mic_to_latin4 latin_and_mic \
		ascii_to_utf8 SQL_ASCII UTF8 ascii_to_utf8 utf8_and_ascii \
		utf8_to_ascii UTF8 SQL_ASCII utf8_to_ascii utf8_and_ascii \
		big5_to_utf8 BIG5 UTF8 big5_to_utf8 utf8_and_big5 \
		utf8_to_big5 UTF8 BIG5 utf8_to_big5 utf8_and_big5 \
		utf8_to_koi8_r	UTF8 KOI8R utf8_to_koi8r utf8_and_cyrillic \
		koi8_r_to_utf8	KOI8R UTF8 koi8r_to_utf8 utf8_and_cyrillic \
		utf8_to_koi8_u	UTF8 KOI8U utf8_to_koi8u utf8_and_cyrillic \
		koi8_u_to_utf8	KOI8U UTF8 koi8u_to_utf8 utf8_and_cyrillic \
		utf8_to_windows_866 UTF8 WIN866 utf8_to_win utf8_and_win \
		windows_866_to_utf8 WIN866 UTF8 win_to_utf8 utf8_and_win \
		utf8_to_windows_874 UTF8 WIN874 utf8_to_win utf8_and_win \
		windows_874_to_utf8 WIN874 UTF8 win_to_utf8 utf8_and_win \
		utf8_to_windows_1250 UTF8 WIN1250 utf8_to_win utf8_and_win \
		windows_1250_to_utf8 WIN1250 UTF8 win_to_utf8 utf8_and_win \
		utf8_to_windows_1251 UTF8 WIN1251 utf8_to_win utf8_and_win \
		windows_1251_to_utf8 WIN1251 UTF8 win_to_utf8 utf8_and_win \
		utf8_to_windows_1252 UTF8 WIN1252 utf8_to_win utf8_and_win \
		windows_1252_to_utf8 WIN1252 UTF8 win_to_utf8 utf8_and_win \
		utf8_to_windows_1253 UTF8 WIN1253 utf8_to_win utf8_and_win \
		windows_1253_to_utf8 WIN1253 UTF8 win_to_utf8 utf8_and_win \
		utf8_to_windows_1254 UTF8 WIN1254 utf8_to_win utf8_and_win \
		windows_1254_to_utf8 WIN1254 UTF8 win_to_utf8 utf8_and_win \
		utf8_to_windows_1255 UTF8 WIN1255 utf8_to_win utf8_and_win \
		windows_1255_to_utf8 WIN1255 UTF8 win_to_utf8 utf8_and_win \
		utf8_to_windows_1256 UTF8 WIN1256 utf8_to_win utf8_and_win \
		windows_1256_to_utf8 WIN1256 UTF8 win_to_utf8 utf8_and_win \
		utf8_to_windows_1257 UTF8 WIN1257 utf8_to_win utf8_and_win \
		windows_1257_to_utf8 WIN1257 UTF8 win_to_utf8 utf8_and_win \
		utf8_to_windows_1258 UTF8 WIN1258 utf8_to_win utf8_and_win \
		windows_1258_to_utf8 WIN1258 UTF8 win_to_utf8 utf8_and_win \
		euc_cn_to_utf8 EUC_CN UTF8 euc_cn_to_utf8 utf8_and_euc_cn \
		utf8_to_euc_cn UTF8 EUC_CN utf8_to_euc_cn utf8_and_euc_cn \
		euc_jp_to_utf8 EUC_JP UTF8 euc_jp_to_utf8 utf8_and_euc_jp \
		utf8_to_euc_jp UTF8 EUC_JP utf8_to_euc_jp utf8_and_euc_jp \
		euc_kr_to_utf8 EUC_KR UTF8 euc_kr_to_utf8 utf8_and_euc_kr \
		utf8_to_euc_kr UTF8 EUC_KR utf8_to_euc_kr utf8_and_euc_kr \
		euc_tw_to_utf8 EUC_TW UTF8 euc_tw_to_utf8 utf8_and_euc_tw \
		utf8_to_euc_tw UTF8 EUC_TW utf8_to_euc_tw utf8_and_euc_tw \
		gb18030_to_utf8 GB18030 UTF8 gb18030_to_utf8 utf8_and_gb18030 \
		utf8_to_gb18030 UTF8 GB18030 utf8_to_gb18030 utf8_and_gb18030 \
		gbk_to_utf8 GBK UTF8 gbk_to_utf8 utf8_and_gbk \
		utf8_to_gbk UTF8 GBK utf8_to_gbk utf8_and_gbk \
		utf8_to_iso_8859_2 UTF8 LATIN2 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_2_to_utf8 LATIN2 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_3 UTF8 LATIN3 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_3_to_utf8 LATIN3 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_4 UTF8 LATIN4 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_4_to_utf8 LATIN4 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_9 UTF8 LATIN5 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_9_to_utf8 LATIN5 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_10 UTF8 LATIN6 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_10_to_utf8 LATIN6 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_13 UTF8 LATIN7 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_13_to_utf8 LATIN7 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_14 UTF8 LATIN8 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_14_to_utf8 LATIN8 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_15 UTF8 LATIN9 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_15_to_utf8 LATIN9 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_16 UTF8 LATIN10 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_16_to_utf8 LATIN10 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_5 UTF8 ISO-8859-5 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_5_to_utf8 ISO-8859-5 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_6 UTF8 ISO-8859-6 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_6_to_utf8 ISO-8859-6 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_7 UTF8 ISO-8859-7 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_7_to_utf8 ISO-8859-7 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso_8859_8 UTF8 ISO-8859-8 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_8_to_utf8 ISO-8859-8 UTF8 iso8859_to_utf8 utf8_and_iso8859 \
		iso_8859_1_to_utf8 LATIN1 UTF8 iso8859_1_to_utf8 utf8_and_iso8859_1 \
		utf8_to_iso_8859_1 UTF8 LATIN1 utf8_to_iso8859_1 utf8_and_iso8859_1 \
		johab_to_utf8 JOHAB UTF8 johab_to_utf8 utf8_and_johab \
		utf8_to_johab UTF8 JOHAB utf8_to_johab utf8_and_johab \
		sjis_to_utf8 SJIS UTF8 sjis_to_utf8 utf8_and_sjis \
		utf8_to_sjis UTF8 SJIS utf8_to_sjis utf8_and_sjis \
		uhc_to_utf8 UHC UTF8 uhc_to_utf8 utf8_and_uhc \
		utf8_to_uhc UTF8 UHC utf8_to_uhc utf8_and_uhc \
		euc_jis_2004_to_utf8 EUC_JIS_2004 UTF8 euc_jis_2004_to_utf8 utf8_and_euc2004 \
		utf8_to_euc_jis_2004 UTF8 EUC_JIS_2004 utf8_to_euc_jis_2004 utf8_and_euc2004 \
		shift_jis_2004_to_utf8 SHIFT_JIS_2004 UTF8 shift_jis_2004_to_utf8 utf8_and_sjis2004 \
		utf8_to_shift_jis_2004 UTF8 SHIFT_JIS_2004 utf8_to_shift_jis_2004 utf8_and_sjis2004 \
		euc_jis_2004_to_shift_jis_2004 EUC_JIS_2004 SHIFT_JIS_2004 euc_jis_2004_to_shift_jis_2004 euc2004_sjis2004 \
		shift_jis_2004_to_euc_jis_2004 SHIFT_JIS_2004 EUC_JIS_2004 shift_jis_2004_to_euc_jis_2004 euc2004_sjis2004

all: $(SQLSCRIPT)
	@@for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@@ || exit; done

$(SQLSCRIPT): Makefile
ifeq ($(enable_shared), yes)
	@@set -e; \
	set $(CONVERSIONS) ; \
	while [ "$$#" -gt 0 ] ; \
	do \
		name=$$1;shift; \
		se=$$1;shift; \
		de=$$1; shift; \
		func=$$1; shift; \
		obj=$$1; shift; \
		echo "-- $$se --> $$de"; \
		echo "CREATE OR REPLACE FUNCTION $$func (INTEGER, INTEGER, CSTRING, INTERNAL, INTEGER) RETURNS VOID AS '$$"libdir"/$$obj', '$$func' LANGUAGE C STRICT;"; \
	        echo "COMMENT ON FUNCTION $$func(INTEGER, INTEGER, CSTRING, INTERNAL, INTEGER) IS 'internal conversion function for $$se to $$de';"; \
		echo "DROP CONVERSION pg_catalog.$$name;"; \
		echo "CREATE DEFAULT CONVERSION pg_catalog.$$name FOR '$$se' TO '$$de' FROM $$func;"; \
	        echo "COMMENT ON CONVERSION pg_catalog.$$name IS 'conversion for $$se to $$de';"; \
	done > $@@
else
	echo "-- No conversion support, for lack of shared library support" > $@@
endif

$(REGRESSION_SCRIPT): Makefile
	@@set -e; \
	cp regress_prolog $@@; \
	set $(CONVERSIONS) ; \
	while [ "$$#" -gt 0 ] ; \
	do \
		name=$$1;shift; \
		se=$$1;shift; \
		de=$$1; shift; \
		func=$$1; shift; \
		obj=$$1; shift; \
		echo "-- $$se --> $$de"; \
		echo "SELECT CONVERT('foo' USING $$name);"; \
		echo "SELECT CONVERT('foo', '$$se', '$$de');"; \
	done >> $@@; \
	cat regress_epilogue >> $@@;

install: $(SQLSCRIPT) installdirs
	$(INSTALL_DATA) $(SQLSCRIPT) '$(DESTDIR)$(datadir)'
	@@for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@@ || exit; done

installdirs:
	$(MKDIR_P) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(pkglibdir)'

uninstall:
	rm -f '$(DESTDIR)$(datadir)/$(SQLSCRIPT)'
	@@for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@@ || exit; done

clean distclean maintainer-clean:
	rm -f $(SQLSCRIPT)
	@@for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@@ || exit; done
@


1.24
log
@Rename some encoding conversion modules to keep pathnames in our source
tarballs under 100 characters.  This should avoid failures with certain
untarring tools (WinZip and Midnight Commander have been mentioned as
likely suspects).  Per my proposal of yesterday.
catversion bumped since the initial contents of pg_proc change.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.23 2009/08/26 22:24:43 petere Exp $
a219 1

@


1.23
log
@Update of install-sh, mkinstalldirs, and associated configury

Update install-sh to that from Autoconf 2.63, plus our Darwin-specific
changes (which I simplified a bit).  install-sh is now able to install
multiple files in one run, so we could simplify our makefiles sometime.

install-sh also now has a -d option to create directories, so we don't need
mkinstalldirs anymore.

Use AC_PROG_MKDIR_P in configure.in, so we can use mkdir -p when available
instead of install-sh -d.  For consistency with the rest of the world,
the corresponding make variable has been renamed from $(mkinstalldirs) to
$(MKDIR_P).
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.22 2009/08/07 20:50:22 petere Exp $
d17 1
a17 1
# This file can be placed as src/test/regress/conversion.sql
d27 1
a27 1
	utf8_and_euc_jis_2004 utf8_and_shift_jis_2004 euc_jis_2004_and_shift_jis_2004
d157 6
a162 6
		euc_jis_2004_to_utf8 EUC_JIS_2004 UTF8 euc_jis_2004_to_utf8 utf8_and_euc_jis_2004 \
		utf8_to_euc_jis_2004 UTF8 EUC_JIS_2004 utf8_to_euc_jis_2004 utf8_and_euc_jis_2004 \
		shift_jis_2004_to_utf8 SHIFT_JIS_2004 UTF8 shift_jis_2004_to_utf8 utf8_and_shift_jis_2004 \
		utf8_to_shift_jis_2004 UTF8 SHIFT_JIS_2004 utf8_to_shift_jis_2004 utf8_and_shift_jis_2004 \
		euc_jis_2004_to_shift_jis_2004 EUC_JIS_2004 SHIFT_JIS_2004 euc_jis_2004_to_shift_jis_2004 euc_jis_2004_and_shift_jis_2004 \
		shift_jis_2004_to_euc_jis_2004 SHIFT_JIS_2004 EUC_JIS_2004 shift_jis_2004_to_euc_jis_2004 euc_jis_2004_and_shift_jis_2004
@


1.22
log
@Expand test coverage support to entire tree

Test coverage support now covers the entire source tree, including
contrib, instead of just src/backend.  In a related but independent
development, the commands make coverage and make coverage-html can be run
in any directory.

This turned out to be much easier than feared.  Besides a few ad hoc fixes
to pass the make target down the tree, change all affected makefiles to
list their directories in the SUBDIRS variable, changed from variants like
DIRS and WANTED_DIRS.  MSVC build fix was attempted as well.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.21 2009/02/10 19:29:39 petere Exp $
d211 1
a211 1
	$(mkinstalldirs) '$(DESTDIR)$(datadir)' '$(DESTDIR)$(pkglibdir)'
@


1.21
log
@Support for KOI8U encoding
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.20 2008/08/23 20:31:37 momjian Exp $
d20 1
a20 1
DIRS = \
d165 1
a165 1
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@ || exit; done
d208 1
a208 1
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@ || exit; done
d215 1
a215 1
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@ || exit; done
d219 1
a219 1
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@ || exit; done
@


1.20
log
@Add missing descriptions for aggregates, functions and conversions.

Bernd Helmle
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.19 2008/03/18 16:24:50 petere Exp $
d87 2
@


1.19
log
@Catch all errors in for and while loops in makefiles.  Don't ignore any
errors in any commands, including in various clean targets that have so far
been handled inconsistently.  make -i is available to ignore all errors in
a consistent and official way.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.18 2007/03/25 11:56:02 ishii Exp $
d178 1
d181 1
@


1.18
log
@Add new encoding EUC_JIS_2004 and SHIFT_JIS_2004,
along with new conversions among EUC_JIS_2004, SHIFT_JIS_2004 and UTF-8.
catalog version has been bump up.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.17 2006/02/27 16:09:49 petere Exp $
d167 2
a168 1
	@@set $(CONVERSIONS) ; \
d186 2
a187 1
	@@cp regress_prolog $@@; \
d215 1
a215 1
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@; done
@


1.17
log
@Clean up CREATE FUNCTION syntax usage in contrib and elsewhere, in
particular get rid of single quotes around language names and old WITH ()
construct.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.16 2006/02/18 16:15:22 petere Exp $
d26 2
a27 1
	utf8_and_sjis utf8_and_win utf8_and_uhc
d154 7
a160 2
		utf8_to_uhc UTF8 UHC utf8_to_uhc utf8_and_uhc

@


1.16
log
@Add support for Windows codepages 1253, 1254, 1255, and 1257 and clean
up a bunch of the support utilities.

In src/backend/utils/mb/Unicode remove nearly duplicate copies of the
UCS_to_XXX perl script and replace with one version to handle all generic
files.  Update the Makefile so that it knows about all the map files.
This produces a slight difference in some of the map files, using a
uniform naming convention and not mapping the null character.

In src/backend/utils/mb/conversion_procs create a master utf8<->win
codepage function like the ISO 8859 versions instead of having a separate
handler for each conversion.

There is an externally visible change in the name of the win1258 to utf8
conversion.  According to the documentation notes, it was named
incorrectly and this changes it to a standard name.

Running the Unicode mapping perl scripts has shown some additional mapping
changes in koi8r and iso8859-7.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.15 2005/12/09 21:19:35 petere Exp $
d170 1
a170 1
		echo "CREATE OR REPLACE FUNCTION $$func (INTEGER, INTEGER, CSTRING, INTERNAL, INTEGER) RETURNS VOID AS '$$"libdir"/$$obj', '$$func' LANGUAGE 'c' STRICT;"; \
@


1.15
log
@Allow installation into directories containing spaces in the name.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.14 2005/05/03 19:17:59 tgl Exp $
d26 1
a26 2
	utf8_and_sjis utf8_and_win1258 utf8_and_uhc utf8_and_win1250 \
	utf8_and_win1252 utf8_and_win1256 utf8_and_win874
d86 22
a107 6
		utf8_to_windows_1251	UTF8 WIN1251 utf8_to_win1251 utf8_and_cyrillic \
		windows_1251_to_utf8	WIN1251 UTF8 win1251_to_utf8 utf8_and_cyrillic \
		utf8_to_windows_1252	UTF8 WIN1252 utf8_to_win1252 utf8_and_win1252 \
		windows_1252_to_utf8	WIN1252 UTF8 win1252_to_utf8 utf8_and_win1252 \
		utf8_to_windows_866	UTF8 WIN866 utf8_to_win866 utf8_and_cyrillic \
		windows_866_to_utf8	WIN866 UTF8 win866_to_utf8 utf8_and_cyrillic \
a151 2
		win1258_to_utf8 WIN1258 UTF8 win1258_to_utf8 utf8_and_win1258 \
		utf8_to_win1258 UTF8 WIN1258 utf8_to_win1258 utf8_and_win1258 \
d153 2
a154 7
		utf8_to_uhc UTF8 UHC utf8_to_uhc utf8_and_uhc \
		utf8_to_windows_1250  UTF8 WIN1250 utf8_to_win1250 utf8_and_win1250 \
		windows_1250_to_utf8  WIN1250 UTF8 win1250_to_utf8 utf8_and_win1250 \
		utf8_to_windows_1256  UTF8 WIN1256 utf8_to_win1256 utf8_and_win1256 \
		windows_1256_to_utf8  WIN1256 UTF8 win1256_to_utf8 utf8_and_win1256 \
		utf8_to_windows_874  UTF8 WIN874 utf8_to_win874 utf8_and_win874 \
		windows_874_to_utf8  WIN874 UTF8 win874_to_utf8 utf8_and_win874
@


1.14
log
@Alter the signature for encoding conversion functions to declare the
output area as INTERNAL not CSTRING.  This is to prevent people from
calling the functions by hand.  This is a permanent solution for the
back branches but I hope it is just a stopgap for HEAD.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.13 2005/03/14 18:31:21 momjian Exp $
d187 1
a187 1
	$(INSTALL_DATA) $(SQLSCRIPT) $(DESTDIR)$(datadir)
d191 1
a191 1
	$(mkinstalldirs) $(DESTDIR)$(datadir) $(DESTDIR)$(pkglibdir)
d194 1
a194 1
	rm -f $(DESTDIR)$(datadir)/$(SQLSCRIPT)
@


1.13
log
@Add support for Win1252 encoding.

Roland Volkmann
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.12 2005/03/07 04:30:52 momjian Exp $
d162 1
a162 1
		echo "CREATE OR REPLACE FUNCTION $$func (INTEGER, INTEGER, CSTRING, CSTRING, INTEGER) RETURNS VOID AS '$$"libdir"/$$obj', '$$func' LANGUAGE 'c' STRICT;"; \
@


1.12
log
@Rename canonical encodings, per Peter:

	UNICODE => UTF8
	ALT => WIN866
	WIN => WIN1251
	TCVN => WIN1258

The old codes continue to work.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.11 2004/01/21 19:22:19 tgl Exp $
d27 1
a27 1
	utf8_and_win1256 utf8_and_win874
d89 2
d141 6
a146 6
		utf8_to_windows_1250  UTF8 WIN1250 utf_to_win1250 utf8_and_win1250 \
		windows_1250_to_utf8  WIN1250 UTF8 win1250_to_utf utf8_and_win1250 \
		utf8_to_windows_1256  UTF8 WIN1256 utf_to_win1256 utf8_and_win1256 \
		windows_1256_to_utf8  WIN1256 UTF8 win1256_to_utf utf8_and_win1256 \
		utf8_to_windows_874  UTF8 WIN874 utf_to_win874 utf8_and_win874 \
		windows_874_to_utf8  WIN874 UTF8 win874_to_utf utf8_and_win874
@


1.11
log
@If we don't have shared libraries, we don't have conversions.  Make
conversion_create.sql be empty (except for a helpful comment) in this
case.  Allows initdb to succeed with --disable-shared.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.10 2003/11/29 19:52:02 pgsql Exp $
d26 1
a26 1
	utf8_and_sjis utf8_and_tcvn utf8_and_uhc utf8_and_win1250 \
d39 2
a40 2
		windows_866_to_mic	ALT MULE_INTERNAL alt_to_mic cyrillic_and_mic \
		mic_to_windows_866	MULE_INTERNAL ALT mic_to_alt cyrillic_and_mic \
d43 4
a46 4
		koi8_r_to_windows_866	KOI8R ALT koi8r_to_alt cyrillic_and_mic \
		windows_866_to_koi8_r	ALT KOI8R alt_to_koi8r cyrillic_and_mic \
		windows_866_to_windows_1251	ALT WIN1251 alt_to_win1251 cyrillic_and_mic \
		windows_1251_to_windows_866	WIN1251	ALT win1251_to_alt cyrillic_and_mic \
d51 2
a52 2
		iso_8859_5_to_windows_866	ISO-8859-5 ALT iso_to_alt cyrillic_and_mic \
		windows_866_to_iso_8859_5	ALT ISO-8859-5 alt_to_iso cyrillic_and_mic \
d81 64
a144 64
		ascii_to_utf_8 SQL_ASCII UNICODE ascii_to_utf8 utf8_and_ascii \
		utf_8_to_ascii UNICODE SQL_ASCII utf8_to_ascii utf8_and_ascii \
		big5_to_utf_8 BIG5 UNICODE big5_to_utf8 utf8_and_big5 \
		utf_8_to_big5 UNICODE BIG5 utf8_to_big5 utf8_and_big5 \
		utf_8_to_koi8_r	UNICODE KOI8R utf8_to_koi8r utf8_and_cyrillic \
		koi8_r_to_utf_8	KOI8R UNICODE koi8r_to_utf8 utf8_and_cyrillic \
		utf_8_to_windows_1251	UNICODE WIN1251 utf8_to_win1251 utf8_and_cyrillic \
		windows_1251_to_utf_8	WIN1251 UNICODE win1251_to_utf8 utf8_and_cyrillic \
		utf_8_to_windows_866	UNICODE ALT utf8_to_alt utf8_and_cyrillic \
		windows_866_to_utf_8	ALT UNICODE alt_to_utf8 utf8_and_cyrillic \
		euc_cn_to_utf_8 EUC_CN UNICODE euc_cn_to_utf8 utf8_and_euc_cn \
		utf_8_to_euc_cn UNICODE EUC_CN utf8_to_euc_cn utf8_and_euc_cn \
		euc_jp_to_utf_8 EUC_JP UNICODE euc_jp_to_utf8 utf8_and_euc_jp \
		utf_8_to_euc_jp UNICODE EUC_JP utf8_to_euc_jp utf8_and_euc_jp \
		euc_kr_to_utf_8 EUC_KR UNICODE euc_kr_to_utf8 utf8_and_euc_kr \
		utf_8_to_euc_kr UNICODE EUC_KR utf8_to_euc_kr utf8_and_euc_kr \
		euc_tw_to_utf_8 EUC_TW UNICODE euc_tw_to_utf8 utf8_and_euc_tw \
		utf_8_to_euc_tw UNICODE EUC_TW utf8_to_euc_tw utf8_and_euc_tw \
		gb18030_to_utf_8 GB18030 UNICODE gb18030_to_utf8 utf8_and_gb18030 \
		utf_8_to_gb18030 UNICODE GB18030 utf8_to_gb18030 utf8_and_gb18030 \
		gbk_to_utf_8 GBK UNICODE gbk_to_utf8 utf8_and_gbk \
		utf_8_to_gbk UNICODE GBK utf8_to_gbk utf8_and_gbk \
		utf_8_to_iso_8859_2 UNICODE LATIN2 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_2_to_utf_8 LATIN2 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_3 UNICODE LATIN3 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_3_to_utf_8 LATIN3 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_4 UNICODE LATIN4 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_4_to_utf_8 LATIN4 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_9 UNICODE LATIN5 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_9_to_utf_8 LATIN5 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_10 UNICODE LATIN6 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_10_to_utf_8 LATIN6 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_13 UNICODE LATIN7 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_13_to_utf_8 LATIN7 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_14 UNICODE LATIN8 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_14_to_utf_8 LATIN8 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_15 UNICODE LATIN9 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_15_to_utf_8 LATIN9 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_16 UNICODE LATIN10 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_16_to_utf_8 LATIN10 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_5 UNICODE ISO-8859-5 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_5_to_utf_8 ISO-8859-5 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_6 UNICODE ISO-8859-6 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_6_to_utf_8 ISO-8859-6 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_7 UNICODE ISO-8859-7 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_7_to_utf_8 ISO-8859-7 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf_8_to_iso_8859_8 UNICODE ISO-8859-8 utf8_to_iso8859 utf8_and_iso8859 \
		iso_8859_8_to_utf_8 ISO-8859-8 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		iso_8859_1_to_utf_8 LATIN1 UNICODE iso8859_1_to_utf8 utf8_and_iso8859_1 \
		utf_8_to_iso_8859_1 UNICODE LATIN1 utf8_to_iso8859_1 utf8_and_iso8859_1 \
		johab_to_utf_8 JOHAB UNICODE johab_to_utf8 utf8_and_johab \
		utf_8_to_johab UNICODE JOHAB utf8_to_johab utf8_and_johab \
		sjis_to_utf_8 SJIS UNICODE sjis_to_utf8 utf8_and_sjis \
		utf_8_to_sjis UNICODE SJIS utf8_to_sjis utf8_and_sjis \
		tcvn_to_utf_8 TCVN UNICODE tcvn_to_utf8 utf8_and_tcvn \
		utf_8_to_tcvn UNICODE TCVN utf8_to_tcvn utf8_and_tcvn \
		uhc_to_utf_8 UHC UNICODE uhc_to_utf8 utf8_and_uhc \
		utf_8_to_uhc UNICODE UHC utf8_to_uhc utf8_and_uhc \
		utf_8_to_windows_1250  UNICODE WIN1250 utf_to_win1250 utf8_and_win1250 \
		windows_1250_to_utf_8  WIN1250 UNICODE win1250_to_utf utf8_and_win1250 \
		utf_8_to_windows_1256  UNICODE WIN1256 utf_to_win1256 utf8_and_win1256 \
		windows_1256_to_utf_8  WIN1256 UNICODE win1256_to_utf utf8_and_win1256 \
		utf_8_to_windows_874  UNICODE WIN874 utf_to_win874 utf8_and_win874 \
		windows_874_to_utf_8  WIN874 UNICODE win874_to_utf utf8_and_win874
@


1.11.4.1
log
@Alter the signature for encoding conversion functions to declare the
output area as INTERNAL not CSTRING.  This is to prevent people from
calling the functions by hand.  This is a permanent solution for the
back branches but I hope it is just a stopgap for HEAD.
@
text
@d7 1
a7 1
#    $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.11 2004/01/21 19:22:19 tgl Exp $
d160 1
a160 1
		echo "CREATE OR REPLACE FUNCTION $$func (INTEGER, INTEGER, CSTRING, INTERNAL, INTEGER) RETURNS VOID AS '$$"libdir"/$$obj', '$$func' LANGUAGE 'c' STRICT;"; \
@


1.10
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
#    $PostgreSQL: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.9 2003/08/23 04:22:34 petere Exp $
d150 1
d164 3
@


1.9
log
@Fix uninstall target.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.8 2003/08/08 14:31:12 tgl Exp $
@


1.9.2.1
log
@Back-patch repairs for --disable-shared support.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.9 2003/08/23 04:22:34 petere Exp $
a149 1
ifeq ($(enable_shared), yes)
a162 3
else
	echo "-- No conversion support, for lack of shared library support" > $@@
endif
@


1.9.2.2
log
@Alter the signature for encoding conversion functions to declare the
output area as INTERNAL not CSTRING.  This is to prevent people from
calling the functions by hand.  This is a permanent solution for the
back branches but I hope it is just a stopgap for HEAD.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.9.2.1 2004/01/21 19:25:11 tgl Exp $
d160 1
a160 1
		echo "CREATE OR REPLACE FUNCTION $$func (INTEGER, INTEGER, CSTRING, INTERNAL, INTEGER) RETURNS VOID AS '$$"libdir"/$$obj', '$$func' LANGUAGE 'c' STRICT;"; \
@


1.8
log
@Conversion functions must be STRICT to prevent them from getting null inputs.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.7 2002/09/24 20:14:58 petere Exp $
d188 2
a189 2

dep depend distprep:
d192 1
a192 1
	$(RM) $(SQLSCRIPT)
@


1.8.2.1
log
@Update this branch to match CVS head, includes WIN32 improvements.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.9 2003/08/23 04:22:34 petere Exp $
d188 2
a189 2
	rm -f $(DESTDIR)$(datadir)/$(SQLSCRIPT)
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@ || exit; done
d192 1
a192 1
	rm -f $(SQLSCRIPT)
@


1.7
log
@Tweak conversion names to follow the established naming scheme, and
document that scheme.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.6 2002/09/04 15:45:50 tgl Exp $
d159 1
a159 1
		echo "CREATE OR REPLACE FUNCTION $$func (INTEGER, INTEGER, CSTRING, CSTRING, INTEGER) RETURNS VOID AS '$$"libdir"/$$obj', '$$func' LANGUAGE 'c';"; \
@


1.7.2.1
log
@Conversion functions must be STRICT to prevent them from getting null inputs.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.7 2002/09/24 20:14:58 petere Exp $
d159 1
a159 1
		echo "CREATE OR REPLACE FUNCTION $$func (INTEGER, INTEGER, CSTRING, CSTRING, INTEGER) RETURNS VOID AS '$$"libdir"/$$obj', '$$func' LANGUAGE 'c' STRICT;"; \
@


1.7.2.2
log
@Alter the signature for encoding conversion functions to declare the
output area as INTERNAL not CSTRING.  This is to prevent people from
calling the functions by hand.  This is a permanent solution for the
back branches but I hope it is just a stopgap for HEAD.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.7.2.1 2003/08/08 15:49:10 tgl Exp $
d159 1
a159 1
		echo "CREATE OR REPLACE FUNCTION $$func (INTEGER, INTEGER, CSTRING, INTERNAL, INTEGER) RETURNS VOID AS '$$"libdir"/$$obj', '$$func' LANGUAGE 'c' STRICT;"; \
@


1.6
log
@Avoid multiple scans of utils/mb/conversion_procs/ subdirectories during
'make install'; there are enough of 'em that this slowed down the make
noticeably.  Ensure that 'all' is the default make target in all these
directories (defaulting to 'make install' is surprising and dangerous
IMHO).  Fix a couple small typos.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.5 2002/08/22 00:01:44 tgl Exp $
d33 2
a34 2
		koi8r_to_mic	KOI8R MULE_INTERNAL koi8r_to_mic cyrillic_and_mic \
		mic_to_koi8r	MULE_INTERNAL KOI8R mic_to_koi8r cyrillic_and_mic \
d37 16
a52 16
		win1251_to_mic	WIN1251 MULE_INTERNAL win1251_to_mic cyrillic_and_mic \
		mic_to_win1251	MULE_INTERNAL WIN1251 mic_to_win1251 cyrillic_and_mic \
		win866_to_mic	ALT MULE_INTERNAL alt_to_mic cyrillic_and_mic \
		mic_to_win866	MULE_INTERNAL ALT mic_to_alt cyrillic_and_mic \
		koi8r_to_win1251   KOI8R WIN1251 koi8r_to_win1251 cyrillic_and_mic \
		win1251_to_koi8r   WIN1251 KOI8R win1251_to_koi8r cyrillic_and_mic \
		koi8r_to_win866	KOI8R ALT koi8r_to_alt cyrillic_and_mic \
		win866_to_koi8r	ALT KOI8R alt_to_koi8r cyrillic_and_mic \
		win866_to_win1251	ALT WIN1251 alt_to_win1251 cyrillic_and_mic \
		win1251_to_win866	WIN1251	ALT win1251_to_alt cyrillic_and_mic \
		iso_8859_5_to_koi8r	ISO-8859-5 KOI8R iso_to_koi8r cyrillic_and_mic \
		koi8r_to_iso_8859_5	KOI8R ISO-8859-5 koi8r_to_iso cyrillic_and_mic \
		iso_8859_5_to_win1251	ISO-8859-5 WIN1251 iso_to_win1251 cyrillic_and_mic \
		win1251_to_iso_8859_5	WIN1251 ISO-8859-5 win1251_to_iso cyrillic_and_mic \
		iso_8859_5_to_win866	ISO-8859-5 ALT iso_to_alt cyrillic_and_mic \
		win866_to_iso_8859_5	ALT ISO-8859-5 alt_to_iso cyrillic_and_mic \
d71 4
a74 4
		win1250_to_mic	WIN1250 MULE_INTERNAL win1250_to_mic latin2_and_win1250 \
		mic_to_win1250	MULE_INTERNAL WIN1250 mic_to_win1250 latin2_and_win1250 \
		iso_8859_2_to_win1250  LATIN2 WIN1250 latin2_to_win1250 latin2_and_win1250 \
		win1250_to_iso_8859_2  WIN1250 LATIN2 win1250_to_latin2 latin2_and_win1250 \
d85 6
a90 6
		utf_8_to_koi8r	UNICODE KOI8R utf8_to_koi8r utf8_and_cyrillic \
		koi8r_to_utf_8	KOI8R UNICODE koi8r_to_utf8 utf8_and_cyrillic \
		utf_8_to_win1251	UNICODE WIN1251 utf8_to_win1251 utf8_and_cyrillic \
		win1251_to_utf_8	WIN1251 UNICODE win1251_to_utf8 utf8_and_cyrillic \
		utf_8_to_win866	UNICODE ALT utf8_to_alt utf8_and_cyrillic \
		win866_to_utf_8	ALT UNICODE alt_to_utf8 utf8_and_cyrillic \
d139 6
a144 6
		utf_8_to_win1250  UNICODE WIN1250 utf_to_win1250 utf8_and_win1250 \
		win1250_to_utf_8  WIN1250 UNICODE win1250_to_utf utf8_and_win1250 \
		utf_8_to_win1256  UNICODE WIN1256 utf_to_win1256 utf8_and_win1256 \
		win1256_to_utf_8  WIN1256 UNICODE win1256_to_utf utf8_and_win1256 \
		utf_8_to_win874  UNICODE WIN874 utf_to_win874 utf8_and_win874 \
		win874_to_utf_8  WIN874 UNICODE win874_to_utf utf8_and_win874
@


1.5
log
@Add a bunch of pseudo-types to replace the behavior formerly associated
with OPAQUE, as per recent pghackers discussion.  I still want to do some
more work on the 'cstring' pseudo-type, but I'm going to commit the bulk
of the changes now before the tree starts shifting under me ...
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.4 2002/08/14 02:45:10 ishii Exp $
d146 3
d180 1
a180 1
install: all installdirs
d185 1
a185 1
	$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
d187 1
a187 2
all: $(SQLSCRIPT)
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@ || exit; done
d189 1
a189 3
clean:
	$(RM) $(SQLSCRIPT)
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@; done
d191 1
a191 1
distclean maintainer-clean:
@


1.4
log
@Add Cyrillic and other encodings for encoding conversion.
Patches submitted by Kaori Inaba (i-kaori@@sra.co.jp).
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.3 2002/08/06 05:40:45 ishii Exp $
d156 1
a156 1
		echo "CREATE OR REPLACE FUNCTION $$func (INTEGER, INTEGER, OPAQUE, OPAQUE, INTEGER) RETURNS INTEGER AS '$$"libdir"/$$obj', '$$func' LANGUAGE 'c';"; \
@


1.3
log
@Add SQL99 CONVERT() function.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v 1.2 2002/07/18 22:58:08 petere Exp $
d21 7
a27 5
	utf8_and_ascii utf8_and_iso8859_1 \
	utf8_and_euc_jp utf8_and_euc_kr utf8_and_euc_cn utf8_and_euc_tw \
	utf8_and_sjis utf8_and_big5 utf8_and_gbk utf8_and_gb18030 \
	utf8_and_uhc utf8_and_johab utf8_and_tcvn utf8_and_iso8859 \
	euc_jp_and_sjis euc_tw_and_big5
d29 1
d31 24
a54 52
		utf8_to_ascii UNICODE SQL_ASCII utf8_to_ascii utf8_and_ascii \
		ascii_to_utf8 SQL_ASCII UNICODE ascii_to_utf8 utf8_and_ascii \
		utf8_to_iso8859_1 UNICODE LATIN1 utf8_to_iso8859_1 utf8_and_iso8859_1 \
		iso8859_1_to_utf8 LATIN1 UNICODE iso8859_1_to_utf8 utf8_and_iso8859_1 \
		euc_jp_to_utf8 EUC_JP UNICODE euc_jp_to_utf8 utf8_and_euc_jp \
		utf8_to_euc_jp UNICODE EUC_JP utf8_to_euc_jp utf8_and_euc_jp \
		euc_kr_to_utf8 EUC_KR UNICODE euc_kr_to_utf8 utf8_and_euc_kr \
		utf8_to_euc_kr UNICODE EUC_KR utf8_to_euc_kr utf8_and_euc_kr \
		euc_cn_to_utf8 EUC_CN UNICODE euc_cn_to_utf8 utf8_and_euc_cn \
		utf8_to_euc_cn UNICODE EUC_CN utf8_to_euc_cn utf8_and_euc_cn \
		euc_tw_to_utf8 EUC_TW UNICODE euc_tw_to_utf8 utf8_and_euc_tw \
		utf8_to_euc_tw UNICODE EUC_TW utf8_to_euc_tw utf8_and_euc_tw \
		sjis_to_utf8 SJIS UNICODE sjis_to_utf8 utf8_and_sjis \
		utf8_to_sjis UNICODE SJIS utf8_to_sjis utf8_and_sjis \
		big5_to_utf8 BIG5 UNICODE big5_to_utf8 utf8_and_big5 \
		utf8_to_big5 UNICODE BIG5 utf8_to_big5 utf8_and_big5 \
		gbk_to_utf8 GBK UNICODE gbk_to_utf8 utf8_and_gbk \
		utf8_to_gbk UNICODE GBK utf8_to_gbk utf8_and_gbk \
		gb18030_to_utf8 GB18030 UNICODE gb18030_to_utf8 utf8_and_gb18030 \
		utf8_to_gb18030 UNICODE GB18030 utf8_to_gb18030 utf8_and_gb18030 \
		uhc_to_utf8 UHC UNICODE uhc_to_utf8 utf8_and_uhc \
		utf8_to_uhc UNICODE UHC utf8_to_uhc utf8_and_uhc \
		johab_to_utf8 JOHAB UNICODE johab_to_utf8 utf8_and_johab \
		utf8_to_johab UNICODE JOHAB utf8_to_johab utf8_and_johab \
		tcvn_to_utf8 TCVN UNICODE tcvn_to_utf8 utf8_and_tcvn \
		utf8_to_tcvn UNICODE TCVN utf8_to_tcvn utf8_and_tcvn \
		utf8_to_iso8859_2 UNICODE LATIN2 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_2_to_utf8 LATIN2 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_3 UNICODE LATIN3 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_3_to_utf8 LATIN3 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_4 UNICODE LATIN4 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_4_to_utf8 LATIN4 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_9 UNICODE LATIN5 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_9_to_utf8 LATIN5 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_10 UNICODE LATIN6 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_10_to_utf8 LATIN6 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_13 UNICODE LATIN7 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_13_to_utf8 LATIN7 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_14 UNICODE LATIN8 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_14_to_utf8 LATIN8 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_15 UNICODE LATIN9 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_15_to_utf8 LATIN9 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_16 UNICODE LATIN10 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_16_to_utf8 LATIN10 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_5 UNICODE ISO-8859-5 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_5_to_utf8 ISO-8859-5 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_6 UNICODE ISO-8859-6 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_6_to_utf8 ISO-8859-6 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_7 UNICODE ISO-8859-7 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_7_to_utf8 ISO-8859-7 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
		utf8_to_iso8859_8 UNICODE ISO-8859-8 utf8_to_iso8859 utf8_and_iso8859 \
		iso8859_8_to_utf8 ISO-8859-8 UNICODE iso8859_to_utf8 utf8_and_iso8859 \
d61 2
d68 77
a144 1
		mic_to_big5	MULE_INTERNAL BIG5 mic_to_big5 euc_tw_and_big5
a145 1
# conversion_name source_encoding destination_encoding function object
d194 1
@


1.2
log
@Create directory before installing files.
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.1 2002/07/16 09:25:04 ishii Exp $
d17 3
d27 1
a27 3
# conversion_name source_encoding destination_encoding function object
$(SQLSCRIPT): Makefile
	@@set \
d91 5
a95 2
		mic_to_big5	MULE_INTERNAL BIG5 mic_to_big5 euc_tw_and_big5 \
	; \
d108 16
@


1.1
log
@Add conversion procs for CREATE CONVERSION
@
text
@d7 1
a7 1
#    $Header: /cvsroot/pgsql/src/backend/utils/mb/Makefile,v 1.17 2001/09/22 08:44:47 ishii Exp $
d105 2
a106 2
install:
	$(INSTALL_DATA) $(SQLSCRIPT) $(datadir)
d108 3
@
