netcdf-c/include
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
..
.gitignore
ceconstraints.h
CMakeLists.txt Fix additional S3 support issues 2021-10-29 20:06:37 -06:00
err_macros.h
fbits.h
hdf4dispatch.h
hdf5dispatch.h
hdf5internal.h Add compatibility function prototype 2022-01-07 18:40:44 -07:00
isnan.h
Makefile.am Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
nc3dispatch.h
nc3internal.h Make sure mode flags are properly defined in netcdf.h 2022-01-11 19:05:46 -07:00
nc4dispatch.h further preparation for try 2 at quantizing 2021-08-24 01:04:55 -06:00
nc4internal.h Merge branch 'main' into vlenfix.dmh 2022-01-13 16:31:34 -07:00
nc_hashmap.h
nc_logging.h
nc_provenance.h
nc_tests.h Improve UTF8 Support On Windows 2022-02-08 20:53:30 -07:00
nc.h
ncauth.h Significantly Improve Amazon S3 Cloud Storage Support 2021-09-27 18:36:33 -06:00
ncbytes.h Significantly Improve Amazon S3 Cloud Storage Support 2021-09-27 18:36:33 -06:00
ncconfigure.h Merge branch 'main' into mingw-w64-strcasecmp 2022-01-11 10:45:15 +11:00
nccrc.h
ncdap.h
ncdimscale.h
ncdispatch.h
ncexhash.h
ncexternl.h
ncfilter.h
nchashmap.h
nchttp.h Fix additional S3 support issues 2021-10-29 20:06:37 -06:00
ncindex.h
ncjson.h Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
nclist.h Significantly Improve Amazon S3 Cloud Storage Support 2021-09-27 18:36:33 -06:00
nclog.h 1. Fix an additional flaw in fill_value handling where non-atomic default values were not properly being handled. 2022-01-10 15:27:16 -07:00
ncmodel.h
ncoffsets.h Fix various problem around VLEN's 2022-01-08 18:30:00 -07:00
ncpathmgr.h Support MSYS2/Mingw platform 2021-12-23 22:18:56 -07:00
ncrc.h Improve UTF8 Support On Windows 2022-02-08 20:53:30 -07:00
ncs3sdk.h Get signature of NC_s3sdk*ize correct 2021-11-26 13:59:10 -07:00
nctestserver.h
nctime.h
ncuri.h Add complete bitgroom support to NCZarr 2022-01-24 15:22:24 -07:00
ncurlmodel.h
ncutf8.h
ncxcache.h
ncxml.h Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
netcdf_aux.h Fix various problem around VLEN's 2022-01-08 18:30:00 -07:00
netcdf_dispatch.h.in adding quantize functions to all the dispatch tables 2021-08-24 01:26:44 -06:00
netcdf_f.h
netcdf_filter_build.h Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
netcdf_filter_hdf5_build.h Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
netcdf_filter.h Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
netcdf_json.h Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
netcdf_mem.h
netcdf_meta.h.in First draft of Granular BitGroom feature for netcdf-c 2021-10-20 16:00:32 -07:00
netcdf_par.h
netcdf.h Rename GranularBitGroom to GranularBitRound 2022-01-28 13:04:16 -07:00
onstack.h
rnd.h
XGetopt.h