Attached patch fixes so that a BOM will be ignored. This applies
to all files read with TokenScanner which includes the styles, the
command line options files (-c) the TYP text format and the SRT text format.
Pre-built jar: http://files.mkgmap.org.uk/download/82/mkgmap.jar
..Steve
Index: src/uk/me/parabola/mkgmap/scan/TokenScanner.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/uk/me/parabola/mkgmap/scan/TokenScanner.java (revision 2455)
+++ src/uk/me/parabola/mkgmap/scan/TokenScanner.java (revision )
@@ -270,7 +270,7 @@
}
private boolean isSpace(int nextch) {
- return Character.isWhitespace(nextch);
+ return Character.isWhitespace(nextch) || nextch == '\uFEFF';
}
private boolean isWordChar(int ch) {
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev