base: Add JSON string non-ASCII escaping options
- Add HEIM_JSON_F_ESCAPE_NON_ASCII to indicate that non-ASCII must be escaped as \uXXXX. - Add HEIM_JSON_F_NO_ESCAPE_NON_ASCII to force non-escaping of BMP codepoints. - If the locale's codeset is not UTF-8 and HEIM_JSON_F_NO_ESCAPE_NON_ASCII is not set, then set HEIM_JSON_F_ESCAPE_NON_ASCII.
This commit is contained in:
@@ -239,7 +239,7 @@ heim_string_t
|
||||
__heim_string_constant(const char *_str)
|
||||
{
|
||||
static HEIMDAL_MUTEX mutex = HEIMDAL_MUTEX_INITIALIZER;
|
||||
static heim_base_once_t once;
|
||||
static heim_base_once_t once = HEIM_BASE_ONCE_INIT;
|
||||
static heim_dict_t dict = NULL;
|
||||
heim_string_t s, s2;
|
||||
|
||||
|
Reference in New Issue
Block a user