iconv conversion code

This commit is contained in:
brianb
2004-11-26 05:22:52 +00:00
parent 18b23bbd65
commit 34a9eac4ea
13 changed files with 121 additions and 26 deletions

View File

@@ -638,7 +638,7 @@ static char *mdb_memo_to_string(MdbHandle *mdb, int start, int size)
strncpy(text, buf + row_start, len);
text[len]='\0';
} else {
mdb_unicode2ascii(mdb, buf, row_start, len, text);
mdb_unicode2ascii(mdb, buf, row_start, len, text, MDB_BIND_SIZE);
}
return text;
} else { /* if (memo_flags == 0x0000) { */
@@ -749,7 +749,7 @@ char *mdb_col_to_string(MdbHandle *mdb, unsigned char *buf, int start, int datat
}
fprintf(stdout, "\n");
*/
mdb_unicode2ascii(mdb, mdb->pg_buf, start, size, text);
mdb_unicode2ascii(mdb, mdb->pg_buf, start, size, text, MDB_BIND_SIZE);
} else {
strncpy(text, &buf[start], size);
text[size]='\0';