#3490 closed defect (worksforme)
source code levellerdataset.cpp error
Reported by: | gradmeow | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.7.2 |
Component: | ConfigBuild | Version: | 1.7.1 |
Severity: | major | Keywords: | levellerdataset.cpp |
Cc: | rayg |
Description
http://download.osgeo.org/gdal/gdal171.zip
In this release, there is a error at gdal-1.7.1\frmts\leveller\levellerdataset.cpp. In Line 171, "{ "?, kPI / 180.0, UNITLABEL_DEGREE }", lack of " after ? will result a build error.
Attachments (1)
Change History (6)
by , 14 years ago
Attachment: | levellerdataset.cpp added |
---|
comment:1 by , 14 years ago
Component: | default → ConfigBuild |
---|---|
Milestone: | → 1.7.2 |
Priority: | highest → normal |
Status: | new → assigned |
I have reviewed the code at this line, and it appears there is a UTF-8 or otherwise special character in the string constant:
warmerda@gdal64[5]% od -c { "°", kPI / 180.0, UNITLABEL_DEGREE }, 0000000 \t { " 302 260 " , k P I / 1 0000020 8 0 . 0 , U N I T L A B E L _ 0000040 D E G R E E } , \n 0000052
The solution would appear to be to replace it with a proper escape sequence rather than embedding a special character. However, this does not appear to adversely affect most compilers. What compiler are you building with? Is there anything unusual about your language/encoding environment?
comment:2 by , 14 years ago
Cc: | added |
---|
comment:3 by , 14 years ago
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
My bad. Have replaced the degree symbol with \xB0 (Unicode codepoint for the degree symbol).
line 171