#12 Last line character deleted on Windows

Devel-ptkdb-1.1x
closed-fixed
nobody
None
5
2007-03-09
2006-06-08
No

Version 1.1091 still deletes last character of each
line when used with Windows XP.

Changed (about line 2788) this:

substr $lineStr, -2, 1, '' if $isWin32 ; # removes the
CR from win32 instances

$lineStr .= "\n" unless /\n$/o ; # append a \n if there
isn't one already

To this:

$lineStr =~ s/\s*$/\n/; # assure exact line ending

Now it does not delete the last character on windows or
linux.

Discussion

  • Svetoslav Marinov

    Logged In: YES
    user_id=317337
    Originator: NO

    The defect you've identifed has been acknowledged(we own up to
    it) and accepted. Someone has been assigned to work on it.

     
  • Svetoslav Marinov

    Logged In: YES
    user_id=317337
    Originator: NO

    fixed in CVS.

     
  • Svetoslav Marinov

    • status: open --> open-fixed
     
  • Svetoslav Marinov

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.