On Sat, 18 Feb 2006, Peter Eisentraut wrote:
Kris Jurka wrote:
The attached patch adds support for windows codepages 1253, 1254,
1255, and 1257 and cleans up a bunch of the support utilities.
I've applied this patch but left out the changes to the Japanese
encoding maps, as you suggested.
The Makefile was invoking perl scripts as ./script.pl. This fails when
the script is not executable as UCS_to_most.pl is in CVS. It also won't
pick up any custom setting of the perl version/location to use. This
patch calls perl scripts like $(PERL) $(srcdir)/script.pl.
Kris Jurka
Index: src/backend/utils/mb/Unicode/Makefile
===================================================================
RCS file: /projects/cvsroot/pgsql/src/backend/utils/mb/Unicode/Makefile,v
retrieving revision 1.10
diff -c -r1.10 Makefile
*** src/backend/utils/mb/Unicode/Makefile 18 Feb 2006 16:15:22 -0000
1.10
--- src/backend/utils/mb/Unicode/Makefile 20 Feb 2006 22:51:37 -0000
***************
*** 69,93 ****
all: $(MAPS)
$(GENERICMAPS) : $(GENERICTEXTS)
! ./UCS_to_most.pl
euc_jp_to_utf8.map utf8_to_euc_jp.map : JIS0201.TXT JIS0208.TXT JIS0212.TXT
! ./UCS_to_EUC_JP.pl
euc_cn_to_utf8.map utf8_to_euc_cn.map : GB2312.TXT
! ./UCS_to_EUC_CN.pl
euc_kr_to_utf8.map utf8_to_euc_kr.map : KSX1001.TXT
! ./UCS_to_EUC_KR.pl
euc_tw_to_utf8.map utf8_to_euc_tw.map : CNS11643.TXT
! ./UCS_to_EUC_TW.pl
sjis_to_utf8.map utf8_to_sjis.map : CP932.TXT
! ./UCS_to_SJIS.pl
gb18030_to_utf8.map utf8_to_gb18030.map : ISO10646-GB18030.TXT
! ./UCS_to_GB18030.pl
clean:
rm -f $(MAPS)
--- 69,93 ----
all: $(MAPS)
$(GENERICMAPS) : $(GENERICTEXTS)
! $(PERL) $(srcdir)/UCS_to_most.pl
euc_jp_to_utf8.map utf8_to_euc_jp.map : JIS0201.TXT JIS0208.TXT JIS0212.TXT
! $(PERL) $(srcdir)/UCS_to_EUC_JP.pl
euc_cn_to_utf8.map utf8_to_euc_cn.map : GB2312.TXT
! $(PERL) $(srcdir)/UCS_to_EUC_CN.pl
euc_kr_to_utf8.map utf8_to_euc_kr.map : KSX1001.TXT
! $(PERL) $(srcdir)/UCS_to_EUC_KR.pl
euc_tw_to_utf8.map utf8_to_euc_tw.map : CNS11643.TXT
! $(PERL) $(srcdir)/UCS_to_EUC_TW.pl
sjis_to_utf8.map utf8_to_sjis.map : CP932.TXT
! $(PERL) $(srcdir)/UCS_to_SJIS.pl
gb18030_to_utf8.map utf8_to_gb18030.map : ISO10646-GB18030.TXT
! $(PERL) $(srcdir)/UCS_to_GB18030.pl
clean:
rm -f $(MAPS)
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend