mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-01-02 12:27:09 +08:00
Let LC_COLLATE influence string-comparison operations
By default this will be set to the C locale, but set it to the user's locale when string comparisons are performed from mdb-sql. Note that this can be overridden with the LC_COLLATE environment variable. We could infer the collation locale from the file itself, but this will likely require a big ball of glue between the Windows locales and Unix ones.
This commit is contained in:
@@ -401,7 +401,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
setlocale(LC_COLLATE, "");
|
||||
/* initialize the SQL engine */
|
||||
sql = mdb_sql_init();
|
||||
if (argc == 2) {
|
||||
|
||||
Reference in New Issue
Block a user