PostGIS 1.0.3
????/??/??
+ - Severe bugfix in lwgeom's 2d bounding box computation
- Bugfix in WKT (-w) POINT handling in loader
- Bugfix in dumper on 64bit machines
- Bugfix in dumper handling of user-defined queries
- Bugfix in create_undef.pl script
- Small performance improvement in canonical input function
- Minor cleanups in loader
- - Severe bugfix in lwgeom's 2d bounding box computation
+ - Support for multibyte field names in loader
PostGIS 1.0.2
2005/07/04
char name[MAXFIELDNAMELEN];
char name2[MAXFIELDNAMELEN];
DBFFieldType type = -1;
+#ifdef USE_ICONV
+ char *utf8str;
+#endif
num_fields = DBFGetFieldCount( hDBFHandle );
num_records = DBFGetRecordCount(hDBFHandle);
widths[j] = field_width;
precisions[j] = field_precision;
+#ifdef USE_ICONV
+ if ( encoding )
+ {
+ utf8str = utf8(encoding, name);
+ if ( ! utf8str ) exit(1);
+ strcpy(name, utf8str);
+ free(utf8str);
+ }
+#endif
+
+
/*
* Make field names lowercase unless asked to
* keep identifiers case.
}
}
- field_names[j] = malloc ( strlen(name)+3 );
+ field_names[j] = malloc (strlen(name)+1);
strcpy(field_names[j], name);
sprintf(col_names, "%s\"%s\",", col_names, name);
/**********************************************************************
* $Log$
+ * Revision 1.88.2.5 2005/07/27 02:47:06 strk
+ * Support for multibyte field names in loader
+ *
* Revision 1.88.2.4 2005/07/27 02:34:29 strk
* Minor cleanups in loader
*