From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-2.sys.kth.se (smtp-2.sys.kth.se [130.237.32.160]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p4JMnW7j029843 for ; Thu, 19 May 2011 18:49:33 -0400 (EDT) Received: from mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) by smtp-2.sys.kth.se (Postfix) with ESMTP id 4825614D7E0; Fri, 20 May 2011 00:49:26 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-2.sys.kth.se ([130.237.32.160]) by mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) (amavisd-new, port 10024) with LMTP id UiPG6glLPDda; Fri, 20 May 2011 00:49:23 +0200 (CEST) X-KTH-Auth: kristaps [213.103.216.43] X-KTH-mail-from: kristaps@bsd.lv Received: from macky.local (s213-103-216-43.cust.tele2.se [213.103.216.43]) by smtp-2.sys.kth.se (Postfix) with ESMTP id A891D14C137; Fri, 20 May 2011 00:49:18 +0200 (CEST) Message-ID: <4DD59E71.7030607@bsd.lv> Date: Fri, 20 May 2011 00:49:21 +0200 From: Kristaps Dzonsons User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 To: discuss@mdocml.bsd.lv CC: =?ISO-8859-1?Q?Ulrich_Sp=F6rlein?= , Stefan Sperling , Hiroki Sato Subject: Re: Full mandoc locale support committed. References: <4DD2FFB0.2070303@bsd.lv> <20110519202803.GP31223@acme.spoerlein.net> In-Reply-To: <20110519202803.GP31223@acme.spoerlein.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit On 19/05/2011 22:28, Ulrich Spörlein wrote: > On Wed, 18.05.2011 at 01:07:28 +0200, Kristaps Dzonsons wrote: >> Hi, >> >> With this last commit, initial [full] locale support has been fitted >> into mandoc! Attached is eye-candy: a manual full of random Unicode >> input (\[uNNNN]) first with -Tascii, then with -Tlocale. >> >> From the manual: >> >> Locale Output >> Locale-depending output encoding is triggered with -Tlocale. >> This option is not available on all systems: systems without >> locale support, or those whose internal representation is not >> natively UCS-4, will fall back to -Tascii. See ASCII Output >> for font style specification and available command-line >> arguments. > > Cool stuff! However, and this might be due to a case of "we've always > been doing it that way"-thinking: I think this automagic is in the wrong > place. > > There might be cases, where I really want ASCII output no matter what my > locale is (this is covered by -Tascii right now), and there might be > cases where I want UTF-8 output, no matter what the current locale is. > Perhaps because I write the output to disk or to some other > postprocessor. > > What I'm arguing is that we need to have a -Tutf8 mode and that perhaps > *not* specifying *any* -T value turns on the automagic? This would make > more sense from a users standpoint, IMHO. Ulrich, I agree. And we also want -Tutf8 for groff compatibility. In short, I'll have -Tutf8 done for the next release. It's simply a matter of indicating *which* locale when using setlocale(). (By the way, does FreeBSD have the STDC_ISO_10646, whether explicitly or implicitly?) Thanks, Kristaps -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv