Opened 11 years ago
Closed 11 years ago
#178 closed defect (fixed)
EPSG database proxy does work under Linux
Reported by: | Norm Olsen | Owned by: | Norm Olsen |
---|---|---|---|
Priority: | minor | Milestone: | 3.0 |
Component: | Tests | Version: | svn-trunk |
Keywords: | EPSG | Cc: |
Description
The EPSG Parameter Dataset proxy used by the Console Test module does not load properly under Linux.
Attachments (1)
Change History (4)
comment:1 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
by , 11 years ago
Attachment: | csEpsgSupport.cpp.patch added |
---|
comment:2 by , 11 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I tried to compile CS-Map trunk in CentOS 6.4 64-bit and got this compilation error on csEpsgSupport.cpp
no matching function for call to ‘std::locale::locale(const char [6], <anonymous enum>
I don't think this constructor of std::locale is supported:
std::locale epsgLocale("en_US", LC_ALL);
Attached is a patch that changes it to this:
std::locale epsgLocale("en_US");
Which fixes the compilation issue.
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Ran into that myself today. It was fixed with the submission to fix #159.
Revision at fix was 2450.
"The nice thing about standards is that there are so many to chose from." -- Unknown
Note:
See TracTickets
for help on using tickets.
Corrected by imbue'ing a locale other than "C" to the I/O streams which read the EPSG proxy CSV files.
Also added a "FailMessage" facility to the CsvFileSUpport object which can be used to report issues to the end user (English only, I'm afraid). This facility was incorporated into the EPSG object, and also the Console Test (Cpp) application.
The submission produced revision 2445.