From 75c6519ff68dbb97f73b13e9976fb8075bbde7b8 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Sun, 25 Mar 2007 11:56:04 +0000 Subject: 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. --- src/test/regress/expected/conversion.out | 78 ++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) (limited to 'src/test/regress/expected/conversion.out') diff --git a/src/test/regress/expected/conversion.out b/src/test/regress/expected/conversion.out index 00a1ecf638..cd3f0e2c48 100644 --- a/src/test/regress/expected/conversion.out +++ b/src/test/regress/expected/conversion.out @@ -1642,6 +1642,84 @@ SELECT CONVERT('foo', 'WIN1257', 'UTF8'); foo (1 row) +-- UTF8 --> EUC_JIS_2004 +SELECT CONVERT('foo' USING utf8_to_euc_jis_2004); + convert_using +--------------- + foo +(1 row) + +SELECT CONVERT('foo', 'UTF8', 'EUC_JIS_2004'); + convert +--------- + foo +(1 row) + +-- EUC_JIS_2004 --> UTF8 +SELECT CONVERT('foo' USING euc_jis_2004_to_utf8); + convert_using +--------------- + foo +(1 row) + +SELECT CONVERT('foo', 'EUC_JIS_2004', 'UTF8'); + convert +--------- + foo +(1 row) + +-- UTF8 --> SHIFT_JIS_2004 +SELECT CONVERT('foo' USING utf8_to_euc_jis_2004); + convert_using +--------------- + foo +(1 row) + +SELECT CONVERT('foo', 'UTF8', 'SHIFT_JIS_2004'); + convert +--------- + foo +(1 row) + +-- SHIFT_JIS_2004 --> UTF8 +SELECT CONVERT('foo' USING shift_jis_2004_to_utf8); + convert_using +--------------- + foo +(1 row) + +SELECT CONVERT('foo', 'SHIFT_JIS_2004', 'UTF8'); + convert +--------- + foo +(1 row) + +-- EUC_JIS_2004 --> SHIFT_JIS_2004 +SELECT CONVERT('foo' USING euc_jis_2004_to_shift_jis_2004); + convert_using +--------------- + foo +(1 row) + +SELECT CONVERT('foo', 'EUC_JIS_2004', 'SHIFT_JIS_2004'); + convert +--------- + foo +(1 row) + +-- SHIFT_JIS_2004 --> EUC_JIS_2004 +SELECT CONVERT('foo' USING shift_jis_2004_to_euc_jis_2004); + convert_using +--------------- + foo +(1 row) + +SELECT CONVERT('foo', 'SHIFT_JIS_2004', 'EUC_JIS_2004'); + convert +--------- + foo +(1 row) + -- -- return to the super user -- -- cgit v1.2.1