projects
/
usenet
/
yapfaq.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't warn for missing optional encoding setting.
[usenet/yapfaq.git]
/
yapfaq.pl
diff --git
a/yapfaq.pl
b/yapfaq.pl
index
b5b59b7
..
805c216
100755
(executable)
--- a/
yapfaq.pl
+++ b/
yapfaq.pl
@@
-196,10
+196,6
@@
sub readconfig{
warn "$0: W: The Message-ID format for your project \"$$Config[$i]{'name'}\" seems to be invalid - set to default.\n";
$$Config[$i]{'mid-format'} = '<%n-%y-%m-%d@'.hostfqdn.'>'; # set default if mid-format is invalid
}
warn "$0: W: The Message-ID format for your project \"$$Config[$i]{'name'}\" seems to be invalid - set to default.\n";
$$Config[$i]{'mid-format'} = '<%n-%y-%m-%d@'.hostfqdn.'>'; # set default if mid-format is invalid
}
- unless(defined($$Config[$i]{'charset'})) {
- warn "$0: W: Your project \"$$Config[$i]{'name'}\" has no encoding defined - set to default (UTF-8).\n";
- $$Config[$i]{'charset'} = 'UTF-8';
- }
}
$Error .= "-" x 25 . 'program terminated' . "-" x 25 . "\n" if $Error;
die $Error if $Error;
}
$Error .= "-" x 25 . 'program terminated' . "-" x 25 . "\n" if $Error;
die $Error if $Error;
@@
-300,7
+296,8
@@
sub postfaq {
}
# Set Charset
}
# Set Charset
- my $ContentType = sprintf('text/plain; charset=%s',$Charset);
+ $$Charset = 'UTF-8' if !$$Charset;
+ my $ContentType = sprintf('text/plain; charset=%s',$$Charset);
# Test mode?
if($Options{'t'} and $Options{'t'} !~ /console/i) {
# Test mode?
if($Options{'t'} and $Options{'t'} !~ /console/i) {
This page took
0.010417 seconds
and
4
git commands to generate.