[libxml2] Bug 721158: Missing ICU string when doing --version on xmllint <https://bugzilla.gnome.org/show_bug.



commit 783931fc5928cfcfaeb2e3199203e3c3fe7d75ec
Author: David Kilzer <ddkilzer apple com>
Date:   Wed Mar 2 12:48:51 2016 -0800

    Bug 721158: Missing ICU string when doing --version on xmllint 
<https://bugzilla.gnome.org/show_bug.cgi?id=721158>
    
    * xmllint.c:
    (showVersion): Add "ICU" to xmllint version string if libxml2 is
    built with ICU enabled.

 xmllint.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/xmllint.c b/xmllint.c
index 1e2eb4a..7c61286 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -2967,6 +2967,7 @@ static void showVersion(const char *name) {
     if (xmlHasFeature(XML_WITH_XPTR)) fprintf(stderr, "XPointer ");
     if (xmlHasFeature(XML_WITH_XINCLUDE)) fprintf(stderr, "XInclude ");
     if (xmlHasFeature(XML_WITH_ICONV)) fprintf(stderr, "Iconv ");
+    if (xmlHasFeature(XML_WITH_ICU)) fprintf(stderr, "ICU ");
     if (xmlHasFeature(XML_WITH_ISO8859X)) fprintf(stderr, "ISO8859X ");
     if (xmlHasFeature(XML_WITH_UNICODE)) fprintf(stderr, "Unicode ");
     if (xmlHasFeature(XML_WITH_REGEXP)) fprintf(stderr, "Regexps ");


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