[data-parser] ignore whitespace when computing the schema id

Also add some more terminfo directories.
pull/69/head
Timothy Stack 11 years ago
parent d199a1431a
commit 7d66a64d00

@ -695,9 +695,18 @@ private:
pair_subs.PUSH_BACK(blank);
pair_subs.PUSH_BACK(free_row.front());
pairs_out.PUSH_BACK(element(pair_subs, DNT_PAIR));
// Throw something into the hash so that the number of
// columns is significant. I don't think we want to
// use the token ID since some columns values might vary
// between rows.
SHA_Update(&context, " ", 1);
}
break;
case DT_WHITE:
break;
default: {
std::string key_val = this->get_element_string(
free_row.front());

@ -3329,7 +3329,9 @@ int main(int argc, char *argv[])
* standard path to the terminfo database, we need to set this variable
* so that it will try the default path.
*/
setenv("TERMINFO_DIRS", "/usr/share/terminfo", 0);
setenv("TERMINFO_DIRS",
"/usr/share/terminfo:/lib/terminfo:/usr/share/lib/terminfo",
0);
if (sqlite3_open(":memory:", lnav_data.ld_db.out()) != SQLITE_OK) {
fprintf(stderr, "error: unable to create sqlite memory database\n");

Loading…
Cancel
Save