aboutsummaryrefslogtreecommitdiffstats
path: root/check_trans.pl
diff options
context:
space:
mode:
authorBas Zoetekouw <bas>2008-12-15 19:02:22 +0000
committerBas Zoetekouw <bas>2008-12-15 19:02:22 +0000
commit39734e22f01a6f1e9c075fdfbf332c1f9d4a7f8a (patch)
tree09d1a683f075bad042d96f989131fcd2a70319e6 /check_trans.pl
parent99cd453236f158fd3670666823c68147f5fafcd0 (diff)
Fix the output of the -g mail debug option: now output the mail in the correct
charset (i.e., the charset specified in the mail header, rather than the charset Perl thinks you like). CVS version numbers check_trans.pl: 1.87 -> 1.88
Diffstat (limited to 'check_trans.pl')
-rwxr-xr-xcheck_trans.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/check_trans.pl b/check_trans.pl
index d468cabbf35..f9979dff782 100755
--- a/check_trans.pl
+++ b/check_trans.pl
@@ -686,6 +686,8 @@ sub send_email
print '-'x72, "\n";
print color('reset');
+ # make sure perl doesn't do any annoying charset conversions
+ binmode( \*STDOUT, ':bytes' );
print $msg->as_string;
print color('bold yellow');

© 2014-2024 Faster IT GmbH | imprint | privacy policy