Skip to content

Commit 96e1fbe

Browse files
committed
I recently received the Debian bug report below about missing iconv
support for the dbf2pg contrib module. The submitter created a patch which replaces the silent ignoring of -F (when iconv support is disabled) with a meaningful warning. Martin Pitt
1 parent dc1cb4c commit 96e1fbe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/dbase/dbf2pg.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,10 +618,14 @@ main(int argc, char **argv)
618618
case 'U':
619619
username = (char *) strdup(optarg);
620620
break;
621-
#ifdef HAVE_ICONV_H
622621
case 'F':
622+
#ifdef HAVE_ICONV_H
623623
charset_from = (char *) strdup(optarg);
624+
#else
625+
printf("WARNING: dbf2pg was compiled without iconv support, ignoring -F option\n");
626+
#endif
624627
break;
628+
#ifdef HAVE_ICONV_H
625629
case 'T':
626630
charset_to = (char *) strdup(optarg);
627631
break;

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