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 p4JKSR6u006074 for ; Thu, 19 May 2011 16:28:29 -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 p4JKS480041278 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 May 2011 22:28:04 +0200 (CEST) (envelope-from uqs@spoerlein.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spoerlein.net; s=dkim200908; t=1305836886; bh=It9pxFgnAFzprbZJvwSUr5rDZytAGQ5JzI2PpDDVpIw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=FxuC6Ps3OoTwqQFw2k/qDhzfXZAWYqTVeO3RyHq0GNF0cg8r73mwdiroEtUkWflz1 ronygtavwhB3sWpDd85orfDRWG7zTxSIgKsWVZh+5Cqk99ylUVEABRgWzdsZInhbCI LIiqaTLCHsxW7GnZvq/8S7AG8UCHIfnZL+QgW+No= Date: Thu, 19 May 2011 22:28:03 +0200 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: discuss@mdocml.bsd.lv Cc: Stefan Sperling , Hiroki Sato Subject: Re: Full mandoc locale support committed. Message-ID: <20110519202803.GP31223@acme.spoerlein.net> References: <4DD2FFB0.2070303@bsd.lv> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DD2FFB0.2070303@bsd.lv> User-Agent: Mutt/1.5.21 (2010-09-15) 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. Uli -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv