From 71c9cbf8a8e8b3925f11756603ad6cb4b9828350 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Mon, 25 Jun 2018 08:22:58 +0320 Subject: [PATCH] Conform to Section 3.2.2.1 of XML Schema Part 2: Datatypes In accordance with Section 3.2.2.1 of XML Schema Part 2: Datatypes, the allowable lexical representations for the xs:boolean datatype are the strings "0" and "false" for the concept 'false' and the strings "1" and "true" for the concept 'true'; implementations MUST support both styles of lexical representation. --- src/ui/confwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/confwin.c b/src/ui/confwin.c index 73c12a59..80937f7d 100644 --- a/src/ui/confwin.c +++ b/src/ui/confwin.c @@ -258,7 +258,7 @@ _confwin_form_field(ProfWin *window, char *tag, FormField *field) if (value == NULL) { win_appendln(window, THEME_OFFLINE, "FALSE"); } else { - if (g_strcmp0(value, "0") == 0) { + if (g_strcmp0(value, "0") == 0 || g_strcmp0(value, "false") == 0) { win_appendln(window, THEME_OFFLINE, "FALSE"); } else { win_appendln(window, THEME_ONLINE, "TRUE");