Skip to content

Commit e5b6b0e

Browse files
committed
Add new configure option "--enable-uniconv" that enables automatic
code conversion between Unicode and other encodings. Note that this option requires --enable-multibyte also. The reason why this is optional is that the feature requires huge mapping tables and I don't think every user need the feature.
1 parent dd9dcd5 commit e5b6b0e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

configure.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,14 @@ Or do not specify an argument to the option to use the default.]);;
201201

202202
AC_SUBST(MULTIBYTE)
203203

204+
#
205+
# Unicode conversion (--enable-uniconv)
206+
#
207+
AC_MSG_CHECKING([whether to build with Unicode conversion support])
208+
PGAC_ARG_BOOL(enable, uniconv, no, [ --enable-uniconv enable unicode conversion support],
209+
[AC_DEFINE([UNICODE_CONVERSION], 1,
210+
[Set to 1 if you want Unicode conversion support (--enable-uniconv)])])
211+
AC_MSG_RESULT([$enable_uniconv])
204212

205213
#
206214
# Default port number (--with-pgport), default 5432

src/include/config.h.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* or in config.h afterwards. Of course, if you edit config.h, then your
99
* changes will be overwritten the next time you run configure.
1010
*
11-
* $Id: config.h.in,v 1.144 2000/10/23 14:49:45 momjian Exp $
11+
* $Id: config.h.in,v 1.145 2000/10/30 07:17:31 ishii Exp $
1212
*/
1313

1414
#ifndef CONFIG_H
@@ -42,6 +42,9 @@
4242
/* Set to 1 if you want to use multibyte characters (--enable-multibyte) */
4343
#undef MULTIBYTE
4444

45+
/* Set to 1 if you want Unicode conversion support (--enable-uniconv) */
46+
#undef UNICODE_CONVERSION
47+
4548
/* Set to 1 if you want ASSERT checking (--enable-cassert) */
4649
#undef USE_ASSERT_CHECKING
4750

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy