<div dir="ltr">Brandon and <span style="font-size:14px">Merijn,</span><br><div><span style="font-size:14px"><br></span></div><div><span style="font-size:14px">Thank you for advice.</span></div><div><span style="font-size:14px">But I should have noted that the issue is about Windows...</span></div><div><span style="font-size:14px">So things to take care might be different...</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-11 16:46 GMT+09:00 Merijn Verstraaten <span dir="ltr"><<a href="mailto:merijn@inconsistent.nl" target="_blank">merijn@inconsistent.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This sounds to me like a classical case of a wrongly (or not) configured locale/terminal. As a starting point I would check both what the locale variables are set to (run "locale" in the shell) and check what encoding the terminal is set to. I've noticed a lot of linux installs have completely borked configuration with regards to these and in those cases GHC can't do much.<br>
<br>
Side note: Just forcing output to be utf8 is *definitely* the wrong thing to do, as it'd break any environment set to a different encoding...<br>
<br>
Cheers,<br>
Merijn<br>
<div><div class="h5"><br>
> On 11 Apr 2017, at 1:24, Yuji Yamamoto <<a href="mailto:whosekiteneverfly@gmail.com">whosekiteneverfly@gmail.com</a>> wrote:<br>
><br>
> Hello Haskellers,<br>
><br>
> Currently, I’m working on this issue,<br>
> where haddock crashes when printing the Unicode “bullet character” on stderr whose character encoding is not UTF-8.<br>
><br>
> In the beforementioned pull request, I just added hSetEncoding stderr utf8 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.<br>
><br>
> So, I believe there’s a better way to handle the case, and GHC knows it.<br>
> Then, how does GHC detect the handle’s character encoding and convert incompatible characters (such as the bullet character) into “?” to avoid the error?<br>
> I couldn’t get it by reading the source of GHC a bit.<br>
><br>
> Thanks in advance!<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Haskell-Cafe mailing list<br>
> To (un)subscribe, modify options or view archives go to:<br>
> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
> Only members subscribed via the mailman list are allowed to post.<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">山本悠滋<br>twitter: @igrep<br>GitHub: <a href="https://github.com/igrep" target="_blank">https://github.com/igrep</a><br>Facebook: <a href="http://www.facebook.com/igrep" target="_blank">http://www.facebook.com/igrep</a><br>Google+: <a href="https://plus.google.com/u/0/+YujiYamamoto_igrep" target="_blank">https://plus.google.com/u/0/+YujiYamamoto_igrep</a></div>
</div>