mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Corrected an issue with autotools and OSX and utf8.
This commit is contained in:
parent
8481819096
commit
6bf5a38d90
@ -19,8 +19,7 @@
|
||||
* NC_EBADNAME-- not valid utf8
|
||||
*/
|
||||
|
||||
int
|
||||
nc_utf8_validate(const unsigned char* name)
|
||||
int nc_utf8_validate(const unsigned char* name)
|
||||
{
|
||||
int ncstat = NC_NOERR;
|
||||
const nc_utf8proc_uint8_t *str;
|
||||
@ -95,4 +94,3 @@ nc_utf8_normalize(const unsigned char* utf8, unsigned char** normalp)
|
||||
done:
|
||||
return ncstat;
|
||||
}
|
||||
|
||||
|
@ -45,6 +45,10 @@
|
||||
#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] = {
|
||||
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
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user