Commit 44f8c5c1 authored by Bruce Momjian's avatar Bruce Momjian

Make dbf2pg safe for non-ASCII character sets.

M?rcio Dick Smiderle
parent 74c87030
......@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment