netcdf-c/libdap4
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
..
CMakeLists.txt Significantly Improve Amazon S3 Cloud Storage Support 2021-09-27 18:36:33 -06:00
d4bytes.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4bytes.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4chunk.c Improve operation of the DAP4 code and fix bugs 2021-05-21 20:46:56 -06:00
d4chunk.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4curlflags.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4curlfunctions.c Significantly Improve Amazon S3 Cloud Storage Support 2021-09-27 18:36:33 -06:00
d4curlfunctions.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4cvt.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4data.c Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
d4debug.c Improve operation of the DAP4 code and fix bugs 2021-01-14 21:39:08 -07:00
d4debug.h Fix some protocol differences between netcdf-c and the Hyrax server. 2020-05-30 17:36:25 -06:00
d4dump.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4file.c Improve UTF8 Support On Windows 2022-02-08 20:53:30 -07:00
d4fix.c Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
d4http.c Improve operation of the DAP4 code and fix bugs 2021-05-21 20:46:56 -06:00
d4http.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4includes.h Improve UTF8 Support On Windows 2022-02-08 20:53:30 -07:00
d4mem.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4meta.c Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
d4odom.c Spelling fixes 2019-09-18 08:03:01 -06:00
d4odom.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4parser.c Support MSYS2/Mingw platform 2021-12-23 22:18:56 -07:00
d4printer.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4read.c Improve operation of the DAP4 code and fix bugs 2021-05-21 20:46:56 -06:00
d4read.h Improve operation of the DAP4 code and fix bugs 2021-01-14 21:39:08 -07:00
d4swap.c Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
d4util.c Improve UTF8 Support On Windows 2022-02-08 20:53:30 -07:00
d4util.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4varx.c Improve operation of the DAP4 code and fix bugs 2021-05-21 20:46:56 -06:00
Makefile.am Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
ncd4.h Improve UTF8 Support On Windows 2022-02-08 20:53:30 -07:00
ncd4dispatch.c Add complete bitgroom support to NCZarr 2022-01-24 15:22:24 -07:00
ncd4dispatch.h removed NC from open in dispatch table 2019-08-01 14:30:20 -06:00
ncd4types.h Improve operation of the DAP4 code and fix bugs 2021-05-21 20:46:56 -06:00