Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 5ab97a89

Von Sven Schöling vor mehr als 14 Jahren hinzugefügt

  • ID 5ab97a89a4dad2f892c0cfdeadd1d143e3d1b578
  • Vorgänger 7fc8d929
  • Nachfolger f41c4ade

STDOUT erneut öffnen unt UTF8-Flag und FastCGI gefixt

Conflicts:

SL/Form.pm

Unterschiede anzeigen:

SL/Form.pm
1336 1336
      #print(STDERR "OUT $self->{OUT}\n");
1337 1337
      for my $i (1 .. $self->{copies}) {
1338 1338
        if ($self->{OUT}) {
1339
          open(OUT, $self->{OUT})
1340
            or $self->error($self->cleanup . "$self->{OUT} : $!");
1339
          open OUT, $self->{OUT} or $self->error($self->cleanup . "$self->{OUT} : $!");
1340
          print OUT while <IN>;
1341
          close OUT;
1342
          seek IN, 0, 0;
1343

  
1341 1344
        } else {
1342 1345
          $self->{attachment_filename} = ($self->{attachment_filename})
1343 1346
                                       ? $self->{attachment_filename}
......
1350 1353

  
1351 1354
|;
1352 1355

  
1353
          open(OUT, ">-") or $self->error($self->cleanup . "$!: STDOUT");
1354

  
1355
        }
1356

  
1357
        while (<IN>) {
1358
          print OUT $_;
1359

  
1356
          $::locale->with_raw_io(\*STDOUT, sub { print while <IN> });
1360 1357
        }
1361

  
1362
        close(OUT);
1363

  
1364
        seek IN, 0, 0;
1365 1358
      }
1366 1359

  
1367 1360
      close(IN);

Auch abrufbar als: Unified diff