From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Henry Lafleur" Newsgroups: gmane.emacs.bugs Subject: bug#1502: FW: bug#1502: CR/LF Unicode Problem Date: Sat, 6 Dec 2008 11:27:13 -0600 Message-ID: <83533120812060927x7f7215ffj11a2c355a1c9482@mail.gmail.com> References: <2905B00E9FC955468D756D43D7BF17543F8494@USHOUXMB02.nabors.com> <2905B00E9FC955468D756D43D7BF175475BBA4@USHOUXMB02.nabors.com> Reply-To: Henry Lafleur , 1502@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_15713_7347904.1228584433893" X-Trace: ger.gmane.org 1228593199 21820 80.91.229.12 (6 Dec 2008 19:53:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Dec 2008 19:53:19 +0000 (UTC) To: eliz@gnu.org, 1502@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 06 20:54:23 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L93EK-00064t-Jz for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Dec 2008 20:54:21 +0100 Original-Received: from localhost ([127.0.0.1]:59694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L93D9-0002bQ-H5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Dec 2008 14:53:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L91IJ-0007tT-Io for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 12:50:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L91IG-0007t5-Uw for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 12:50:18 -0500 Original-Received: from [199.232.76.173] (port=56088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L91IG-0007su-RE for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 12:50:16 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36927) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L91IG-0003CN-2U for bug-gnu-emacs@gnu.org; Sat, 06 Dec 2008 12:50:16 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB6HoDin010067; Sat, 6 Dec 2008 09:50:14 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB6HZ3Zh005532; Sat, 6 Dec 2008 09:35:03 -0800 X-Loop: don@donarmstrong.com Resent-From: "Henry Lafleur" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 06 Dec 2008 17:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1502 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1502-submit@emacsbugs.donarmstrong.com id=B1502.12285844384179 (code B ref 1502); Sat, 06 Dec 2008 17:35:03 +0000 Original-Received: (at 1502) by emacsbugs.donarmstrong.com; 6 Dec 2008 17:27:18 +0000 Original-Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.234]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB6HREFg004173 for <1502@emacsbugs.donarmstrong.com>; Sat, 6 Dec 2008 09:27:15 -0800 Original-Received: by rv-out-0506.google.com with SMTP id k40so490639rvb.1 for <1502@emacsbugs.donarmstrong.com>; Sat, 06 Dec 2008 09:27:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=kj/0m+vqcM9CJ+2LvfiDglfAN00Phpy/Fg9I8SwrYwQ=; b=d7CJDTFTY/JSRqaL95tRFp1worWKohLWBwVlw6eWU32pmjeQRJ7ddZhZ1PEaTuPt5r 9G9eTrquas5mT0/MMGO7ZCrO8Sp8ibONQl8cTKm+AkTib6RXUeXvvBAoxZW5VRRofv7w VZvkosboV+c9IsWAmOLigM8N9xgaR5Ok9GM6g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=oEAzdMbGazGbdlPdDSXRK/16E8paHbrWihN+Vrj+ipJl3T3dFAyFiOvWmkiQ2iK/9b piKmTP+PO4iz2krhgAuLeMPMVbmR84+0wehCAJtG3ql5qewaOZtTc3rpyQMhwDaQPIym SliuLb0sC4s2FjV4wO3oA9zIjlkwmQkavjTT8= Original-Received: by 10.141.175.10 with SMTP id c10mr655424rvp.127.1228584433899; Sat, 06 Dec 2008 09:27:13 -0800 (PST) Original-Received: by 10.141.137.19 with HTTP; Sat, 6 Dec 2008 09:27:13 -0800 (PST) In-Reply-To: <2905B00E9FC955468D756D43D7BF175475BBA4@USHOUXMB02.nabors.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 06 Dec 2008 12:50:18 -0500 X-Mailman-Approved-At: Sat, 06 Dec 2008 14:52:50 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23015 Archived-At: ------=_Part_15713_7347904.1228584433893 Content-Type: multipart/alternative; boundary="----=_Part_15714_6266104.1228584433893" ------=_Part_15714_6266104.1228584433893 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Eli, This is a file that is something like what I was describing. I'll get you the error-causing file on Monday. I created this with Emacs/Linux, so I'm not sure if it is correct--but on Linux it does not seem to exhibit the problem (i.e. the CR's appended before all the LF's with Unicode files). Thanks, Henry. On Sat, Dec 6, 2008 at 11:16 AM, Lafleur, Henry wrote: > > > Henry Lafleur | ,__o > Project Lead | _-\_<, > Canrig Enterprise Solutions | (*)/'(*) > Fax: 281-774-5640 > mailto:Henry.Lafleur@canrig.com > http://www.canrig.com/ > > > > -----Original Message----- > From: Eli Zaretskii [mailto:eliz@gnu.org ] > Sent: Sat 12/6/2008 2:02 AM > To: Lafleur, Henry; 1502@emacsbugs.donarmstrong.com > Cc: bug-gnu-emacs@gnu.org > Subject: Re: bug#1502: CR/LF Unicode Problem > > > Date: Fri, 5 Dec 2008 16:33:53 -0600 > > From: "Lafleur, Henry" > > Cc: > > > > 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-135d-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. > > Can you post a shortest example of a file that exhibits this behavior? > I didn't see it in the thread you were citing; sorry if I missed > something. > > > ------------------------------ > > * 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. * > ------=_Part_15714_6266104.1228584433893 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Eli,

This is a file that is something like what I was describing. I'll get you the error-causing file on Monday. I created this with Emacs/Linux, so I'm not sure if it is correct--but on Linux it does not seem to exhibit the problem (i.e. the CR's appended before all the LF's with Unicode files).

Thanks,

Henry.

On Sat, Dec 6, 2008 at 11:16 AM, Lafleur, Henry <Henry.LaFleur@canrig.com> wrote:


Henry Lafleur               |    ,__o
Project Lead                |  _-\_<,
Canrig Enterprise Solutions | (*)/'(*)
Fax:    281-774-5640
mailto:Henry.Lafleur@canrig.com
http://www.canrig.com/



-----Original Message-----
From: Eli Zaretskii [mailto:eliz@gnu.org]
Sent: Sat 12/6/2008 2:02 AM
To: Lafleur, Henry; 1502@emacsbugs.donarmstrong.com
Cc: bug-gnu-emacs@gnu.org
Subject: Re: bug#1502: CR/LF Unicode Problem

> Date: Fri, 5 Dec 2008 16:33:53 -0600
> From: "Lafleur, Henry" <Henry.LaFleur@canrig.com>
> Cc:
>
> 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-135d-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.

Can you post a shortest example of a file that exhibits this behavior?
I didn't see it in the thread you were citing; sorry if I missed
something.



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.


------=_Part_15714_6266104.1228584433893-- ------=_Part_15713_7347904.1228584433893 Content-Type: text/x-sql; name=sample.sql Content-Transfer-Encoding: base64 X-Attachment-Id: f_foejafnj1 Content-Disposition: attachment; filename=sample.sql VGhpcyBpcyBhIHRlc3QNCmhpcyBpcyBhIHRlcw0KSU5TRVJUIElOVE8gY29udGluZW50IChFTkdM SVNILCBSVSkgVkFMVUVTICgnTk9SVEggQU1FUklDQScsJ0FNw4lSSUNBIERFTCBOT1JURScpOwpJ TlNFUlQgSU5UTyBjb250aW5lbnQgKEVOR0xJU0gsIFJVKSBWQUxVRVMgKCdTT1VUSCBBTUVSSUNB JywnQU3DiVJJQ0EgREVMIFNVUicpOwoNCmlzIGlzIGEgdGVzDQo= ------=_Part_15713_7347904.1228584433893--