Menu

#851 Deviant behaviour changestr-function regarding "00"X, ooRexx

v4.0.1
closed
Classes (182)
5
2012-08-14
2009-10-21
No

ooRexx Version: Open Object Rexx Version 4.0.0, Build date: Aug 15 2009, Addressing Mode: 32
OS: Microsoft Windows XP [Version 5.1.2600]:

/changestr error/

a = "00"X || "abc"

b = a~changestr("00"X, "123")

say b --expected output: 123abc
--actual output: 123abc12
/**/

When the changestr-function replaces a "00"X it appends additionally the replacement minus one character at the end of the modified string. In the previous example, it adds the string “12” at the end.

Discussion

  • Rick McGuire

    Rick McGuire - 2009-10-21

    Committed revision 5277.

     
  • Rick McGuire

    Rick McGuire - 2010-02-23

    Committed revision 5599.

    4.0.1 merge

     
  • Mark Miesfeld

    Mark Miesfeld - 2010-09-08

    The fix for this item was in the 4.0.1 release.

     

Anonymous
Anonymous

Add attachments
Cancel