1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Convert unaccent tests to UTF-8

This makes it easier to add new tests that are specific to Unicode
features.  The files were previously in KOI8-R.

Discussion: https://www.postgresql.org/message-id/8506.1545111362@sss.pgh.pa.us
This commit is contained in:
Peter Eisentraut
2019-01-02 18:36:05 +01:00
parent 1707a0d2aa
commit b6f3649bba
2 changed files with 20 additions and 20 deletions

View File

@ -3,16 +3,16 @@ CREATE EXTENSION unaccent;
-- must have a UTF8 database
SELECT getdatabaseencoding();
SET client_encoding TO 'KOI8';
SET client_encoding TO 'UTF8';
SELECT unaccent('foobar');
SELECT unaccent('<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
SELECT unaccent('<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
SELECT unaccent('ёлка');
SELECT unaccent('ЁЖИК');
SELECT unaccent('unaccent', 'foobar');
SELECT unaccent('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
SELECT unaccent('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
SELECT unaccent('unaccent', 'ёлка');
SELECT unaccent('unaccent', 'ЁЖИК');
SELECT ts_lexize('unaccent', 'foobar');
SELECT ts_lexize('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
SELECT ts_lexize('unaccent', '<EFBFBD><EFBFBD><EFBFBD><EFBFBD>');
SELECT ts_lexize('unaccent', 'ёлка');
SELECT ts_lexize('unaccent', 'ЁЖИК');