Results 1 to 5 of 5

Thread: 2.2: get_section_names returning extra char

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default 2.2: get_section_names returning extra char

    Hello,

    I'm running into a problem where the string values returned from CL_ResourceManager::get_section_names have a trailing character that prints to the console as "/". If I remove the trailing character then it won't find the section despite being the same as the original name in the XML.

    I've seen this kind of thing before and it's been an encoding issue, but I'm not sure if it's a bug or something weird I'm doing, since I can't find anything in the examples using this code.

    Running on Linux, g++ etc.

    Thanks.

    EDIT: Additionally resourceFile.get_resource_names_of_type("layer", "name/") and resourceFile.get_resource_names_of_type("layer", "name") both return 0, while resourceFile.get_resource_names("layer") correctly returns the number of "layer" elements in all sections.
    This is code that was working in 0.8 before porting to 2.2.
    Last edited by Shulberry; 08-03-2010 at 10:41 PM.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •