[fdo-trac] #726: Garbage characters at end of provider registry
messages.
FDO
trac_fdo at osgeo.org
Tue Nov 23 16:28:14 EST 2010
#726: Garbage characters at end of provider registry messages.
--------------------------------------------------+-------------------------
Reporter: brentrobinson | Owner: brentrobinson
Type: defect | Status: closed
Priority: minor | Milestone: 3.6.0
Component: FDO API | Version: 3.6.0
Severity: 3 | Resolution: fixed
Keywords: Provider Registry readonly exception | External_id:
--------------------------------------------------+-------------------------
Changes (by brentrobinson):
* status: new => closed
* resolution: => fixed
Comment:
Revision: 5829
Author: brentrobinson
Date: 4:27:33 PM, Tuesday, November 23, 2010
Message:
Ticket#726: Fix the formatting for FDO exception that occurs when one
tries to register a new provider to a readonly providers.xml.
In this case, an exception from Xerces is trapped. The Xerces exception
message is converted from XMLCh* to char* (via XMLString::transcode()) and
formatted into an FDO exception message. However, the char* was getting
formatted as wchar_t*, meaning that the FDO exception ended up with
garbage characters.
XMLString::transcode() also converts the string to the current code page,
which is a bit risky if the code page is not set to the character set for
the string.
The fix was to convert the XMLCh* directly to wchar_t* before formatting
into the FDO exception message.
----
Modified : /trunk/Fdo/Unmanaged/Src/Common/Xml/UtilXrcs.cpp
Modified : /trunk/Fdo/Unmanaged/Src/Fdo/ClientServices/RegistryUtility.cpp
Modified : /trunk/Fdo/Unmanaged/Src/Message/FDOMessage.mc
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/726#comment:1>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list