unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Seiji Zenitani <zenitani@gmail.com>
To: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Cc: emacs-devel@gnu.org
Subject: Re: Line endings bug
Date: Mon, 21 May 2007 22:34:30 -0400	[thread overview]
Message-ID: <BB20CD9F-63A6-4840-8261-1C22E1F7F54E@gmail.com> (raw)
In-Reply-To: <wlodkkdurh.wl%mituharu@math.s.chiba-u.ac.jp>

On 2007/05/16, at 22:54, YAMAMOTO Mitsuharu wrote:

>>>>>> On Wed, 16 May 2007 21:01:25 -0400, Seiji Zenitani  
>>>>>> <zenitani@gmail.com> 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

  reply	other threads:[~2007-05-22  2:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BAY102-F1D85DF07A8ED66C825F69AC3C0@phx.gbl>
2007-05-17  1:01 ` Fwd: Line endings bug Seiji Zenitani
2007-05-17  2:54   ` YAMAMOTO Mitsuharu
2007-05-22  2:34     ` Seiji Zenitani [this message]
2007-05-22  3:29       ` YAMAMOTO Mitsuharu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BB20CD9F-63A6-4840-8261-1C22E1F7F54E@gmail.com \
    --to=zenitani@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=mituharu@math.s.chiba-u.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).