netcdf-c/ncdap_test
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
..
expected3 Spelling fixes 2019-09-18 08:03:01 -06:00
expectremote3 Spelling fixes 2019-09-18 08:03:01 -06:00
expecttds3 ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
nocacheremote3 ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
special3 Spelling fixes 2019-09-18 08:03:01 -06:00
testdata3 Spelling fixes 2019-09-18 08:03:01 -06:00
CMakeLists.txt Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
findtestserver.c.in Cleanup the CMake inter-test dependencies 2021-12-20 15:13:08 -07:00
Makefile.am not verified 2021-11-26 20:28:51 -07:00
manyurls.h Adding missing file ncdap_test/manyurls.h 2021-08-24 12:27:54 -06:00
pingurl.c Avoid spurious test failures when servers fail. 2019-12-31 15:42:58 -07:00
run_ncdap_tests.sh
t_auth.c Improve UTF8 Support On Windows 2022-02-08 20:53:30 -07:00
t_dap3a.c Revert "Revert "Fix nczarr-experimental: improve build support, disengage hdf5 vs netcdf4 flags, and find AWS libraries"" 2020-08-17 19:15:47 -06:00
t_dap3b.c ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
t_dap3c.c ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
t_dap.c Revert "Revert "Fix nczarr-experimental: improve build support, disengage hdf5 vs netcdf4 flags, and find AWS libraries"" 2020-08-17 19:15:47 -06:00
t_misc.c Support MSYS2/Mingw platform 2021-12-23 22:18:56 -07:00
t_ncf330.c ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
t_srcdir.h ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
test_cvt.c Revert "Revert "Fix nczarr-experimental: improve build support, disengage hdf5 vs netcdf4 flags, and find AWS libraries"" 2020-08-17 19:15:47 -06:00
test_environment.c ncdump, other directories updated with copyright stanza. 2018-12-06 15:36:53 -07:00
test_manyurls.c Added missing file. 2021-06-01 15:05:42 -06:00
test_nstride_cached.c Avoid spurious test failures when servers fail. 2019-12-31 15:42:58 -07:00
test_partvar2.c Avoid spurious test failures when servers fail. 2019-12-31 15:42:58 -07:00
test_partvar.c Avoid spurious test failures when servers fail. 2019-12-31 15:42:58 -07:00
test_vara.c Reverted changes to C files. Can't change them as that messes with the 2019-11-07 15:46:50 -07:00
test_varm3.c Avoid spurious test failures when servers fail. 2019-12-31 15:42:58 -07:00
testauth.old
testauth.sh Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
testauth.sh.old
testbasicauth.sh
testcontainerauth.sh
testurl.sh charvlen 2021-05-28 21:53:12 -06:00
tst_ber.sh getting make -j check working 2017-11-17 10:49:06 -07:00
tst_curlopt.sh Add the ability to set some additional curlopt values 2018-08-26 17:04:46 -06:00
tst_encode.sh Additional Fixes to NCZarr 2020-12-16 20:48:02 -07:00
tst_filelists.sh The ncdap_tests were a mess, so I decided to clean them up 2018-03-20 21:31:31 -06:00
tst_fillmismatch.sh fix test cases 2021-01-07 19:37:03 -07:00
tst_formatx.sh Avoid spurious test failures when servers fail. 2019-12-31 15:42:58 -07:00
tst_longremote3.sh The ncdap_tests were a mess, so I decided to clean them up 2018-03-20 21:31:31 -06:00
tst_ncdap3.sh Attempt at test orchestration to avoid a race condition when running tests in parallel. 2021-08-25 13:33:49 -06:00
tst_ncdap_shared.sh
tst_ncdap.sh Attempt at test orchestration to avoid a race condition when running tests in parallel. 2021-08-25 13:33:49 -06:00
tst_nocache3.sh
tst_remote3.sh Attempt at test orchestration to avoid a race condition when running tests in parallel. 2021-08-25 13:33:49 -06:00
tst_remote.sh Attempt at test orchestration to avoid a race condition when running tests in parallel. 2021-08-25 13:33:49 -06:00
tst_special.sh Attempt at test orchestration to avoid a race condition when running tests in parallel. 2021-08-25 13:33:49 -06:00
tst_tds.sh Attempt at test orchestration to avoid a race condition when running tests in parallel. 2021-08-25 13:33:49 -06:00
tst_urls.sh Support MSYS2/Mingw platform 2021-12-23 22:18:56 -07:00
tst_utils.sh Modify DAP2 and DAP4 to optionally allow Fillvalue/Variable mismatch 2018-10-01 15:51:43 -06:00
tst_zero_len_var.sh Fix windows \r problem 2020-05-30 20:14:45 -06:00