To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=82172
                 Issue #|82172
                 Summary|PCVSLib/Directory.pm does not handle dos lineneds corr
                        |ectly when running on unix
               Component|tools
                 Version|680m230
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P3
            Subcomponent|solenv
             Assigned to|hr
             Reported by|rt





------- Additional comments from [EMAIL PROTECTED] Tue Oct  2 10:02:03 +0000 
2007 -------
When using one source tree for working with different platforms it may happen
that files have dos lineends even when you are working on linux or solaris OS.
In such cases (at least) PCVSLib/Directory.pm fails. Something like

--- Directory.pm        27 Aug 2007 13:33:54 -0000      1.2
+++ Directory.pm        2 Oct 2007 10:00:16 -0000
@@ -269,6 +269,7 @@
     $self->{is_leaf} = 0;
     while (my $line = <$entries_fh>) {
         chomp($line);
+        $line =~ s/\s$//; # strip trailing white space
         if ( $line =~ /^D$/ ) {
             $self->{is_leaf} = 1;
             next;

(at all places where currently just 'chomp' is used) may help.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to