From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Seiji Zenitani Newsgroups: gmane.emacs.devel Subject: Re: Line endings bug Date: Mon, 21 May 2007 22:34:30 -0400 Message-ID: References: <1A5E6FE4-A404-4B1C-BC2E-1B4A76104DDD@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1179801280 22234 80.91.229.12 (22 May 2007 02:34:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 May 2007 02:34:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 22 04:34:39 2007 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 1HqKCs-0005jD-41 for ged-emacs-devel@m.gmane.org; Tue, 22 May 2007 04:34:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqKCr-0002cY-Ms for ged-emacs-devel@m.gmane.org; Mon, 21 May 2007 22:34:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HqKCo-0002cT-Vs for emacs-devel@gnu.org; Mon, 21 May 2007 22:34:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HqKCo-0002cH-Iq for emacs-devel@gnu.org; Mon, 21 May 2007 22:34:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqKCo-0002cE-FV for emacs-devel@gnu.org; Mon, 21 May 2007 22:34:34 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.251]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HqKCo-0006T4-5v for emacs-devel@gnu.org; Mon, 21 May 2007 22:34:34 -0400 Original-Received: by an-out-0708.google.com with SMTP id c17so535221anc for ; Mon, 21 May 2007 19:34:33 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=DhYlN4Sej6u1yCJKMdwSMvhV3ETfsv9OmzqPj6dzvtRJ2DUqFFhwL5yt8qVcpcwUHo0yfPfFNU3PDCIi/i57/EOx3RB7CE4kqJFJ9pCgxYWXk3NhrqwwxXGdmZgx+LvCLVpnSk4rn5T5INitjBlYo748yAc+GYQLrFRW1B61e38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=m7hNL+vtZVLI0d/9Ln7X5xj0ZQpgL3lA4viSx274okNdL4jviarrMyWX7VxFvEC3eNDzHvW/0j8L2qoRiIQA8Z8my+hxieN3iWL4VP0Ne0QCpXhVfYRwI8DSubMg97MazTcotfIlMoG5GsYI6B7wRtjm4M9Wy8rRaeDqhlS3hpU= Original-Received: by 10.100.14.19 with SMTP id 19mr3478364ann.1179801273192; Mon, 21 May 2007 19:34:33 -0700 (PDT) Original-Received: from ?192.168.1.101? ( [76.111.94.226]) by mx.google.com with ESMTP id c9sm10771673ana.2007.05.21.19.34.32; Mon, 21 May 2007 19:34:32 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.752.3) X-detected-kernel: Linux 2.6 (newer, 2) 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:71566 Archived-At: On 2007/05/16, at 22:54, YAMAMOTO Mitsuharu wrote: >>>>>> On Wed, 16 May 2007 21:01:25 -0400, Seiji Zenitani >>>>>> said: > >> I received the following fix to the mac port. Although I have not >> yet met troubles regarding CR/LF, I think it makes sense to modify >> utf-16be/16le-mac to utf-16be/16le in the last two lines in >> mac-string-to-utxt, term/mac-win.el. > > I'm not quite sure what bug is fixed by that change. What was OP's > concrete problem? > I'm sorry but I lost contact with him. >> The default eol character seems to be 'unix and I hear OS X's >> internal code is utf-16 + LF (unix). Could you please examine it? > > At least, Safari and Apple Mail use CR when they put multi-line > data to the clipboard. How to confirm this? When I copy text from the Safari/Mail.app and then type the following command, the text file "sample.txt" has LF, not CR. $ pbpaste > sample.txt $ hexdump sample.txt 0000000 0a41 0a42 0a43 0000006 In this case, the text is as follows: A B C I use OSX 10.4.9 on Intel Mac Book Pro. Seiji