all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lafleur, Henry" <Henry.LaFleur@canrig.com>
To: <bug-gnu-emacs@gnu.org>
Subject: bug#1502: CR/LF Unicode Problem
Date: Fri, 5 Dec 2008 16:33:53 -0600	[thread overview]
Message-ID: <2905B00E9FC955468D756D43D7BF17543F8494@USHOUXMB02.nabors.com> (raw)

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

Hi,

You guys do a great job. Thanks for all the hard work.

I was blaming the .NET framework on this, but it appears to be an issue
with Emacs.

When I load a Unicode file (UTF-8) where some lines in CR/LF and some
lines end in LF, in hexl-mode the CR/LF EOL's appear as CR/CR/LF and the
LF EOL's appear as CR/LF. See this thread for more information: 

http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/8ef5b69d-1
35d-4584-ae1a-1caeb4afc846/#page:1

If I save the file in hexl mode, it will save it with the extra CRs,
thus modifying the file more than anticipated.

Thanks,

Henry Lafleur               |      ,__o 
Project Lead                |    _-\_<, 
Canrig Enterprise Solutions |   (*)/'(*) 
a division of Canrig Drilling Technology Ltd.
Fax:       281-774-5640
Support: 1-866-433-4345
mailto:Henry.Lafleur@canrig.com 
http://www.mywells.com/ 

In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)
 of 2007-06-02 on RELEASE
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags
-Ic:/gnuwin32/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Hexl

Minor modes in effect:
  ruler-mode: t
  hl-line-mode: t
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: identity

Recent input:
S e e SPC t h i s SPC t h r e a d SPC f o r SPC m o 
r e SPC i n f o r m a t i o n : SPC <return> C-v M-v 
<up> <up> <up> <down> <return> C-y <help-echo> <down-mouse-1> 
<mouse-movement> <mouse-movement> <drag-mouse-1> <down-mouse-1> 
<mouse-movement> <mouse-movement> <drag-mouse-1> <down-mouse-1> 
<mouse-1> <down-mouse-1> <mouse-1> <wheel-down> <return> 
<return> <up> <up> <up> <up> <down> <down> Y o u SPC 
g u y s SPC d o SPC a SPC g r e a t SPC j o b SPC w 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<delete> <delete> <down-mouse-3> <mouse-3> <wheel-down> 
<double-wheel-down> <down> <down> <down> <up> <up> 
<up> <down> <down-mouse-1> <mouse-movement> <mouse-movement> 
<help-echo> <mouse-movement> <mouse-movement> <drag-mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> 
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <down-mouse-1> 
<mouse-1> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <file> <open-file> 
<help-echo> <help-echo> M-x h e x l - m o d <tab> <return> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
Loading emacsbug...done
Loading help-mode...done
Auto-saving...done
Mark set
Auto-saving...done
Loading sql...
Loading easymenu...done
Loading sql...done
Loading hexl...done
Loading mule-util...done




-----------------------------------------
CANRIG EMAIL NOTICE - This transmission may be strictly
confidential. If you are not the intended recipient of this
message, you may not disclose, print, copy, or disseminate this
information. If you have received this in error, please reply and
notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.
This communication does not reflect an intention by the sender or
the sender's principal to conduct a transaction or make any
agreement by electronic means. Nothing contained in this message or
in any attachment shall satisfy the requirements for a writing, and
nothing contained herein shall constitute a contract or electronic
signature under the Electronic Signatures in Global and National
Commerce Act, any version of the Uniform Electronic Transactions
Act, or any other statute governing electronic transactions.

[-- Attachment #2: Type: text/html, Size: 12518 bytes --]

             reply	other threads:[~2008-12-05 22:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-05 22:33 Lafleur, Henry [this message]
2008-12-06  8:02 ` bug#1502: CR/LF Unicode Problem Eli Zaretskii
     [not found]   ` <2905B00E9FC955468D756D43D7BF175475BBA4@USHOUXMB02.nabors.com>
2008-12-06 17:27     ` bug#1502: FW: " Henry Lafleur
2008-12-07 15:58 ` Jason Rumney
2008-12-08 21:26   ` Lafleur, Henry
     [not found]     ` <handler.1502.B1502.122877160131909.ackinfo@emacsbugs.donarmstrong.com>
2008-12-08 22:11       ` bug#1502: Info received (bug#1502: CR/LF Unicode Problem) Lafleur, Henry

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=2905B00E9FC955468D756D43D7BF17543F8494@USHOUXMB02.nabors.com \
    --to=henry.lafleur@canrig.com \
    --cc=1502@emacsbugs.donarmstrong.com \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.