From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: utf-16le vs utf-16-le Date: Mon, 14 Apr 2008 20:45:32 +0300 Message-ID: References: <20080414070214.GA3956@www.trapp.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1208195936 29896 80.91.229.12 (14 Apr 2008 17:58:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Apr 2008 17:58:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: tomas@tuxteam.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 14 19:59:30 2008 connect(): Connection refused 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 1JlSlD-0008JG-Je for ged-emacs-devel@m.gmane.org; Mon, 14 Apr 2008 19:46:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JlSkZ-0003fk-7Q for ged-emacs-devel@m.gmane.org; Mon, 14 Apr 2008 13:45:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JlSkV-0003eb-An for emacs-devel@gnu.org; Mon, 14 Apr 2008 13:45:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JlSkU-0003dX-Dp for emacs-devel@gnu.org; Mon, 14 Apr 2008 13:45:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JlSkU-0003dT-81 for emacs-devel@gnu.org; Mon, 14 Apr 2008 13:45:46 -0400 Original-Received: from mtaout7.012.net.il ([84.95.2.19]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JlSkT-0003sg-VS for emacs-devel@gnu.org; Mon, 14 Apr 2008 13:45:46 -0400 Original-Received: from HOME-C4E4A596F7 ([83.130.246.94]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0JZB00HORSJLTCO0@i-mtaout7.012.net.il> for emacs-devel@gnu.org; Mon, 14 Apr 2008 20:28:33 +0300 (IDT) In-reply-to: <20080414070214.GA3956@www.trapp.net> X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 10 (1203?) 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:95190 Archived-At: > Date: Mon, 14 Apr 2008 07:02:14 +0000 > Cc: emacs-devel@gnu.org > From: tomas@tuxteam.de > > > I tripped over these when I tried to read debugging logs saved by > > MS-Windows, which are in UTF-16 without a BOM: [...] > > This is courtesy of the same folks who like to put BOMs in UTF-8. I'm > speechless (again). Actually, I don't necessarily see anything wrong with the lack of BOM in this case: these are Windows-internal log files, meant to be read by utilities who know the encoding, not by general-purpose text editors. UTF-16 is the native encoding used by Windows low-level APIs and the kernel for non-ASCII text, so seeing that in a temporary file shouldn't be a surprise. And of course, Windows doesn't need a BOM because it uses only one endianness. A BOM in UTF-8 is another matter, of course...