changeset 1508:0c8e7d6eff33

Replaced hardcoded BOM character with utf representation (PR3671) * netx/net/sourceforge/nanoxml/XMLElement.java: (scanLeadingWhitespace) resolved PR3671, relaced ' ' by \\ufef
author Jiri Vanek <jvanek@redhat.com>
date Tue, 18 Dec 2018 11:21:44 +0100
parents 38c1021dda36
children fcb841380712
files ChangeLog netx/net/sourceforge/nanoxml/XMLElement.java
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Dec 18 11:18:55 2018 +0100
+++ b/ChangeLog	Tue Dec 18 11:21:44 2018 +0100
@@ -1,3 +1,9 @@
+2018-12-10  Jiri Vanek <jvanek@redhat.com>
+            jtesdall <jtesdall@mapcon.com>
+
+	Replaced hardcoded BOM character with utf representation (PR3671)
+	* netx/net/sourceforge/nanoxml/XMLElement.java: (scanLeadingWhitespace) resolved PR3671, relaced ' ' by \\ufeff
+
 2018-11-28  Jiri Vanek <jvanek@redhat.com>
 
 	deployment.config now support generic url instead just file
--- a/netx/net/sourceforge/nanoxml/XMLElement.java	Tue Dec 18 11:18:55 2018 +0100
+++ b/netx/net/sourceforge/nanoxml/XMLElement.java	Tue Dec 18 11:21:44 2018 +0100
@@ -628,8 +628,8 @@
             throws IOException {
         while(true) {
             char ch = this.readChar();
-            //this is BOM , not space
-            if (ch == '') {
+            //this is BOM , when used without \\u, appear like space, but causes issues on windows development
+            if (ch == '\uFEFF') {
                 BOM = true;
             } else if (!isRegularWhiteSpace(ch)) {
                 return ch;