From owner-freebsd-chat@FreeBSD.ORG Sun Feb 1 07:06:37 2009 Return-Path: Delivered-To: chat@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD3B8106571E for ; Sun, 1 Feb 2009 07:06:37 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 1D5428FC19 for ; Sun, 1 Feb 2009 07:06:36 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl191-27.kln.forthnet.gr [79.103.4.27]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id n116m0gY009775 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 1 Feb 2009 08:48:19 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n116m0Qu019849; Sun, 1 Feb 2009 08:48:00 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n116lvLS019848; Sun, 1 Feb 2009 08:47:57 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: "Jason C. Wells" References: <4984C5E5.1070505@highperformance.net> Date: Sun, 01 Feb 2009 08:47:56 +0200 In-Reply-To: <4984C5E5.1070505@highperformance.net> (Jason C. Wells's message of "Sat, 31 Jan 2009 13:43:01 -0800") Message-ID: <873aeyd55v.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: n116m0gY009775 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.017, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.38, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: chat@freebsd.org Subject: Re: UTF as Filename Extension X-BeenThere: freebsd-chat@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Non technical items related to the community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2009 07:06:37 -0000 On Sat, 31 Jan 2009 13:43:01 -0800, "Jason C. Wells" wrote: > Here is a simple discussion that is probably more complex than I'd like > it to be. Is there any way to enforce a UTF-8 encoding of a file, > perhaps by filename extension? Could such an encoding solve cross > platform line break incompatibility? I find that Emacs makes a very good job of 'hiding' these annoying details from me. In both X11 and `no window' sessions of the editor, the coding-system auto-detection of new buffers works 99% of the time and I can specify it manually when it doesn't. Using the filename for automated guesses of what the content may be is probably not going to work so well. Windows has tried doing it, and see all the ATTACHMENT.JPG.EXE trojans they got as a result :)