From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from acme.spoerlein.net (acme.spoerlein.net [88.198.49.12]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id p4K7QH21023253 for ; Fri, 20 May 2011 03:26:19 -0400 (EDT) Received: from localhost (acme.spoerlein.net [IPv6:2a01:4f8:131:23c2::1]) by acme.spoerlein.net (8.14.4/8.14.4) with ESMTP id p4K7QFFP053493 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 20 May 2011 09:26:16 +0200 (CEST) (envelope-from uqs@spoerlein.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spoerlein.net; s=dkim200908; t=1305876376; bh=7RwzjV52WxPXLjiyhXxHkapg1SJmsnFQzav2Yi6kMVg=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Transfer-Encoding:In-Reply-To; b=WsUke9hE8bC0h2OW6GBH/j66el7521hPEU9W/BB/QQ+OZ3o2MPqgVbdAJEVyxQB6i CYpDyrzzYqybLrTekI+X1Z51UBCuO7JRSaJ+Om2TxsWnVoYQaNIFi8YflcwrzXbYUD /SQZRiLR7o3yrEOHMfPNQ2MU9/J9GBB01LtxVgkM= Date: Fri, 20 May 2011 09:26:15 +0200 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: discuss@mdocml.bsd.lv Subject: Re: Full mandoc locale support committed. Message-ID: <20110520072615.GQ31223@acme.spoerlein.net> References: <4DD2FFB0.2070303@bsd.lv> <20110519202803.GP31223@acme.spoerlein.net> <4DD59E71.7030607@bsd.lv> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4DD59E71.7030607@bsd.lv> User-Agent: Mutt/1.5.21 (2010-09-15) On Fri, 20.05.2011 at 00:49:21 +0200, Kristaps Dzonsons wrote: > 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?) It certainly isn't defined anywhere, and it also doesn't seem to be implemented, as a short test using \[uc3bc] didn't produce ü but a missing-glyph symbol. :( Uli -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv