#45 StrCat misbehave with LF+CR

compiler
closed-fixed
John Hansen
NBC (24)
5
2010-01-04
2007-10-23
Anonymous
No

Hi,

As I need to send Unix New Line character, (LF+CR), I've made a string with it. It runs ok, but when I do something like that:

task main(){

string lf = Flatten(0x0A); // Line Feed
string cr = Flatten(0x0D); // Carriage Return
string ENDL = StrCat(lf, cr);

StrCat("hola'", ENDL); // Correct
StrCat("hola", "'"); // Correct
StrCat("hola", "'", ENDL); // Failed
}

It fails, saying:

# Error: Expression has blanks

The problem is that fails when using NEWLINE and ' character.

Best regards.

Discussion

  • John Hansen
    John Hansen
    2010-01-04

    A fix for this defect has been checked into SVN and will be included in the next official release.

     
  • John Hansen
    John Hansen
    2010-01-04

    • status: open --> closed-fixed