diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-04-05 19:29:00 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-04-05 19:29:00 +0200 |
commit | da15a59717fcf824569cbd647641c572405eb678 (patch) | |
tree | 1b4b7478d04570d080541c74a9d455c8275fa1da | |
parent | f36fe8c22cb0de29dbd0e729c880058c08cbec27 (diff) | |
download | exchange-da15a59717fcf824569cbd647641c572405eb678.tar.xz |
omit charset from en_US.UTF-8 env variable when picking i18n strings, handle no preference case
-rw-r--r-- | src/json/json_helper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c index e8c6d4cbc..c3788f863 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -419,7 +419,8 @@ parse_i18n_string (void *cls, val = json_object_get (root, ctx->field); - if (NULL != i18n) + if ( (NULL != i18n) && + (NULL != ctx->lp) ) { double best = 0.0; json_t *pos; |