Show
Ignore:
Timestamp:
03/31/10 07:50:53 (2 years ago)
Author:
strk
Message:

Dump more informations about failing decoding

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/loader/shp2pgsql-core.c

    r5450 r5472  
    11531153                        if (!utf8str) 
    11541154                        { 
    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)); 
    11561156                                return SHPLOADERERR; 
    11571157                        } 
     
    15801580                                if (!utf8str) 
    15811581                                { 
    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)); 
    15831583                                        return SHPLOADERERR; 
    15841584                                }