diff options
| author | Magnus Hagander | 2009-04-24 08:43:51 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2009-04-24 08:43:51 +0000 |
| commit | 420ea68817408c7c157c4514c5101c421c04e9c9 (patch) | |
| tree | 57127b13a2943d2ed71d66aa7d38246b08035b82 /src/include | |
| parent | 9563afafeb45152ac31b653ffaa2cf7323ac7aad (diff) | |
Move gettext encoding names into encnames.c, so we only have one place to update.
Per discussion.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/mb/pg_wchar.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/mb/pg_wchar.h b/src/include/mb/pg_wchar.h index b7e1fe9c818..194ade27282 100644 --- a/src/include/mb/pg_wchar.h +++ b/src/include/mb/pg_wchar.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/mb/pg_wchar.h,v 1.89 2009/04/08 09:50:48 heikki Exp $ + * $PostgreSQL: pgsql/src/include/mb/pg_wchar.h,v 1.90 2009/04/24 08:43:51 mha Exp $ * * NOTES * This is used both by the backend and by libpq, but should not be @@ -262,6 +262,17 @@ typedef struct pg_enc2name extern pg_enc2name pg_enc2name_tbl[]; /* + * Encoding names for gettext + */ +typedef struct pg_enc2gettext +{ + pg_enc encoding; + const char *name; +} pg_enc2gettext; + +extern pg_enc2gettext pg_enc2gettext_tbl[]; + +/* * pg_wchar stuff */ typedef int (*mb2wchar_with_len_converter) (const unsigned char *from, |
