From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lafleur, Henry" Newsgroups: gmane.emacs.bugs Subject: bug#1502: CR/LF Unicode Problem Date: Fri, 5 Dec 2008 16:33:53 -0600 Message-ID: <2905B00E9FC955468D756D43D7BF17543F8494@USHOUXMB02.nabors.com> Reply-To: "Lafleur, Henry" , 1502@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C95729.8D3582A4" X-Trace: ger.gmane.org 1228523468 21891 80.91.229.12 (6 Dec 2008 00:31:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Dec 2008 00:31:08 +0000 (UTC) To: Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 06 01:32:11 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 1L8l5c-0002DW-F0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Dec 2008 01:32:11 +0100 Original-Received: from localhost ([127.0.0.1]:39290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8l4R-0004yY-7s for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Dec 2008 19:30:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8jV5-0000cH-MX for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 17:50:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8jV4-0000bv-QS for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 17:50:19 -0500 Original-Received: from [199.232.76.173] (port=60586 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8jV4-0000bo-Kv for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 17:50:18 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54638) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L8jV3-0003PJ-Lj for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 17:50:18 -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 mB5MoDZD012533; Fri, 5 Dec 2008 14:50:13 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mB5Me4a5009502; Fri, 5 Dec 2008 14:40:04 -0800 X-Loop: don@donarmstrong.com Resent-From: "Lafleur, Henry" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 05 Dec 2008 22:40:04 +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 submit@emacsbugs.donarmstrong.com id=B.12285164648150 (code B ref -1); Fri, 05 Dec 2008 22:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Dec 2008 22:34:24 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB5MYJnc008142 for ; Fri, 5 Dec 2008 14:34:20 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8jFa-0005xL-TU for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 17:34:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8jFY-0005w2-1B for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 17:34:18 -0500 Original-Received: from [199.232.76.173] (port=36457 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8jFX-0005vn-PK for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 17:34:15 -0500 Original-Received: from smtp.nabors.com ([198.203.146.90]:4156 helo=nabors.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L8jFW-0001Ta-GJ for bug-gnu-emacs@gnu.org; Fri, 05 Dec 2008 17:34:15 -0500 Original-Received: from ([10.50.10.131]) by ushouxim02.nabors.com with ESMTP id 4440520.22166037; Fri, 05 Dec 2008 16:33:53 -0600 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: CR/LF Unicode Problem Thread-Index: AclXKY4ZlwM8lTL+Rjy+3nBxutbs8Q== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 05 Dec 2008 17:50:19 -0500 X-Mailman-Approved-At: Fri, 05 Dec 2008 19:30: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:22992 Archived-At: This is a multi-part message in MIME format. ------_=_NextPart_001_01C95729.8D3582A4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi,=0D=0A=0D=0AYou guys do a great job=2E Thanks for all the hard work=2E= =0D=0A=0D=0AI was blaming the =2ENET framework on this, but it appears to b= e an issue=0D=0Awith Emacs=2E=0D=0A=0D=0AWhen I load a Unicode file (UTF-8)= where some lines in CR/LF and some=0D=0Alines end in LF, in hexl-mode the = CR/LF EOL's appear as CR/CR/LF and the=0D=0ALF EOL's appear as CR/LF=2E See= this thread for more information: =0D=0A=0D=0Ahttp://social=2Emsdn=2Emicro= soft=2Ecom/Forums/en-US/netfxbcl/thread/8ef5b69d-1=0D=0A35d-4584-ae1a-1caeb= 4afc846/#page:1=0D=0A=0D=0AIf I save the file in hexl mode, it will save it= with the extra CRs,=0D=0Athus modifying the file more than anticipated=2E= =0D=0A=0D=0AThanks,=0D=0A=0D=0AHenry Lafleur | ,__o =0D= =0AProject Lead | _-\_<, =0D=0ACanrig Enterprise Solution= s | (*)/'(*) =0D=0Aa division of Canrig Drilling Technology Ltd=2E=0D=0AF= ax: 281-774-5640=0D=0ASupport: 1-866-433-4345=0D=0Amailto:Henry=2ELaf= leur@canrig=2Ecom =0D=0Ahttp://www=2Emywells=2Ecom/ =0D=0A=0D=0AIn GNU Emac= s 22=2E1=2E1 (i386-mingw-nt5=2E1=2E2600)=0D=0A of 2007-06-02 on RELEASE=0D= =0AWindowing system distributor `Microsoft Corp=2E', version 5=2E1=2E2600= =0D=0Aconfigured using `configure --with-gcc (3=2E4) --cflags=0D=0A-Ic:/gnu= win32/include'=0D=0A=0D=0AImportant settings:=0D=0A value of $LC_ALL: nil= =0D=0A value of $LC_COLLATE: nil=0D=0A value of $LC_CTYPE: nil=0D=0A val= ue of $LC_MESSAGES: nil=0D=0A value of $LC_MONETARY: nil=0D=0A value of $= LC_NUMERIC: nil=0D=0A value of $LC_TIME: nil=0D=0A value of $LANG: ENU=0D= =0A locale-coding-system: cp1252=0D=0A default-enable-multibyte-character= s: t=0D=0A=0D=0AMajor mode: Hexl=0D=0A=0D=0AMinor modes in effect:=0D=0A r= uler-mode: t=0D=0A hl-line-mode: t=0D=0A encoded-kbd-mode: t=0D=0A toolt= ip-mode: t=0D=0A tool-bar-mode: t=0D=0A mouse-wheel-mode: t=0D=0A menu-b= ar-mode: t=0D=0A file-name-shadow-mode: t=0D=0A global-font-lock-mode: t= =0D=0A font-lock-mode: t=0D=0A blink-cursor-mode: t=0D=0A unify-8859-on-= encoding-mode: t=0D=0A utf-translate-cjk-mode: t=0D=0A auto-compression-m= ode: t=0D=0A line-number-mode: t=0D=0A transient-mark-mode: identity=0D= =0A=0D=0ARecent input:=0D=0AS e e SPC t h i s SPC t h r e a d SPC f o r SPC= m o =0D=0Ar e SPC i n f o r m a t i o n : SPC C-v M-v =0D=0A = C-y =0D=0A =0D=0A = =0D=0A =0D=0A Y o u SPC =0D=0Ag u y s SPC d o SPC a SPC g r e a t SPC j o b SPC = w =0D=0A =0D=0A<= backspace> =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A = =0D=0A =0D=0A<= help-echo> =0D=0A= =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D= =0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A =0D=0A <= mouse-1> =0D=0A = =0D=0A =0D=0A =0D=0A =0D=0A <= mouse-1> =0D=0A = =0D=0A = =0D=0A =0D=0A M-x h e x l - m o d = =0D=0A =0D=0A =0D=0A = =0D=0A =0D=0A=0D=0ARecent messages:=0D=0ALoading emacsbug=2E= =2E=2Edone=0D=0ALoading help-mode=2E=2E=2Edone=0D=0AAuto-saving=2E=2E=2Edon= e=0D=0AMark set=0D=0AAuto-saving=2E=2E=2Edone=0D=0ALoading sql=2E=2E=2E=0D= =0ALoading easymenu=2E=2E=2Edone=0D=0ALoading sql=2E=2E=2Edone=0D=0ALoading= hexl=2E=2E=2Edone=0D=0ALoading mule-util=2E=2E=2Edone=0D=0A=0D=0A=0D=0A=0D= =0A=0D=0A-----------------------------------------=0D=0ACANRIG EMAIL NOTICE= - This transmission may be strictly=0Aconfidential=2E If you are not the i= ntended recipient of this=0Amessage, you may not disclose, print, copy, or = disseminate this=0Ainformation=2E If you have received this in error, pleas= e reply and=0Anotify the sender (only) and delete the message=2E Unauthoriz= ed=0Ainterception of this e-mail is a violation of federal criminal law=2E= =0AThis communication does not reflect an intention by the sender or=0Athe = sender's principal to conduct a transaction or make any=0Aagreement by elec= tronic means=2E Nothing contained in this message or=0Ain any attachment sh= all satisfy the requirements for a writing, and=0Anothing contained herein = shall constitute a contract or electronic=0Asignature under the Electronic = Signatures in Global and National=0ACommerce Act, any version of the Unifor= m Electronic Transactions=0AAct, or any other statute governing electronic = transactions=2E ------_=_NextPart_001_01C95729.8D3582A4 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =0D=0A=0D=0A= =0D=0A=0D=0A=0D=0ACR/LF Unicode Problem=0D=0A= =0D=0A=0D=0A=0D=0A=0D=0A

Hi,=0D=0A

=0D=0A=0D=0A

You guys do a great job=2E Thanks for all the hard work=2E= =0D=0A

=0D=0A=0D=0A

I was blaming= the =2ENET framework on this, but it appears to be an issue with Emacs=2E<= /FONT>=0D=0A

=0D=0A=0D=0A

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=2E See this thread for more information:

=0D=0A=0D=0A

http://social=2Emsdn=2Emicrosoft=2Ecom/Forums/en-US/n= etfxbcl/thread/8ef5b69d-135d-4584-ae1a-1caeb4afc846/#page:1= =0D=0A

=0D=0A=0D=0A

If I save the file i= n hexl mode, it will save it with the extra CRs, thus modifying the file mo= re than anticipated=2E=0D=0A

=0D=0A=0D=0A

Thanks,=0D=0A

=0D=0A=0D=0A

Henry Lafleur        &nb= sp;      |      ,__o =0D=0A=0D=0A
Project Lead &n= bsp;            = ;  |    _-\_<, =0D=0A=0D=0A
Canrig Enterprise Solutions |   (*)/'(*) =0D=0A=0D=0A
a division of Canr= ig Drilling Technology Ltd=2E=0D=0A=0D=0A
Fax:       281-774-5640= =0D=0A=0D=0A
Support: 1-866-433-4345= =0D=0A=0D=0A
<= FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Courier New">mailto:Henry=2ELafleur= @canrig=2Ecom
=0D= =0A=0D=0A
http://www=2Emywells=2Ecom/ =0D=0A

=0D=0A=0D=0A

In GNU Emacs 22=2E1=2E1 (i386-mingw-nt5=2E1=2E260= 0)=0D=0A=0D=0A
 of 2007-06-02 = on RELEASE=0D=0A=0D=0A
Windowing sy= stem distributor `Microsoft Corp=2E', version 5=2E1=2E2600=0D=0A=0D= =0A
configured using `configure --with-gcc= (3=2E4) --cflags -Ic:/gnuwin32/include'=0D=0A

=0D=0A=0D=0A

Important settings:=0D=0A=0D=0A
  value of $LC_ALL: nil=0D=0A=0D=0A
=   value of $LC_COLLATE: nil=0D=0A= =0D=0A
  value of $LC_CTYPE: nil=0D=0A=0D=0A
  value of $LC_MESSAGE= S: nil=0D=0A=0D=0A
  value of = $LC_MONETARY: nil=0D=0A=0D=0A
 = ; value of $LC_NUMERIC: nil=0D=0A=0D=0A
  value of $LC_TIME: nil=0D=0A=0D=0A
  value of $LANG: ENU=0D=0A=0D=0A
  locale-coding-system: cp1252=0D=0A=0D=0A
<= FONT SIZE=3D2 FACE=3D"Arial">  default-enable-multibyte-characters: t<= /FONT>=0D=0A

=0D=0A=0D=0A

Major mode: He= xl=0D=0A

=0D=0A=0D=0A

Minor modes= in effect:=0D=0A=0D=0A
  rule= r-mode: t=0D=0A=0D=0A
  hl-lin= e-mode: t=0D=0A=0D=0A
  encode= d-kbd-mode: t=0D=0A=0D=0A
  to= oltip-mode: t=0D=0A=0D=0A
  to= ol-bar-mode: t=0D=0A=0D=0A
  m= ouse-wheel-mode: t=0D=0A=0D=0A
&nbs= p; menu-bar-mode: t=0D=0A=0D=0A
&nb= sp; file-name-shadow-mode: t=0D=0A=0D=0A
  global-font-lock-mode: t=0D=0A=0D=0A
  font-lock-mode: t=0D=0A=0D=0A
  blink-cursor-mode: t=0D=0A=0D=0A
  unify-8859-on-encoding-mode: t=0D=0A=0D= =0A
  utf-translate-cjk-mode: t=0D=0A=0D=0A
  auto-compression-mode= : t=0D=0A=0D=0A
  line-number-= mode: t=0D=0A=0D=0A
  transien= t-mark-mode: identity=0D=0A

=0D=0A=0D=0A

Recent input:=0D=0A=0D=0A
S= e e SPC t h i s SPC t h r e a d SPC f o r SPC m o =0D=0A=0D=0A
<= FONT SIZE=3D2 FACE=3D"Arial">r e SPC i n f o r m a t i o n : SPC <return= > C-v M-v
=0D=0A=0D=0A
<up>= ; <up> <up> <down> <return> C-y <help-echo> &= lt;down-mouse-1> =0D=0A=0D=0A
&l= t;mouse-movement> <mouse-movement> <drag-mouse-1> <down-m= ouse-1> =0D=0A=0D=0A
<mouse-m= ovement> <mouse-movement> <drag-mouse-1> <down-mouse-1>= ; =0D=0A=0D=0A
<mouse-1> <= down-mouse-1> <mouse-1> <wheel-down> <return> = =0D=0A=0D=0A
<return> <up> <= ;up> <up> <up> <down> <down> Y o u SPC = =0D=0A=0D=0A
g u y s SPC d o SPC a SPC g r= e a t SPC j o b SPC w =0D=0A=0D=0A
<backspace> <backspace> <backspace> <backspace> &l= t;backspace> =0D=0A=0D=0A
<ba= ckspace> <backspace> <backspace> <backspace> <backs= pace> =0D=0A=0D=0A
<backspace= > <backspace> <backspace> <backspace> <backspace>= ; =0D=0A=0D=0A
<backspace> &l= t;backspace> <backspace> <backspace> <backspace> =0D=0A=0D=0A
<backspace> <backs= pace> <backspace> <backspace> <backspace> =0D= =0A=0D=0A
<delete> <delete> &l= t;down-mouse-3> <mouse-3> <wheel-down> =0D=0A=0D=0A<double-wheel-down> <down> <= down> <down> <up> <up> =0D=0A=0D=0A
<up> <down> <down-mouse-1> <mous= e-movement> <mouse-movement> =0D=0A=0D=0A
<help-echo> <mouse-movement> <mouse-movement= > <drag-mouse-1> =0D=0A=0D=0A
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mou= se-1> <mouse-1> =0D=0A=0D=0A
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mous= e-1> <mouse-1> =0D=0A=0D=0A
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse= -1> <mouse-1> =0D=0A=0D=0A
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-= 1> <mouse-1> =0D=0A=0D=0A
= <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1= > <mouse-1> =0D=0A=0D=0A
&= lt;mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1&= gt; <mouse-1> =0D=0A=0D=0A
&l= t;mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1&g= t; <mouse-1> =0D=0A=0D=0A
<= ;mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>= ; <mouse-1> =0D=0A=0D=0A
<= mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>= <mouse-1> =0D=0A=0D=0A
<m= ouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> = <mouse-1> =0D=0A=0D=0A
<mo= use-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> &= lt;mouse-1> =0D=0A=0D=0A
<mou= se-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> &l= t;mouse-1> =0D=0A=0D=0A
<mous= e-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <= ;mouse-1> =0D=0A=0D=0A
<mouse= -1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <= mouse-1> =0D=0A=0D=0A
<mouse-= 1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <m= ouse-1> =0D=0A=0D=0A
<mouse-1= > <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mo= use-1> =0D=0A=0D=0A
<mouse-1&= gt; <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mou= se-1> =0D=0A=0D=0A
<mouse-1&g= t; <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mous= e-1> =0D=0A=0D=0A
<mouse-1>= ; <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse= -1> =0D=0A=0D=0A
<mouse-1>= <mouse-1> <mouse-1> <mouse-1> <mouse-1> <down-m= ouse-1> =0D=0A=0D=0A
<mouse-1= > <help-echo> <help-echo> <help-echo> <help-echo>= ; =0D=0A=0D=0A
<help-echo> &l= t;help-echo> <menu-bar> <file> <open-file> =0D= =0A=0D=0A
<help-echo> <help-echo&= gt; M-x h e x l - m o d <tab> <return> =0D=0A=0D=0A
<= FONT SIZE=3D2 FACE=3D"Arial"><help-echo> <help-echo> <help-e= cho> <help-echo> <help-echo>
=0D=0A=0D=0A
<help-echo> <help-echo> <help-echo>= <help-echo> <help-echo> =0D=0A=0D=0A
<help-echo> <help-echo> <help-echo> <he= lp-echo> <help-echo> =0D=0A=0D=0A
<menu-bar> <help-menu> <report-emacs-bug>= =0D=0A

=0D=0A=0D=0A

Recent messages:=0D=0A=0D=0A
Loading emacsbug=2E=2E=2Ed= one=0D=0A=0D=0A
Loading help-mode= =2E=2E=2Edone=0D=0A=0D=0A
Auto-savi= ng=2E=2E=2Edone=0D=0A=0D=0A
Mark se= t=0D=0A=0D=0A
Auto-saving=2E=2E=2Ed= one=0D=0A=0D=0A
Loading sql=2E=2E= =2E=0D=0A=0D=0A
Loading easymenu=2E= =2E=2Edone=0D=0A=0D=0A
Loading sql= =2E=2E=2Edone=0D=0A=0D=0A
Loading h= exl=2E=2E=2Edone=0D=0A=0D=0A
Loadin= g mule-util=2E=2E=2Edone=0D=0A

=0D=0A=0D=0A=0D=0A= =0D=0A


=0D=0A

=0D=0ACANRIG EMAIL N= OTICE - This transmission may be strictly confidential=2E If you are not th= e intended recipient of this message, you may not disclose, print, copy, or= disseminate this information=2E If you have received this in error, please= reply and notify the sender (only) and delete the message=2E Unauthorized = interception of this e-mail is a violation of federal criminal law=2E This = communication does not reflect an intention by the sender or the sender's p= rincipal to conduct a transaction or make any agreement by electronic means= =2E Nothing contained in this message or in any attachment shall satisfy th= e requirements for a writing, and nothing contained herein shall constitute= a contract or electronic signature under the Electronic Signatures in Glob= al and National Commerce Act, any version of the Uniform Electronic Transac= tions Act, or any other statute governing electronic transactions=2E=0D=0A<= /STRONG>

------_=_NextPart_001_01C95729.8D3582A4--