From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: David Abrahams <dave@boost-consulting.com>
Subject: Re: Double Newlines
Date: Wed, 26 Jul 2006 20:59:05 +0900 [thread overview]
Message-ID: <b4m3bcotw52.fsf@jpl.org> (raw)
In-Reply-To: <ubqrdjcgj.fsf@boost-consulting.com>
[-- Attachment #1: Type: text/plain, Size: 1645 bytes --]
Hi,
I don't know whether it is related to David Abrahams' problem,
but I heard that the most recent Emacs 22 built on Windows
behaves unlike the old ones.
When saving a file in the case where `coding-system-for-write'
is bound to the coding system `raw-text' for example, CRLF is
used as the line break code. It is said that it happens as well
when communicating with an external process.
Because the default value of `nnmail-file-coding-system' and
`nnmail-active-file-coding-system' is `raw-text', the nnml back
end saves mail files, NOV files and the ACTIVE file as if the
coding-system is set to `raw-text-dos'. Hideyuki SHIRAI said
that LF was used for the line break code formerly. It might be
generally a good idea to use CRLF when saving files on Windows,
though.
You might not seem that it causes a problem since Gnus reads
those files using `raw-text' and CRLF is converted into LF again.
However, OHASHI Akira reported that a problem occurs actually.
He tried setting `gnus-nov-is-evil' to t and saw all summary
lines in a nnml group appeared as:
[ ?: nobody ] (none)
I guess it always happens in nnmh groups. Could anyone who uses
the most recent Emacs 22 built on Windows verify it?
The cause is that the `nnheader-insert-head' function doesn't
work properly. In that function, it is expected that
`(insert-file-contents FILE nil BEG END)' returns `(FILE CHARS)',
where CHARS is the number in which BEG is subtracted from END.
However, it fails because of the CRLF-to-LF conversion.
I don't use Emacs on Windows, so I hope someone follows it up.
Here's a solution, though I haven't tested it yet.
[-- Attachment #2: Type: application/emacs-lisp, Size: 992 bytes --]
[-- Attachment #3: Type: text/plain, Size: 10 bytes --]
Regards,
next prev parent reply other threads:[~2006-07-26 11:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-25 7:15 David Abrahams
2006-07-25 11:42 ` Katsumi Yamaoka
2006-07-25 14:29 ` David Abrahams
2006-07-26 0:42 ` Katsumi Yamaoka
2006-07-26 3:02 ` David Abrahams
2006-07-26 11:59 ` Katsumi Yamaoka [this message]
2006-07-27 9:28 ` Katsumi Yamaoka
2006-07-28 9:41 ` Katsumi Yamaoka
2006-07-26 21:59 ` David Abrahams
2006-07-26 23:48 ` Katsumi Yamaoka
2006-07-27 18:02 ` Reiner Steib
2006-07-28 3:28 ` Katsumi Yamaoka
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4m3bcotw52.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=dave@boost-consulting.com \
/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.
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 NNTP newsgroup(s).