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:
Evan Miller
2021-01-19 21:24:31 -05:00
parent f99c5539e7
commit 615b625d79
4 changed files with 5 additions and 4 deletions

View File

@@ -64,6 +64,7 @@ NOTES
The -i command can be passed the string 'stdin' to test entering text as if using a pipe.
ENVIRONMENT
LC_COLLATE Defines the locale for string-comparison operations. See locale(1).
MDB_JET3_CHARSET Defines the charset of the input JET3 (access 97) file. Default is CP1252. See iconv(1).
MDBICONV Defines the output charset. Default is UTF-8. mdbtools must have been compiled with iconv.
MDBOPTS Colon-separated list of options: