From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: ^M in the info files Date: Thu, 10 Jul 2008 23:47:49 +0300 Organization: JURTA Message-ID: <87wsjtjwju.fsf@jurta.org> References: <484F1FAB.6070005@gmail.com> <487481B2.3090302@gnu.org> <87vdzdtwvm.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215723017 30989 80.91.229.12 (10 Jul 2008 20:50:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2008 20:50:17 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org, jasonr@gnu.org, Kenichi Handa To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 10 22:51:04 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KH36P-00062V-4M for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2008 22:50:57 +0200 Original-Received: from localhost ([127.0.0.1]:43619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KH35X-0000Fy-Iz for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2008 16:50:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KH35R-0000FY-Kc for emacs-devel@gnu.org; Thu, 10 Jul 2008 16:49:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KH35R-0000FK-5G for emacs-devel@gnu.org; Thu, 10 Jul 2008 16:49:57 -0400 Original-Received: from [199.232.76.173] (port=54888 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KH35R-0000FH-0M for emacs-devel@gnu.org; Thu, 10 Jul 2008 16:49:57 -0400 Original-Received: from anti-4.kiev.sovam.com ([62.64.120.202]:49190) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KH35L-0002rC-8u; Thu, 10 Jul 2008 16:49:51 -0400 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by anti-4.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1KH35I-000KVh-9B; Thu, 10 Jul 2008 23:49:48 +0300 In-Reply-To: (Stefan Monnier's message of "Thu, 10 Jul 2008 16:27:09 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 5bcd58edb95cdacf596e852bfe0375ec X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 4278 [July 10 2008] X-SpamTest-Info: {received from trusted relay: common white list} X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: white ip list X-SpamTest-Rate: 10 X-SpamTest-Status: Trusted X-SpamTest-Status-Extended: trusted X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100551 Archived-At: > I'm not talking about what Emacs does but about what the Info format > "specifies". IIUC the Info format is always ASCII unless explicitly > specified by a conding: tag. Of course, you can have an Info file > without a coding: tag that uses non-ASCII chars in some encoding, but > IIUC this has never been considered as valid (from TeXinfo's point > of view). Yes, it seems the default coding for Info files is supposed to be US-ASCII unless overridden by @documentencoding. >>>> And, for instance, faq.texi has @today{} directive, and it >>>> seems that makeinfo generates a date string according to the >>>> current locale (and thus results in non-ASCII characters). >>> >>> Isn't that a bug in makeinfo? > >> IIUC, this is an intentional feature. But we could run it with e.g. >> `LANG=C makeinfo' in Makefiles. > > What happens if your TeXinfo file specifies a latin-1 encoding and your > date is output in utf-8 because of your locale, then? Then the result of @today is displayed as garbage. But we can adjust Makefile to use the correct LANG for every Info manual that specifies a non-default @documentencoding. -- Juri Linkov http://www.jurta.org/emacs/