unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: mule-ja@m17n.org
Subject: Re: problem with system_eol_type
Date: Tue, 01 Aug 2006 15:10:27 +0900	[thread overview]
Message-ID: <b4mu04xvve4.fsf@jpl.org> (raw)
In-Reply-To: jwvfyghi1od.fsf-monnier+emacs@gnu.org

>>>>> In <jwvfyghi1od.fsf-monnier+emacs@gnu.org> Stefan Monnier wrote:

>> By the way, why is not CR used in Mac when specifying the coding
>> system `foo', not `foo-eol'?

> Only Mac OS 9 used CR-eol.  Mac OS X uses LF, like any other Unix variant.

Thanks.  It backs up the validity of the recent change in the
nnheader-insert-head function.

>> Contrary to this argument concerning saving of files, I hope the
>> forms

>> (encode-coding-string "bar\n" 'foo)

>> and

>> (with-temp-buffer
>>   (insert "bar\n")
>>   (encode-coding-region (point-min) (point-max) 'foo)
>>   (buffer-string))

>> always return "bar\n" regardless of the system-type in the
>> future as well.

> Why this discrepancy?

Because (at least) Gnus will need to be fixed here and there if
Emacs is changed so as to return "bar\r\n" or "bar\r" for those
forms.  For instance, if there are Latin-1 characters in a
message body, "bar\n" will be encoded by quoted-printable into
"bar=0D\n" or "bar=0D", which is not a good result.  I think it
is reasonable that LF is the default eol for strings and
buffer's contents since they are normally used internally in
Emacs.

  reply	other threads:[~2006-08-01  6:10 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-31  6:04 problem with system_eol_type Kenichi Handa
2006-07-31  9:46 ` Reiner Steib
2006-07-31 16:30   ` Stefan Monnier
2006-07-31 17:00     ` Jason Rumney
2006-07-31 17:28       ` Eli Zaretskii
2006-07-31 17:28     ` Eli Zaretskii
2006-07-31 17:52     ` Stefan Monnier
2006-07-31 17:27 ` Eli Zaretskii
2006-07-31 22:16 ` Richard Stallman
2006-08-01  2:03   ` Katsumi Yamaoka
2006-08-01  3:19     ` Stefan Monnier
2006-08-01  6:10       ` Katsumi Yamaoka [this message]
2006-08-09 10:35     ` Katsumi Yamaoka
2006-08-09 12:27       ` Stefan Monnier
2006-08-09 22:07         ` Katsumi Yamaoka
2006-08-10  1:13       ` Richard Stallman
2006-08-10  7:35         ` Reiner Steib

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=b4mu04xvve4.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=mule-ja@m17n.org \
    /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).