omit charset from en_US.UTF-8 env variable when picking i18n strings

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

View File

@ -487,7 +487,8 @@ TALER_JSON_spec_i18n_string (const char *name,
.size_ptr = NULL
};
ctx->lp = GNUNET_strdup (language_pattern);
ctx->lp = (NULL != language_pattern) ? GNUNET_strdup (language_pattern) :
NULL;
ctx->field = name;
*strptr = NULL;
return ret;