gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: omit charset from en_US.UTF-8 en


From: gnunet
Subject: [taler-exchange] branch master updated: omit charset from en_US.UTF-8 env variable when picking i18n strings, handle no preference case
Date: Mon, 05 Apr 2021 19:29:02 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new da15a597 omit charset from en_US.UTF-8 env variable when picking i18n 
strings, handle no preference case
da15a597 is described below

commit da15a59717fcf824569cbd647641c572405eb678
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Apr 5 19:29:00 2021 +0200

    omit charset from en_US.UTF-8 env variable when picking i18n strings, 
handle no preference case
---
 src/json/json_helper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index e8c6d4cb..c3788f86 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;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]