eclipse-embed-cdt / eclipse-plugins

The Eclipse Embedded CDT plug-ins for Arm & RISC-V C/C++ developers (formerly known as the GNU MCU Eclipse plug-ins). Includes the archive of previous plug-ins versions, as Releases.
http://eclipse-embed-cdt.github.io/
Eclipse Public License 2.0
555 stars 129 forks source link

Configure the Java xml parser to accept files that start with the BOM sequence #412

Closed rbresalier closed 3 years ago

rbresalier commented 3 years ago

This issue is in reference to forum conversation:

https://www.tapatalk.com/groups/xpack/perhipheral-view-is-empty-t79.html

The peripheral view was empty because the svd file started with BOM sequence: ef bb bf 3c

As requested, I'm creating this issue for an enhancement to configure the java xml parser to properly handle these BOM sequences.

ilg-ul commented 3 years ago

The Java processing of BOM is known to be problematic:

In addition, Unicode says "Use of a BOM is neither required nor recommended for UTF-8".

Given that there is no simple way to fix this in Java, I'm afraid I have to tag this bug as unfixable and close this bug.