BUG IN CGate method dbgetxml

Discussion in 'C-Bus Toolkit and C-Gate Software' started by phcjpp, Aug 16, 2006.

  1. phcjpp

    phcjpp

    Joined:
    Oct 19, 2004
    Messages:
    112
    Likes Received:
    0
    Location:
    London
    Hi all,

    I think I have found a little bug in the dbgetxml routine.

    near the beginning is the xml preamble the string "utf-8"?>vbLf where vbLF is a line feed. I think it should be "utf-8"?>vbCRLf where vbCRLF is a carriage return line feed.

    Effectively message lines are split on CRLF's whereas this is missing the CR so it all goes 'tits up' so to speak.

    At the moment I am doing a search replace to put back the CR

    This took me ages to find !!!

    an example dump is

    [MLCBUS5] 347-<?xml version="1.0" encoding="utf-8"?>
    [MLCBUS5] 347-<Installation><OID>b6850340-e343-1027-a6c0-89e8 .......

    the end of the first line is a LF not CRLF

    Thanks
    Chris
     
    phcjpp, Aug 16, 2006
    #1
  2. phcjpp

    daniel C-Busser Moderator

    Joined:
    Jul 26, 2004
    Messages:
    766
    Likes Received:
    20
    Location:
    Adelaide
    Thanks Chris, I've logged that for investigation (#9214)

    Cheers,
    Daniel
     
    daniel, Aug 16, 2006
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.