unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Milan Zamazal <pdm@zamazal.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Process output truncation when using UTF-8
Date: Fri, 13 Jun 2003 12:38:56 +0200	[thread overview]
Message-ID: <87u1aui7nj.fsf@zamazal.org> (raw)
In-Reply-To: <200306041248.VAA01372@etlken.m17n.org> (Kenichi Handa's message of "Wed, 4 Jun 2003 21:48:25 +0900 (JST)")

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

>>>>> "KH" == Kenichi Handa <handa@m17n.org> writes:

    KH> In article <87el2bi4uy.fsf@zamazal.org>, Milan Zamazal
    KH> <pdm@zamazal.org> writes:
    >> Thank you.  The case I've reported works well in Emacs 21.3, but
    >> this one still truncates the output:

    KH> [...]
    >> The difference is that the process encoding is set to utf-8-dos
    >> now instead of utf-8.

    KH> Thank you for testing it.  Please try this additional patch.

Thank you.  The file is no longer truncated, but there's an extra blank
line inserted after each line of the text.  The unchanged test case
reproduces the problem:


[-- Attachment #2: utf-8-bug.el --]
[-- Type: application/emacs-lisp, Size: 330 bytes --]

[-- Attachment #3: Type: text/plain, Size: 594 bytes --]


It seems LF-LF is inserted at the ends of lines, instead of CR-LF.

If the process encoding is set to `utf-8' instead of `utf-8-dos',
everything is fine, there are no extra blank lines.  The problem was
present already before applying the additional patch.  I think it wasn't
present in untouched Emacs 21.3, but I'm not sure.

Regards,

Milan Zamazal

-- 
The seeker after truth should be humbler than the dust.  The world crushes the
dust under its feet, but the seeker after truth should so humble himself that
even the dust could crush him.                                 -- M. K. Gandhi

[-- Attachment #4: Type: text/plain, Size: 148 bytes --]

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs

  reply	other threads:[~2003-06-13 10:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28  8:12 Process output truncation when using UTF-8 Milan Zamazal
2003-05-30  8:16 ` Kenichi Handa
2003-06-03 14:59   ` Milan Zamazal
2003-06-04 12:48     ` Kenichi Handa
2003-06-13 10:38       ` Milan Zamazal [this message]
2003-06-19  4:24         ` Kenichi Handa
2003-06-20  3:15           ` Richard Stallman
2003-06-20  4:20             ` Kenichi Handa
2003-06-21  4:56               ` Richard Stallman

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=87u1aui7nj.fsf@zamazal.org \
    --to=pdm@zamazal.org \
    --cc=bug-gnu-emacs@gnu.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).