Make dbf2pg safe for non-ASCII character sets.
M?rcio Dick Smiderle
This commit is contained in:
parent
74c8703031
commit
44f8c5c10a
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user