<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY LINK="#0000ff">
On Wed, 2010-01-27 at 15:55 +0800, Jong Lin wrote:
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="1"><FONT COLOR="#000080">Could you please try on the attachment?</FONT></FONT><BR>
<BR>
<FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
</BLOCKQUOTE>
It applies without error. On Linux it shows a ^M character at the end of each line, which was there before. The XGI team may want to investigate further more and adopt common development practises. Some files are in one format and other files are in another.<BR>
<BLOCKQUOTE TYPE=CITE>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<DIV ALIGN=center>
<HR>
</DIV>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<B><FONT SIZE="2">From:</FONT></B><FONT SIZE="2">Jong Lin </FONT><BR>
<B><FONT SIZE="2">Sent:</FONT></B><FONT SIZE="2"> Wednesday, January 27, 2010 11:26 AM</FONT><BR>
<B><FONT SIZE="2">To:</FONT></B><FONT SIZE="2"> 'memsize@videotron.ca'</FONT><BR>
<B><FONT SIZE="2">Cc:</FONT></B><FONT SIZE="2"> xorg-devel@lists.x.org</FONT><BR>
<B><FONT SIZE="2">Subject:</FONT></B><FONT SIZE="2"> RE: [PATCH video-xgi] Add Support-ARM, EXA acceleration, EDID,Custom Modes, Bugs fixed, ...</FONT><BR>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
<FONT SIZE="1"><FONT COLOR="#000080">Hi Gaetan,</FONT></FONT><BR>
<BR>
<FONT SIZE="1"><FONT COLOR="#000080">It might be caused by our editing source code on Windows platform.</FONT></FONT><BR>
<BR>
<FONT SIZE="1"><FONT COLOR="#000080">It might be fixed by convert files by dos2unix.</FONT></FONT><BR>
<BR>
<FONT SIZE="1"><FONT COLOR="#000080">How about your comment?</FONT></FONT><BR>
<BR>
<FONT SIZE="1"><FONT COLOR="#000080"> </FONT></FONT><BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<DIV ALIGN=center>
<HR>
</DIV>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<B><FONT SIZE="2">From:</FONT></B><FONT SIZE="2">xorg-devel-bounces@lists.x.org [mailto:xorg-devel-bounces@lists.x.org] </FONT><B><FONT SIZE="2">On Behalf Of </FONT></B><FONT SIZE="2">Gaetan Nadon</FONT><BR>
<B><FONT SIZE="2">Sent:</FONT></B><FONT SIZE="2"> Monday, January 25, 2010 9:43 PM</FONT><BR>
<B><FONT SIZE="2">To:</FONT></B><FONT SIZE="2"> Jong Lin</FONT><BR>
<B><FONT SIZE="2">Cc:</FONT></B><FONT SIZE="2"> xorg-devel@lists.x.org</FONT><BR>
<B><FONT SIZE="2">Subject:</FONT></B><FONT SIZE="2"> Re: [PATCH video-xgi] Add Support-ARM, EXA acceleration, EDID,Custom Modes, Bugs fixed, ...</FONT><BR>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
On Mon, 2010-01-25 at 16:29 +0800, Jong Lin wrote: <BR>
<BR>
<FONT COLOR="#000080">This patch includes the following enhancements and some bug fixings.</FONT><BR>
<BR>
<FONT COLOR="#000080">(1). Support ARM</FONT><BR>
<BR>
<FONT COLOR="#000080">(2). Support EXA acceleration</FONT><BR>
<BR>
<FONT COLOR="#000080">(3). Support EDID with I2C function</FONT><BR>
<BR>
<FONT COLOR="#000080">(4). Support Custom Modes of modeline</FONT><BR>
<BR>
<FONT COLOR="#000080">(5). Unify code for x86, PowerPC, ARM</FONT><BR>
<BR>
<BR>
I used 'git apply --check' to verify the patch would apply but it doesn't I get errors like:<BR>
<BR>
error: patch failed: src/init.c:1 <BR>
<BR>
<PRE>
error: src/init.c: patch does not apply
</PRE>
<BR>
The patch shows that the whole content of the init.c file has changed, but I can't see any real code difference. Then I remembered about code page issues when translators worked from different platforms (Unix, Windows...). I checked the file with the 'file' command:<BR>
<BR>
<PRE>
init.c: ASCII C program text, with CRLF line terminators
vb_ext.c: ASCII C program text
vb_init.c: ASCII C program text, with CRLF line terminators
vb_setmode.c: ASCII C program text, with CRLF line terminators
xgi_accel.c: ASCII C program text, with CRLF line terminators
xgi_cursor.c: ASCII C program text
xgi_dac.c: ASCII C program text
xgi_dga.c: ASCII C program text
xgi_dri.c: ASCII C program text
xgi_driver.c: ASCII C program text, with CRLF, LF line terminators
xgi_opt.c: ASCII C program text
xgi_setup.c: ASCII C program text, with CRLF, LF line terminators
xgi_vb.c: ASCII C program text
xgi_vga.c: ASCII C program text, with CRLF line terminators
xgi_video.c: ASCII C program text
xgi_videohw.c: ASCII C program text
</PRE>
<BR>
It just so happens that the files giving errors are the one with CRLF terminators. Most likely, xgi developers edit code on platforms having different file formats. I did a quick scan on other drivers and I have not seen files with CRLF terminators.<BR>
<BR>
It's just a theory for now, most likely others have seen this before and know of to fix it.<BR>
<BR>
<BR>
</BLOCKQUOTE>
</BODY>
</HTML>