diff --git a/src/Resource/Resource_Manager.cxx b/src/Resource/Resource_Manager.cxx index 01b8ab443f..e773d624d6 100644 --- a/src/Resource/Resource_Manager.cxx +++ b/src/Resource/Resource_Manager.cxx @@ -225,6 +225,14 @@ static Resource_KindOfLine WhatKindOfLine(OSD_File& aFile, aToken2.Clear(); else { Line.Remove(1,Pos-1); + const Standard_Integer aLineLength = Line.Length(); + if (aLineLength >= 2) + { + if (Line.Value(aLineLength - 1) == '\r') + { + Line.Remove(aLineLength - 1); + } + } Line.Remove(Line.Length()); aToken2 = Line; } diff --git a/tests/bugs/demo/bug23671 b/tests/bugs/demo/bug23671 index b6dd7dd3f3..165f954f01 100755 --- a/tests/bugs/demo/bug23671 +++ b/tests/bugs/demo/bug23671 @@ -1,6 +1,3 @@ -puts "TODO CR23671 Linux: Error" -puts "TODO CR23671 Linux: Draw_Failure: Could not open" - puts "============" puts "CR23671" puts "============"