Changeset 3036


Ignore:
Timestamp:
2002-03-04T11:40:39+13:00 (22 years ago)
Author:
jrm21
Message:

text strings weren't being properly converted for file output via the
convertclass. Input is now properly set so that we don't get garbage output.

Location:
trunk/gsdl/src/recpt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/collectoraction.cpp

    r3007 r3036  
    655655     
    656656      outconvertclass text_t2ascii;
    657       text_t2ascii << args["cfgfile"];
     657      text_t2ascii.setinput(&args["cfgfile"]);
    658658      size_t buffersize=args["cfgfile"].size();
    659659      char *buffer=new char[buffersize];
     660      buffer[0]='\n'; // just in case something goes wrong...
    660661      size_t num_chars;
    661662      convertclass::status_t status;
  • trunk/gsdl/src/recpt/receptionist.cpp

    r3007 r3036  
    710710  GSDL_LOCK_FILE (fd);
    711711  if (lock_val == 0) {
    712     text_t2utf8 << logstr;
     712    text_t tmp_log_str(logstr); // so we don't pass a const to setinput...
     713    text_t2utf8.setinput(&tmp_log_str);
    713714    char *buffer=new char[logstr.size()];
    714715    size_t num_chars;
  • trunk/gsdl/src/recpt/statusaction.cpp

    r3007 r3036  
    903903    } else {
    904904      outconvertclass text_t2ascii;
    905       text_t2ascii << args["cfgfile"];
     905      text_t2ascii.setinput(&args["cfgfile"]);
    906906      size_t buffersize=args["cfgfile"].size();
    907907      char *buffer=new char[buffersize];
Note: See TracChangeset for help on using the changeset viewer.