Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 44f8c5c

Browse files
committed
Make dbf2pg safe for non-ASCII character sets.
M?rcio Dick Smiderle
1 parent 74c8703 commit 44f8c5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/dbase/dbf2pg.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ main(int argc, char **argv)
700700
if (verbose > 1)
701701
printf("Opening dbf-file\n");
702702

703+
setlocale(LC_ALL, ""); /* fix for isprint() */
704+
703705
if ((dbh = dbf_open(argv[0], O_RDONLY)) == (dbhead *) - 1)
704706
{
705707
fprintf(stderr, "Couldn't open xbase-file %s\n", argv[0]);

0 commit comments

Comments
 (0)