Commit Graph

24 Commits

Author SHA1 Message Date
Ward Fisher
5f1e18b83d Add manual GitHub actions triggers for the tests. 2022-06-13 16:56:22 -06:00
Ward Fisher
ad9650604f Remove on-push trigger for OSX-based workflows. 2022-04-21 14:23:53 -06:00
Dennis Heimbigner
36102e3c32 Improve UTF8 Support On Windows
re: Issue https://github.com/Unidata/netcdf-c/issues/2190

The primary purpose of this PR is to improve the utf8 support
for windows. This is persuant to a change in Windows that
supports utf8 natively (almost). The almost means that it is
still utf16 internally and the set of characters representable
by utf8 is larger than those representable by utf16.

This leaves open the question in the Issue about handling
the Windows 1252 character set.

This required the following changes:

1. Test the Windows build and major version in order to see if
   native utf8 is supported.
2. If native utf8 is supported, Modify dpathmgr.c to call the 8-bit
   version of the windows fopen() and open() functions.
3. In support of this, programs that use XGetOpt (Windows versions)
   need to get the command line as utf8 and then parse to
   arc+argv as utf8. This requires using a homegrown command line parser
   named XCommandLineToArgvA.
4. Add a utility program called "acpget" that prints out the
   current Windows code page and locale.

Additionally, some technical debt was cleaned up as follows:

1. Unify all the places which attempt to read all or a part
   of a file into the dutil.c#NC_readfile code.
2. Similary unify all the code that creates temp files into
   dutil.c#NC_mktmp code.
3. Convert almost all remaining calls to fopen() and open()
   to NCfopen() and NCopen3(). This is to ensure that path management
   is used consistently. This touches a number of files.
4. extern->EXTERNL as needed to get it to work under Windows.
2022-02-08 20:53:30 -07:00
Dennis Heimbigner
446348ed18 Add complete bitgroom support to NCZarr
re: PR https://github.com/Unidata/netcdf-c/pull/2088
re: PR https://github.com/Unidata/netcdf-c/pull/2130
replaces: https://github.com/Unidata/netcdf-c/pull/2140

Changes:
* Add NCZarr-specific quantize functions to the dispatch table.
* Copy (modified) quantize code from libhdf5 to NCZarr
* Add quantize invocation to zvar.c
* Add support for _QuantizeBitgroomNumberOfSignificantDigits
and _QuantizeGranularBitgroomNumberOfSignificantDigits to ncgen.
* Modify nc_test4/tst_quantize.c to allow it to be used both for hdf5
  and for nczarr.
* Make dap4 properly handle quantize functions in dispatch table.
* Add quantize attribute support to ncgen.

Other changes:
* Caught and fixed some S3 problems
* Fixed some nczarr fillvalue problems.
* Fixed some nczarr cache problems.
* Cleanup some flaws in libdispatch/dinfermodel.c
* Allow byterange requests to S3 be readable by dinfermodel.c/check_file_type
* Remove the libnczarr ztracedispatch code (big change).
2022-01-24 15:22:24 -07:00
Ward Fisher
2570ac1849 Avoid name collision in macOS tests. 2022-01-21 09:01:40 -07:00
Ward Fisher
c7dc1c25a1 Removed OSX tests from run-on-push, modify so that they run on pull request. 2022-01-20 17:11:22 -07:00
Ward Fisher
286abab31f Refactor triggers on GA runs. 2022-01-20 16:55:18 -07:00
Ward Fisher
2d39cc297e Add a missing space. 2022-01-20 16:53:06 -07:00
Ward Fisher
bbf1433c30 Remove HDF4 2022-01-20 16:38:29 -07:00
Ward Fisher
7a6accad44 More work on the OSX github actions. 2022-01-20 16:25:52 -07:00
Ward Fisher
c01f4adf8e Additional expansion of naming. 2022-01-20 16:13:38 -07:00
Ward Fisher
9a03ef6f20 Cache automake install. 2022-01-20 16:11:32 -07:00
Ward Fisher
0fb73f8545 Move autoconf installation stanza 2022-01-20 16:01:07 -07:00
Ward Fisher
4fdb855a20 More scripting. 2022-01-20 15:57:32 -07:00
Ward Fisher
36edd4ce96 Installing autoconf tools 2022-01-20 15:53:29 -07:00
Ward Fisher
532156f188 Remove more calls to apt. 2022-01-20 15:49:34 -07:00
Ward Fisher
e5c68d087e Removed call to autoreconf 2022-01-20 15:15:49 -07:00
Ward Fisher
7059f28719 Syntax error discovered (I hope) 2022-01-20 15:14:28 -07:00
Ward Fisher
3020729638 Remove ubuntu-specific thing. 2022-01-20 15:05:14 -07:00
Ward Fisher
815483b5b8 Sorting out the reported syntax error. 2022-01-20 15:04:01 -07:00
Ward Fisher
c0f0c7a6a4 More testing. 2022-01-20 15:01:51 -07:00
Ward Fisher
d951322351 Renaming jobs to differentiate between Ubuntu and Linux jobs. 2022-01-20 14:49:50 -07:00
Ward Fisher
932a60c005 Renamed some of the job steps. 2022-01-20 14:38:10 -07:00
Ward Fisher
070b8609ee Adding github actions. 2022-01-20 14:27:47 -07:00