Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
491545ff
Commit
491545ff
authored
Dec 21, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not require iconv for dbase conversion.
parent
5446b1ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
contrib/dbase/Makefile
contrib/dbase/Makefile
+8
-2
contrib/dbase/README.dbf2pg
contrib/dbase/README.dbf2pg
+6
-3
contrib/dbase/dbf2pg.c
contrib/dbase/dbf2pg.c
+0
-2
No files found.
contrib/dbase/Makefile
View file @
491545ff
# $Header: /cvsroot/pgsql/contrib/dbase/Attic/Makefile,v 1.
3 2001/12/21 04:13:12
momjian Exp $
# $Header: /cvsroot/pgsql/contrib/dbase/Attic/Makefile,v 1.
4 2001/12/21 05:29:46
momjian Exp $
subdir
=
contrib/dbase
top_builddir
=
../..
...
...
@@ -7,7 +7,13 @@ include $(top_builddir)/src/Makefile.global
PROGRAM
=
dbf2pg
OBJS
=
dbf.o dbf2pg.o endian.o
PG_CPPFLAGS
=
-I
$(libpq_srcdir)
PG_LIBS
=
$(libpq)
-liconv
PG_LIBS
=
$(libpq)
# Uncomment this to provide charset translation
#PG_CPPFLAGS += -DHAVE_ICONV_H
# You might need to uncomment this too, if libiconv is a separate
# library on your platform
#PG_LIBS += -liconv
DOCS
=
README.dbf2pg
MAN
=
dbf2pg.1
# XXX not implemented
...
...
contrib/dbase/README.dbf2pg
View file @
491545ff
...
...
@@ -97,17 +97,20 @@ dbf2sql(1L) dbf2sql(1L)
fied charset. Example:
-F IBM437
Consult your system documentation to see the con-
vertions available.
versions available. This requires iconv to be enabled
in the compile.
-T charset_to
Together with -F charset_from , it converts the
data to the specified charset. Default is
"ISO-8859-1".
"ISO-8859-1". This requires iconv to be enabled
in the compile.
ENVIRONMENT
This program is affected by the environment-variables as
used by "PostgresSQL." See the documentation of Post-
gresSQL for more info. This program requires libiconv.
gresSQL for more info. This program can optionally use iconv
character set conversion routines.
BUGS
Fields larger than 8192 characters are not supported and
...
...
contrib/dbase/dbf2pg.c
View file @
491545ff
...
...
@@ -7,8 +7,6 @@
*/
#include "postgres_fe.h"
#define HAVE_ICONV_H
/* should be somewhere else */
#include <fcntl.h>
#include <unistd.h>
#include <ctype.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment