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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy