Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 28d3ee4

Browse files
committed
Actually, this macro had worse problems than a bogus name ...
1 parent 848c30a commit 28d3ee4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/include/mb/pg_wchar.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/include/mb/pg_wchar.h,v 1.60 2005/08/05 14:36:43 tgl Exp $ */
1+
/* $PostgreSQL: pgsql/src/include/mb/pg_wchar.h,v 1.61 2005/08/05 15:01:48 tgl Exp $ */
22

33
#ifndef PG_WCHAR_H
44
#define PG_WCHAR_H
@@ -191,7 +191,6 @@ typedef enum pg_enc
191191
} pg_enc;
192192

193193
#define PG_ENCODING_BE_LAST PG_WIN1250
194-
#define PG_ENCODING_FE_LAST PG_GB18030
195194

196195
/*
197196
* Please use these tests before access to pg_encconv_tbl[]
@@ -201,7 +200,7 @@ typedef enum pg_enc
201200
((_enc) >= 0 && (_enc) <= PG_ENCODING_BE_LAST)
202201

203202
#define PG_ENCODING_IS_CLIENT_ONLY(_enc) \
204-
(((_enc) > PG_ENCODING_BE_LAST && (_enc) <= PG_ENCODING_FE_LAST)
203+
((_enc) > PG_ENCODING_BE_LAST && (_enc) < _PG_LAST_ENCODING_)
205204

206205
#define PG_VALID_ENCODING(_enc) \
207206
((_enc) >= 0 && (_enc) < _PG_LAST_ENCODING_)

0 commit comments

Comments
 (0)