From 44f8c5c10aa3314fd88c63fac45807130e64110b Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Sat, 27 Sep 2003 22:24:49 +0000
Subject: [PATCH] Make dbf2pg safe for non-ASCII character sets.

M?rcio Dick Smiderle
---
 contrib/dbase/dbf2pg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/contrib/dbase/dbf2pg.c b/contrib/dbase/dbf2pg.c
index 294dcd8689b..1c01f7d1d66 100644
--- a/contrib/dbase/dbf2pg.c
+++ b/contrib/dbase/dbf2pg.c
@@ -700,6 +700,8 @@ main(int argc, char **argv)
 	if (verbose > 1)
 		printf("Opening dbf-file\n");
 
+	setlocale(LC_ALL, "");	/* fix for isprint() */
+	
 	if ((dbh = dbf_open(argv[0], O_RDONLY)) == (dbhead *) - 1)
 	{
 		fprintf(stderr, "Couldn't open xbase-file %s\n", argv[0]);
-- 
GitLab