mirror of
https://github.com/postgres/postgres.git
synced 2025-07-24 14:22:24 +03:00
Make dbf2pg safe for non-ASCII character sets.
M?rcio Dick Smiderle
This commit is contained in:
@ -700,6 +700,8 @@ main(int argc, char **argv)
|
|||||||
if (verbose > 1)
|
if (verbose > 1)
|
||||||
printf("Opening dbf-file\n");
|
printf("Opening dbf-file\n");
|
||||||
|
|
||||||
|
setlocale(LC_ALL, ""); /* fix for isprint() */
|
||||||
|
|
||||||
if ((dbh = dbf_open(argv[0], O_RDONLY)) == (dbhead *) - 1)
|
if ((dbh = dbf_open(argv[0], O_RDONLY)) == (dbhead *) - 1)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Couldn't open xbase-file %s\n", argv[0]);
|
fprintf(stderr, "Couldn't open xbase-file %s\n", argv[0]);
|
||||||
|
Reference in New Issue
Block a user