Make dbf2pg safe for non-ASCII character sets.

M?rcio Dick Smiderle
This commit is contained in:
Bruce Momjian 2003-09-27 22:24:49 +00:00
parent 74c8703031
commit 44f8c5c10a

View file

@ -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]);