Add support for Latin9 encoding in to_ascii(). Jaime Casanova

This commit is contained in:
Tom Lane 2004-12-20 19:00:37 +00:00
parent b5ae0d69da
commit ed06824978
1 changed files with 10 additions and 2 deletions

View File

@ -5,7 +5,7 @@
* Portions Copyright (c) 1999-2004, PostgreSQL Global Development Group
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/ascii.c,v 1.22 2004/08/29 05:06:49 momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/ascii.c,v 1.23 2004/12/20 19:00:37 tgl Exp $
*
*-----------------------------------------------------------------------
*/
@ -28,7 +28,7 @@ static void
pg_to_ascii(unsigned char *src, unsigned char *src_end, unsigned char *dest, int enc)
{
unsigned char *x;
unsigned char *ascii;
const unsigned char *ascii;
int range;
/*
@ -53,6 +53,14 @@ pg_to_ascii(unsigned char *src, unsigned char *src_end, unsigned char *dest, int
ascii = " A L LS \"SSTZ-ZZ a,l'ls ,sstz\"zzRAAAALCCCEEEEIIDDNNOOOOxRUUUUYTBraaaalccceeeeiiddnnoooo/ruuuuyt.";
range = RANGE_160;
}
else if (enc == PG_LATIN9)
{
/*
* ISO-8859-15 <range: 160 -- 255>
*/
ascii = " cL YS sCa -R Zu .z EeY?AAAAAAACEEEEIIII NOOOOOxOUUUUYTBaaaaaaaceeeeiiii nooooo/ouuuuyty";
range = RANGE_160;
}
else if (enc == PG_WIN1250)
{
/*