omit charset from en_US.UTF-8 env variable when picking i18n strings, handle no preference case

This commit is contained in:
Christian Grothoff 2021-04-05 19:29:00 +02:00
parent f36fe8c22c
commit da15a59717
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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;