[geos-devel] [GEOS] #846: UTF8 BOM in headers ?

GEOS geos-trac at osgeo.org
Fri Nov 24 01:12:23 PST 2017


#846: UTF8 BOM in headers ?
------------------------+---------------------------
 Reporter:  landry      |       Owner:  geos-devel@…
     Type:  defect      |      Status:  closed
 Priority:  major       |   Milestone:  3.6.3
Component:  Default     |     Version:  3.6.2
 Severity:  Unassigned  |  Resolution:  fixed
 Keywords:              |
------------------------+---------------------------

Comment (by landry):

 Hah, there's another bunch (in 3.6 branch):

 {{{
 CGAlgorithms.cpp:1: error: stray '\357' in program
 CGAlgorithms.cpp:1: error: stray '\273' in program
 CGAlgorithms.cpp:1: error: stray '\277' in program

 LineIntersector.cpp:1: error: stray '\357' in program
 LineIntersector.cpp:1: error: stray '\273' in program
 LineIntersector.cpp:1: error: stray '\277' in program
 ...
 ...
 }}}

 To find them all, some shell fu helps
 {{{
 find src/ include/ |while read f ; do file $f ; done |grep ISO
 src/algorithm/CGAlgorithms.cpp: ISO-8859 English text
 src/algorithm/LineIntersector.cpp: ISO-8859 English text
 src/geom/IntersectionMatrix.cpp: ISO-8859 English text
 include/geos/index/strtree/AbstractSTRtree.h: ISO-8859 English text


 }}}

 With those 4 files locally fixed, git branch svn-3.6 builds fine with g++
 4.2.1 on OpenBSD/amd64.

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/846#comment:9>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list