X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fpod2man.PL;h=25df0df0b4f6cbfdbf95ee43e947d8ed611cf4e9;hb=8226a3d7ea7a9414bc41d73011d23876bd55e4b8;hp=58e3f2116b087f065686994747412420923b9514;hpb=bc9c751170bc3ae5aa8c6bbdbe4c1e970b6ad2a6;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/pod2man.PL b/pod/pod2man.PL index 58e3f21..25df0df 100644 --- a/pod/pod2man.PL +++ b/pod/pod2man.PL @@ -58,7 +58,7 @@ use vars qw($running_under_some_shell); my $stdin; @ARGV = map { $_ eq '-' && !$stdin++ ? ('--', $_) : $_ } @ARGV; -# Parse our options, trying to retain backwards compatibility with pod2man but +# Parse our options, trying to retain backward compatibility with pod2man but # allowing short forms as well. --lax is currently ignored. my %options; $options{errors} = 'pod'; @@ -78,7 +78,7 @@ if ($options{official} && !defined $options{center}) { my $verbose = $options{verbose}; delete $options{verbose}; -# This isn't a valid Pod::Man option and is only accepted for backwards +# This isn't a valid Pod::Man option and is only accepted for backward # compatibility. delete $options{lax}; @@ -100,7 +100,7 @@ pod2man - Convert POD data to formatted *roff input =for stopwords en em --stderr stderr --utf8 UTF-8 overdo markup MT-LEVEL Allbery Solaris -URL +URL troff troff-specific formatters uppercased Christiansen =head1 SYNOPSIS @@ -191,9 +191,9 @@ Print out usage information. =item B<-l>, B<--lax> -No longer used. B used to check its input for validity as a manual -page, but this should now be done by L instead. Accepted for -backwards compatibility; this option no longer does anything. +No longer used. B used to check its input for validity as a +manual page, but this should now be done by L instead. +Accepted for backward compatibility; this option no longer does anything. =item B<-n> I, B<--name>=I @@ -271,6 +271,12 @@ However, be warned that *roff source with literal UTF-8 characters is not supported by many implementations and may even result in segfaults and other bad behavior. +Be aware that, when using this option, the input encoding of your POD +source must be properly declared unless it is US-ASCII or Latin-1. POD +input without an C<=encoding> command will be assumed to be in Latin-1, +and if it's actually in UTF-8, the output will be double-encoded. See +L for more information on the C<=encoding> command. + =item B<-v>, B<--verbose> Print out the name of each output file as it is being generated. @@ -547,8 +553,8 @@ section numbering conventions. =head1 SEE ALSO -L, L, L, L, L, -L, L +L, L, L, L, L, +L, L, L The man page documenting the an macro set may be L instead of L on your system.