Changeset 5472 for trunk/loader/shp2pgsql-core.c
- Timestamp:
- 03/31/10 07:50:53 (2 years ago)
- Files:
-
- 1 modified
-
trunk/loader/shp2pgsql-core.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/loader/shp2pgsql-core.c
r5450 r5472 1153 1153 if (!utf8str) 1154 1154 { 1155 snprintf(state->message, SHPLOADERMSGLEN, "Unable to convert field name \"%s\" to UTF-8: iconv reports \"%s\"", name, strerror(errno));1155 snprintf(state->message, SHPLOADERMSGLEN, "Unable to convert field name \"%s\" from %s encoding to UTF-8: iconv reports \"%s\"", name, state->config->encoding, strerror(errno)); 1156 1156 return SHPLOADERERR; 1157 1157 } … … 1580 1580 if (!utf8str) 1581 1581 { 1582 snprintf(state->message, SHPLOADERMSGLEN, "Unable to convert field value \"%s\" to UTF-8: iconv reports \"%s\"", val, strerror(errno));1582 snprintf(state->message, SHPLOADERMSGLEN, "Unable to convert field value \"%s\" from %s encoding to UTF-8: iconv reports \"%s\"", val, state->config->encoding, strerror(errno)); 1583 1583 return SHPLOADERERR; 1584 1584 }
