<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 11 September 2017 at 16:22, Zdenek Wagner <span dir="ltr"><<a href="mailto:zdenek.wagner@gmail.com" target="_blank">zdenek.wagner@gmail.com</a>></span> wrote:</div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I can confirm that perldoc perldoc behaves strangely om Mac but perldoc -oman perldoc works. I have perl in /opt/local/bin/perl but port info perl complains that perl does not exist. I do not remember how it was installed. When I tried perldoc -oman perldoc for the first time I got this message:<div><br></div><div>







<p class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-p1"><span class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-s1">$ perldoc -oman perldoc</span></p><span class="m_6478114172945302883gmail-m_-8158421337821190300gmail-">
<p class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-p1"><span class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-s1">You have an old groff. Update to version 1.20.1 for good Unicode support.</span></p>
<p class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-p1"><span class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-s1">If you don't upgrade, wide characters may come out oddly.</span></p>
</span><p class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-p2"><span class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-Apple-converted-space"> </span>at /opt/local/lib/perl5/5.24/Pod/<wbr>Perldoc.pm line 1513.<br><span class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-s1"></span></p><span class="m_6478114172945302883gmail-m_-8158421337821190300gmail-">
<p class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-p1"><span class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-s1">You have an old groff. Update to version 1.20.1 for good Unicode support.</span></p>
<p class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-p1"><span class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-s1">If you don't upgrade, wide characters may come out oddly.</span></p></span><p class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-p1"><span class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-Apple-converted-space"> </span>at /opt/local/lib/perl5/5.24/Pod/<wbr>Perldoc.pm line 1513.</p><p class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-p1"><br></p><p class="m_6478114172945302883gmail-m_-8158421337821190300gmail-m_-7641460910119972482gmail-p1">I do not know the source of my groff but it was not from MacPorts. After port install groff this message disapeared but behaviour is the same, -oman is still needed.</p></div></div>
</blockquote></div></div><div class="gmail_extra">Apple provides (obsolete) /usr/bin/groff (version 1.19.2 on El Capitan) with the Xcode command-line tools.    There are 3 modules that perldoc can use to<br></div><div class="gmail_extra">format terminal output:<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Pod::Perldoc::ToTerm (perldoc -oterm) , gives "1NAME1" output on macOS.  This is the default on linux, macports, and Msys2 (Windows)<br></div><div class="gmail_extra">Pod::Perldoc::ToMan (perldoc -oman -- requires groff, adds man-style headers)  used by Apple's perldoc<br></div><div class="gmail_extra">Pod::Perldoc::ToText (perldoc -otext or perldoc -t), default for Windows <br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I have no idea where the default behaviour is configured.  Macports should follow Xcode and make "-oman" the default.  Apple uses a number of <br></div><div class="gmail_extra">outdated GNU tools to avoid GPL3, so I don't expect Unicode support will appear in Apple's groff.<br clear="all"><br>-- <br><div class="m_6478114172945302883gmail-m_-8158421337821190300gmail_signature">George N. White III <<a href="mailto:aa056@chebucto.ns.ca" target="_blank">aa056@chebucto.ns.ca</a>><br>Head of St. Margarets Bay, Nova Scotia</div>
</div></div>