Commit Graph

5 Commits

Author SHA1 Message Date
Michele Locati
bb83142d47
Make test_script.sh less verbose (configurable) (#424) 2023-10-10 08:18:52 -04:00
Michele Locati
c423097326
Fix invalid byte sequence error when running test_script.sh in some cases (#423)
This fixes the following error that may occur:
argument parsing failed: Invalid byte sequence in conversion input
2023-10-06 17:00:07 -04:00
Evan Miller
0e3a627ee6
Make command-line arguments locale-aware (#237)
GLib will automatically convert command line options to UTF-8 provided that setlocale(LC_TYPE, "") is called first, and the argument type is STRING (but not FILENAME). Update the CLI tools to take advantage of this behavior, and likewise implement it in fakeglib.

GLib does not automatically convert non-option arguments (i.e. everything remaining in argv after option processing), so manually call g_locale_to_utf8 on these arguments when they represent table names. This should fix the CLI tools when processing non-ASCII table names in non-UTF-8 locales. Also update fakeglib to implement a fast and loose version of g_locale_to_utf8, and factor out some of the code page => iconv name logic in iconv.c so it can be used in our fake g_locale_to_utf8. This adds a new symbol mdb_iconv_name_from_code_page that is not advertised in the main header file. I did not want to include mdbtools.h from fakeglib.c, but maybe that's not important.
2021-01-14 17:34:50 -05:00
Evan Miller
307cc50dc0 Fix Appveyor builds 2020-12-21 16:02:30 -05:00
Evan Miller
cb0ee059b2
Migrate from Travis CI to GitHub Actions (#229)
* Add GitHub Actions workflow

* Consolidate CI test commands into test_script.sh

* Remove Travis build
2020-12-21 15:42:38 -05:00