<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 10, 2017 at 7:24 PM, Yuji Yamamoto <span dir="ltr"><<a href="mailto:whosekiteneverfly@gmail.com" target="_blank">whosekiteneverfly@gmail.com</a>></span> wrote:<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"><div class="gmail-m_-8787686164636599599markdown-here-wrapper"><p style="margin:0px 0px 1.2em">Currently, I’m working on <a href="https://github.com/haskell/haddock/pull/566" target="_blank">this issue</a>,<br></p><p style="margin:0px 0px 1.2em">where haddock crashes when printing <a href="http://www.fileformat.info/info/unicode/char/2022/index.htm" target="_blank">the Unicode “bullet character”</a> on stderr whose character encoding is not UTF-8.</p>
<p style="margin:0px 0px 1.2em">In the beforementioned pull request, I just added <code style="font-size:0.85em;font-family:consolas,inconsolata,courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">hSetEncoding stderr utf8</code> as a quick-and-dirty workaround.<br>But GHC actually doesn’t do so: GHC prints “?” instead of the bullet character when stderr is not Unicode-compatible.</p>
<p style="margin:0px 0px 1.2em"></p></div></div></blockquote><div><a href="https://downloads.haskell.org/~ghc/8.0.2/docs/html/libraries/base-4.9.1.0/GHC-IO-Encoding.html#v:mkTextEncoding">https://downloads.haskell.org/~ghc/8.0.2/docs/html/libraries/base-4.9.1.0/GHC-IO-Encoding.html#v:mkTextEncoding</a> note the suffixes you can add to an encoding name.</div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>