mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-01 17:06:03 +08:00
Corrected an issue with autotools and OSX and utf8.
This commit is contained in:
parent
8481819096
commit
6bf5a38d90
libdispatch
@ -19,8 +19,7 @@
|
|||||||
* NC_EBADNAME-- not valid utf8
|
* NC_EBADNAME-- not valid utf8
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int nc_utf8_validate(const unsigned char* name)
|
||||||
nc_utf8_validate(const unsigned char* name)
|
|
||||||
{
|
{
|
||||||
int ncstat = NC_NOERR;
|
int ncstat = NC_NOERR;
|
||||||
const nc_utf8proc_uint8_t *str;
|
const nc_utf8proc_uint8_t *str;
|
||||||
@ -95,4 +94,3 @@ nc_utf8_normalize(const unsigned char* utf8, unsigned char** normalp)
|
|||||||
done:
|
done:
|
||||||
return ncstat;
|
return ncstat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,6 +45,10 @@
|
|||||||
#include "utf8proc_data.c"
|
#include "utf8proc_data.c"
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Array containing the byte lengths of a UTF-8 encoded codepoint based
|
||||||
|
* on the first byte.
|
||||||
|
*/
|
||||||
const nc_utf8proc_int8_t nc_utf8proc_utf8class[256] = {
|
const nc_utf8proc_int8_t nc_utf8proc_utf8class[256] = {
|
||||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||||
|
@ -391,7 +391,7 @@ typedef nc_utf8proc_int32_t (*nc_utf8proc_custom_func)(nc_utf8proc_int32_t codep
|
|||||||
* Array containing the byte lengths of a UTF-8 encoded codepoint based
|
* Array containing the byte lengths of a UTF-8 encoded codepoint based
|
||||||
* on the first byte.
|
* on the first byte.
|
||||||
*/
|
*/
|
||||||
const nc_utf8proc_int8_t nc_utf8proc_utf8class[256];
|
//const nc_utf8proc_int8_t nc_utf8proc_utf8class[256];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the utf8proc API version as a string MAJOR.MINOR.PATCH
|
* Returns the utf8proc API version as a string MAJOR.MINOR.PATCH
|
||||||
|
Loading…
Reference in New Issue
Block a user