develooper Front page | perl.perl5.porters | Postings from June 2003

[perl #22827] Inconsistency in perl 5.8.0 'encoding' manpage

Miles Spielberg
June 26, 2003 20:53
[perl #22827] Inconsistency in perl 5.8.0 'encoding' manpage
Message ID:
# New Ticket Created by  Miles Spielberg 
# Please include the string:  [perl #22827]
# in the subject line of all future correspondence about this issue. 
# <URL: >

In the fourth paragraph of the ABSTRACT section of the encoding(3pm) 
manpage included with the 5.8.0 perl distribution, the following 
sentence appears:

"The encoding pragma also modifies the filehandle disciplines of STDIN, 
STDOUT, and STDERR to the specified encoding."

However, this is incorrect, and does not correspond to the behavior of 
the pragma. Later in the same manpage, under the USAGE section, the 
correct behavior is described:

"Sets fht escript encoding to ENCNAME. Filehandle disciplines of STDIN 
and STDOUT are set to ":encoding(ENCNAME)". Note that STDERR will not 
be changed."

This portion of the documentation also uses the old "discipline" 
terminology instead of the current "layer" terminology as described in 
the binmode section of the perfunc(1) manpage. Also, the encoding(3pm) 
manpage should describe how it is necessary to use binmode to change 
the filehandle layer associated with STDERR, if that is the desired 

Thank you for your time. Please contact me if you have any questions or 
comments on this matter.

Miles Spielberg
Intern, NTT Keihanna Research Laboratories, Kyoto, Japan Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About