Commit 96e1fbe3 authored by Bruce Momjian's avatar Bruce Momjian

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
parent dc1cb4ce
......@@ -618,10 +618,14 @@ main(int argc, char **argv)
case 'U':
username = (char *) strdup(optarg);
break;
#ifdef HAVE_ICONV_H
case 'F':
#ifdef HAVE_ICONV_H
charset_from = (char *) strdup(optarg);
#else
printf("WARNING: dbf2pg was compiled without iconv support, ignoring -F option\n");
#endif
break;
#ifdef HAVE_ICONV_H
case 'T':
charset_to = (char *) strdup(optarg);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment