Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit491545f

Browse files
committed
Do not require iconv for dbase conversion.
1 parent5446b1b commit491545f

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

‎contrib/dbase/Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Header: /cvsroot/pgsql/contrib/dbase/Attic/Makefile,v 1.3 2001/12/2104:13:12 momjian Exp $
1+
# $Header: /cvsroot/pgsql/contrib/dbase/Attic/Makefile,v 1.4 2001/12/2105:29:46 momjian Exp $
22

33
subdir = contrib/dbase
44
top_builddir = ../..
@@ -7,7 +7,13 @@ include $(top_builddir)/src/Makefile.global
77
PROGRAM = dbf2pg
88
OBJS= dbf.o dbf2pg.o endian.o
99
PG_CPPFLAGS = -I$(libpq_srcdir)
10-
PG_LIBS =$(libpq) -liconv
10+
PG_LIBS =$(libpq)
11+
12+
# Uncomment this to provide charset translation
13+
#PG_CPPFLAGS += -DHAVE_ICONV_H
14+
# You might need to uncomment this too, if libiconv is a separate
15+
# library on your platform
16+
#PG_LIBS += -liconv
1117

1218
DOCS = README.dbf2pg
1319
MAN = dbf2pg.1# XXX not implemented

‎contrib/dbase/README.dbf2pg

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,20 @@ dbf2sql(1L) dbf2sql(1L)
9797
fied charset. Example:
9898
-F IBM437
9999
Consult your system documentation to see the con-
100-
vertions available.
100+
versions available. This requires iconv to be enabled
101+
in the compile.
101102

102103
-T charset_to
103104
Together with -F charset_from ,it converts the
104105
data to thespecified charset. Default is
105-
"ISO-8859-1".
106+
"ISO-8859-1". This requires iconv to be enabled
107+
in the compile.
106108

107109
ENVIRONMENT
108110
This program is affected by theenvironment-variables as
109111
used by "PostgresSQL." See the documentation of Post-
110-
gresSQL for more info. This program requires libiconv.
112+
gresSQL for more info. This program can optionally use iconv
113+
character set conversion routines.
111114

112115
BUGS
113116
Fields larger than 8192 characters are not supported and

‎contrib/dbase/dbf2pg.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
*/
88
#include"postgres_fe.h"
99

10-
#defineHAVE_ICONV_H/* should be somewhere else */
11-
1210
#include<fcntl.h>
1311
#include<unistd.h>
1412
#include<ctype.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp