artemp/mapnik — Issue #872: sqlite: unicode string handling
Author: artemp
Created: 2011-10-11 16:39:48+00:00
State: open
Labels: Core_Library

before r3191 we were seeing undefined behavior with some string fields ending up leading to scrambled results with truncated field names and field values being returned from sqlite.

I thought the problem was fixed by doing:

{{{
int text_size;
const char * data = rs_->column_text(i,text_size);
UnicodeString ustr = tr_->transcode(data,text_size);
boost::put(*feature,fld_name,ustr);
}}}

instead of:

{{{
const char * data = rs_->column_text(i);
UnicodeString ustr = tr_->transcode(data);
boost::put(*feature,fld_name,ustr);
}}}

But that appears to lead to bogus `[]` junk at the end of some text strings, notably the `tests/data/good_maps/text_rotation.xml` test.